/* Styles */

:root {
	
	--primary: #00008C;
	--text: #00008C;
	--blue: #2C2F74;
	--green: #81C8B9;
	--light-blue: #717EBD;
	--warm-bg: #F4EAE4;
	--cool-bg: #ebf0f2;
	--orange: #F04E23;
	--pink: #D74699;
	--red: #CC2E2E;
	--yellow: #E5A812;
	--light-text: #F3F2EB;

	--box-radius: 24px;
	
	--toggle-arrow: url('/wp-content/themes/centre-for-sexuality/img/toggle-arrow.svg');
	--heading-font: "Quicksand", Sans-serif;
	--body-font: "Roboto", Sans-serif;
}

/* ====================
* Accessibility
==================== */

:focus-visible {
    outline: 3px solid #005fcc;  
    outline-offset: 2px;
}

/* core interactive elements */

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
  outline: var(--focus-outline);
  outline-offset: var(--focus-offset);
}

/* elementor / theme-specific classes  */

.elementor-button:focus-visible,
.btn:focus-visible,
.button:focus-visible,
.pagination a:focus-visible,
.pagination button:focus-visible,
.menu a:focus-visible,
.nav a:focus-visible {
  outline: var(--focus-outline);
  outline-offset: var(--focus-offset);
}

/* Container doesn't need to be hidden — only the links */

.skip-links {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9999;
}

/* Skip link accessible but visually hidden */

.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
}

/* When focused: show visibly */

.skip-link:focus,
.skip-link:focus-visible  {
  position: static;
  width: auto;
  height: auto;
  padding: .75rem 1rem;
  background: var(--focus-color);
  color: #fff;
  outline: 3px solid #fff;
  outline-offset: 0;
  z-index: 10000;
}

.sr-only-newtab {
  /* Visually hides the element but keeps it accessible to screen readers */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ====================
* General
==================== */
body {
	font-family: var(--body-font);
}
.site-main {
	overflow: hidden;
}
* {
  transition: all .3s ease-in-out;
}

.square img {
	aspect-ratio: 1/1;
	object-fit:cover;
}

.tile-link,
.tile-link > * {
	text-decoration: none!important;
}
a.menu-item-loop__link,
.tile-link a, 
a.tile-link {
	text-decoration: none!important;
	display: inline;
	border-bottom: 0;
	position: relative;
}
.menu-item-loop__title:after,
.tile-link a:after,
a.tile-link:after {
	border-bottom: 1px solid;
	bottom: -0.03em;
	left: 0;
	content: '';
	position: absolute;
	display:inline-block;
	width: 100%;
	height: 1px;
}

.menu-item-loop__title:hover:after,
.tile-link a:hover:after,
a.tile-link:hover:after {
	  animation-name: tileLinkLineAnimation;
  animation-duration: 0.75s;
}

#breadcrumbs span, 
#breadcrumbs a {
	font-weight: 400;
}
#breadcrumbs a:hover {
	color: var(--text);
}
.elementor-widget-theme-post-content  details {
	border-bottom: 1px solid var(--blue);
}
.elementor-widget-theme-post-content  details[open] {
	padding-bottom: 1.5rem;
}
.elementor-widget-theme-post-content  summary {
	cursor: pointer;
		list-style: none; 
	font-size: 1.35rem;
	font-weight: 600;
	padding: 30px 0;
	padding-left: 50px;
	position: relative;
}


.elementor-widget-theme-post-content  summary::-webkit-details-marker {
    display: none; 
}

.elementor-widget-theme-post-content summary::before {
	content: "";
    display: block;
    transition: transform 0.2s ease;
    background: var(--toggle-arrow) no-repeat center;
    width: 30px;
    height: 30px;
    position: absolute;
    top: 0;
    bottom: 0;
	left: 0;
    margin: auto;
}

.elementor-widget-theme-post-content  details[open] summary::before {
    transform: scale(-1);
}https://cs.dev-env.app/

.elementor-widget-theme-post-content details > summary + * {
	margin-top: 0;
}


@media (max-width: 768px) {
	
	.elementor-widget-theme-post-content  details[open] {
		padding-bottom: 1rem;
	}
	.elementor-widget-theme-post-content  summary {
		font-size: 1.125rem;
		padding: 15px 0;
		padding-left: 30px;
	}

	.elementor-widget-theme-post-content summary::before {
		width: 15px;
		height: 15px;
	}
}

@keyframes tileLinkLineAnimation {
  0%   {width: 0;}
  100% {width: 100%;}
}
/* ====================
* Typography
==================== */

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}
a:hover {
  text-decoration: none;
}

p:last-child {
  margin-bottom: 0;
}

.elementor-widget-theme-post-content h2, 
.elementor-widget-theme-post-content h3, 
.elementor-widget-theme-post-content h4 {
	margin-top: 1.25em;
	font-family: var(--heading-font);
	    font-weight: 600;
}
.elementor-widget-theme-post-content h2:first-child,
.elementor-widget-theme-post-content h3:first-child {
	margin-top: 0;
}
.elementor-widget-theme-post-content ul , 
.elementor-widget-text-editor ul  {
	margin-bottom: 1.25rem;
}

.elementor-widget-theme-post-content ul li, 
.elementor-widget-text-editor ul li {
	margin-bottom: 0.75em;
}

.elementor-widget-theme-post-content blockquote {
	margin: 2rem;
	margin-left: 0;
	padding: 0.75rem;
	padding-left: 1.5em;
	border-left: 3px solid var(--blue);
}
.elementor-widget-theme-post-content blockquote p {
	font-size: 1.25rem;
	font-style: italic;
}

/* ====================
* Shortcodes
==================== */
.cs-terms-menu ul {
	display:flex;
	flex-wrap: wrap;
	gap: 10px 20px;
	padding-left: 0;
	margin-left: 0;
	list-style:none;
}

/* Menu Loop */
.menu-item-loop ul {
	display:flex;
	flex-wrap: wrap;
	gap: 20px 40px;
	padding-left: 0;
}
.menu-item-loop li {
	width: calc(33% - 40px);
	list-style:none;
}


.menu-item-loop__title {
	color: var(--text);
	display:inline-block;
	width: 100%;
	margin-bottom: 10px;
	font-weight: 700;
	font-family: var(--heading-font);
	line-height: 1.2em;
	position: relative;
}
.menu-item-loop__description {
font-family: var(--body-font);
    font-size: 1rem;
    font-weight: 400;
    color: var(--text);
    line-height: 1.43em;
    display: inline-block;
    width: 100%;
}

.menu-item-loop__title:hover {
	color: var(--text);
}
@media (max-width: 1024px) {
	.menu-item-loop li {
		width: calc(50% - 40px);
	}
}


/* ====================
* Constant Contact
==================== */

#signup-form div.ctct-form-embed div.ctct-form-defaults h2.ctct-form-header, 
#signup-form  div.ctct-form-embed div.ctct-form-defaults p.ctct-form-text , 
#signup-form  div.ctct-form-embed div.ctct-form-defaults p.ctct-gdpr-text, 
#signup-form  div.ctct-form-embed div.ctct-form-defaults .ctct-form-label , 
#signup-form  div.ctct-form-embed div.ctct-form-defaults p.ctct-gdpr-text .ctct-form-footer-link{
    font-family: "Quicksand", Sans-serif!important;
	color: var(--text)!important;
}
#signup-form  div.ctct-form-embed div.ctct-form-defaults  .ctct-form-button {
	font-family: "Quicksand", Sans-serif!important;
	background-color: var(--light-blue);
	border-radius: 50px;
}
#signup-form  div.ctct-form-embed div.ctct-form-defaults input.ctct-form-element {
	border: 1px solid var(--blue);
	border-radius: 10px;
	 font-family: "Quicksand", Sans-serif!important;
	color: var(--text)!important;
	
}

/* ====================
* Elementor
==================== */

/* Parent container */

.e-parent {
  --padding-top: 10px;
  --padding-bottom: 10px;
  --padding-left: 20px;
  --padding-right: 20px;
}
.tile-grid .elementor-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}
.tile-grid .elementor-grid .e-loop-item {
   /* grid-column: span 2;*/
}
/* ≤ 1024px: 2 columns */
@media (max-width: 1024px) {
	.tile-grid .elementor-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.tile-grid .elementor-grid .e-loop-item {
		grid-column: span 1;
	}

}

/* ≤ 768px: 1 column */
@media (max-width: 768px) {
	.tile-grid .elementor-grid {
		grid-template-columns: 1fr;
	}
}



/* 1 item in final row
.tile-grid .elementor-grid .e-loop-item:last-of-type:nth-of-type(3n + 1) {
    grid-column: 1 / -1;
}
/* 2 items in final row 
.tile-grid .elementor-grid .e-loop-item:nth-last-of-type(2):nth-of-type(3n + 1),
.tile-grid .elementor-grid .e-loop-item:last-of-type:nth-of-type(3n + 2) {
    grid-column: span 3;
}
 */
.e-loop-item:nth-of-type(2) .group-heading,
.tile-grid .e-loop-item:nth-child(5n+1) article.tile  {
	background-color: var(--yellow)!important;
}
.e-loop-item:nth-of-type(5) .group-heading,
.tile-grid .e-loop-item:nth-child(5n+2) article.tile   {
		background-color: var(--blue)!important;
}
.e-loop-item:nth-of-type(3) .group-heading,
.tile-grid .e-loop-item:nth-child(5n+3) article.tile   {
		background-color: var(--light-blue)!important;
}
.e-loop-item:nth-of-type(4) .group-heading,
.tile-grid .e-loop-item:nth-child(5n+4) article.tile  {
		background-color: var(--pink)!important;
}

.elementor-shortcode > .tile-grid article.tile  {
	height: 100%;
}


.tile-grid .e-loop-item:nth-child(4n+1) .card-header {
	 background-color: var(--pink)!important;
}
.tile-grid .e-loop-item:nth-child(4n+2) .card-header {
	 background-color: var(--red)!important;
}
.tile-grid .e-loop-item:nth-child(4n+3) .card-header {
	 background-color: var(--light-blue)!important;
}

/*** CALENDAR ***/
/*cards*/
.cs-events-calendar-wrap .fc-button,
.cs-events-calendar-wrap .fc .fc-button-primary {
    background-color: var(--light-blue);
    border-color: var(--light-blue);
	 color: #fff;
}
.cs-events-calendar-wrap .fc .fc-button {
	border-radius: 50px;
}
.cs-events-calendar-wrap .fc .fc-button-primary:hover,
.cs-events-calendar-wrap .fc .fc-button-primary:not(:disabled).fc-button-active, 
.cs-events-calendar-wrap .fc .fc-button-primary:not(:disabled):active {
    background-color: var(--blue);
    border-color: var(--blue);
    color: #fff;
}

.cs-events-calendar-wrap {
	position: relative;
	min-height: 300px;
}
.cs-events-loading {
	position: absolute;
	z-index: 10;
	top: 50%;
}
.cs-event-card {
	display: flex;
	gap: 15px;
	margin-bottom: 20px;
	    align-items: flex-start;
}

.cs-event-card-content {
	padding: 20px;
	border-radius: var(--box-radius);
	background-color: #fff;
	flex: 1;
}
.cs-event-card-title {
	margin-top: 0;
}
.cs-event-card-venue {
	display: flex;
	flex-direction: column;
	gap: 0;
	font-size: 0.9rem;
	margin-top: 1rem; 
	position: relative;
	padding-left: 1.75rem;
}

.cs-event-card-venue:after {
	content: '';
	height: 1.15rem;
	width: 1.15rem;
	background-image: url(/wp-content/themes/centre-for-sexuality/img/map-marker.svg); 
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	position: absolute;
	left: 0;
	top:0;
	bottom: 0; 
	margin: auto; 
	display:block;
}
.cs-event-info {
	width: 25%;
    min-width: 180px;
	display:flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 20px 15px;
	border-radius: var(--box-radius);
	background-color: var(--light-blue);
	color: #fff;
	flex:0;
}
.cs-event-card-date {
	font-family: var(--heading-font);
    font-size: 1.25rem;
    font-weight: 700;
}
.cs-event-card-excerpt {
	width: 700px;
	max-width: 100%;
	display:inline-block;
}
/* month view */
.fc table,
.fc-col-header, .fc-daygrid-body, .fc-daygrid-body table {
	min-width: 100%;
	margin-bottom:0;
}
.cs-events-calendar-wrap .fc-theme-standard td, 
.cs-events-calendar-wrap .fc-theme-standard th,
.fc table tbody>tr:nth-child(odd)>td, 
.fc table tbody>tr:nth-child(odd)>th {
	background-color: #fff;
	border-color: #ccc;
}

.cs-events-calendar-wrap .fc-col-header-cell.fc-day {
	background-color: var(--blue);
	border-color: var(--blue);
	
}
.cs-events-calendar-wrap .fc-col-header-cell.fc-day, 
.cs-events-calendar-wrap .fc-col-header-cell.fc-day a {
	color: #fff;
}
.fc a.fc-daygrid-day-number {
	text-decoration: none;
}

.fc-daygrid-dot-event.fc-event-mirror, .fc-daygrid-dot-event:hover, 
.cs-events-calendar-wrap .fc .fc-daygrid-day.fc-day-today {
	background-color: var(--cool-bg);
}
.cs-events-calendar-wrap .fc-daygrid-event {
	white-space: normal;
}
.cs-fc-month-event {
	display: flex;
    flex-direction: column;
    max-width: 100%;
	padding: 10px;
}

.cs-fc-month-title {
	font-weight: 600;
}