* {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

:has(> *:nth-child(1)) {
  --count: 1;
}

:has(> *:nth-child(2)) {
  --count: 2;
}

:has(> *:nth-child(3)) {
  --count: 3;
}

:has(> *:nth-child(4)) {
  --count: 4;
}

:has(> *:nth-child(5)) {
  --count: 5;
}

:has(> *:nth-child(6)) {
  --count: 6;
}

:has(> *:nth-child(7)) {
  --count: 7;
}

:has(> *:nth-child(8)) {
  --count: 8;
}

:has(> *:nth-child(9)) {
  --count: 9;
}

:has(> *:nth-child(10)) {
  --count: 10;
}

:has(> *:nth-child(11)) {
  --count: 11;
}

:has(> *:nth-child(12)) {
  --count: 12;
}

.theme-primary
{
    background: var(--primary-color) !important;
}

.theme-secondary
{
    background: var(--secondary-color) !important;
}

.theme-tertiary
{
    background: var(--tertiary-color) !important;
}

body {
    background-color:#ffffff
}

section.content-section 
{
    padding: 3rem 0;
    width: 90%;
    max-width: 64rem;
    margin: 0 auto;
}

section#schedule
{
    width: 100%;
    max-width: none;
}

#schedule-intro-content
{
	margin: 2rem auto;
	width: 90%;
	max-width: 64rem;
}

#schedule-intro-content h2
{
	margin-bottom: 2rem;
	text-align: center;
}

#schedule-intro-content p
{
	font-size: 1.35rem;
	line-height: 1.45;
}

#schedule-grid
{
	margin: 2rem auto;
	width: 90%;
}

h1, h2, h3, h4, h5, h6, p, li, a, strong, em, button, select, option, input {
    font-family: var(--primary-font);
}

h1,h2,h3,h4,h5,h6,p
{
    margin: 10px 0;
}

h1,h4,h5,h6,p,li,a
{
    font-family: var(--primary-font);
}

h2, h3
{
    font-family: var(--secondary-font);
}

h1 {
    color: var(--primary-color);
    font-size: 3.25rem;
}

h2 {
    color: var(--secondary-color);
    font-size: 2.25rem;
}

h3 {
    color: var(--secondary-color);
    font-size: 1.85rem;
}


p, li, a {
    font-size: 1.15rem;
    line-height: 2rem;
}

/****** HOMEPAGE TEMPLATE **********/

#hero
{
    height: 70vh;
    background-size: cover;
    background-position: center center;
    position: relative;
}

#hero:after
{
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
    content:'';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#topbar
{
    display: flex;
    width: 100%;
    position: relative;
    z-index:1;
}

#topbar nav
{
    flex: 1 1 auto;
}

#topbar nav .menu-main-menu-container {
    padding: 1rem 0;
}

#topbar .logo-container
{
    flex: 0 1 auto;
}

#topbar .logo-container img
{
    max-width: 200px;
}

#topbar nav ul {
    list-style-type: none;
}

#topbar nav ul li {
    display: inline-block;
    padding: 10px;
}

#topbar nav ul li a
{
    text-decoration: none;
    text-transform: uppercase;
    color: white;
}

#hero-content
{
    padding: 0 3rem 3rem;
    position: relative;
    z-index:1;
}

#hero-content .title
{
    color: #ffffff;
    text-align: center;
}

a#hero-cta {
    text-align: center;
    display: block;
    margin: 0 auto;
    text-transform: uppercase;
    text-decoration: none;
    color: #ffffff;
    width: 80%;
    max-width: 16rem;
    padding: 10px;
    border: 4px solid #ffffff;
    background: rgba(0,0,0,0.45);
}

.site-main section.content-section
{
    padding: 3rem 6rem;
}

#schedule ul
{
    columns: 2;
    padding: 3rem;
    margin-left: 3rem;
}

#schedule-grid .schedule-day
{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-wrap: wrap;
    max-height: calc((110px* var(--count)) / 2);
    gap: 10px;
	
}

.schedule-day .schedule-event
{
	margin-bottom: 0.75rem;	
	display: flex;
	
}

.schedule-day .schedule-event .schedule-event-time
{
	min-width: 175px;

}
.schedule-day .schedule-event .schedule-event-title
{
	max-width: 500px;
}
.schedule-day .schedule-event .schedule-event-title h4
{
	font-size: 1.25rem;
}

.schedule-day .schedule-event .schedule-event-time h5,
.schedule-day .schedule-event .schedule-event-location h5
{
	font-size: 1rem
}


#filter-box {
    width: 95%;
    margin: 0 auto;
    max-width: 28rem;
}

#filter-box select
{
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
}

#filter-box button {
    color: #ffffff;
    padding: 1rem;
    text-transform: uppercase;
}

#filter-box select, #filter-box button, #filter-box #pagination li a
{
    font-size: 1.15rem;
    font-weight: 400;
    border: 3px solid black;
    border-radius: 5px;
}

#filter-box #pagination
{
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: space-evenly;
    margin: 2rem 0;
    font-weight: 600;
}

#filter-box #pagination li a
{
display: block;
padding: 10px;
color: white;
border-radius: 3px;
text-decoration: none;
background-color: var(--tertiary-color);
}

.org-grid
{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: max-content;
    grid-gap: 1rem;
}

.org-grid .org-grid-block
{
    background: #ffffff;
    border: 3px solid var(--primary-color);
    border-radius: 5px;    
}

.org-grid .org-grid-block a
{
    padding: 0 10px;
    display: block;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    display: flex;
    align-items: flex-end;
    flex-direction: row;
    justify-content: center;
    height: 100%;
    flex-wrap: wrap;
	min-height: 200px;
}

.org-grid .org-grid-block a i
{
	vertical-align: middle	
}

.org-grid .org-grid-block img
{
    max-width: 100%;
    padding-top: 10px;
}

/********* SPONSOR GRID *********/


.sponsor-grid
{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: max-content;
    grid-gap: 1rem;
}

.sponsor-grid-block.sponsor-lead
{
    grid-column: 1/4;
}

.sponsor-grid .sponsor-grid-block a
{
    padding: 0 10px;
    display: block;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    display: flex;
    align-items: flex-end;
    flex-direction: row;
    justify-content: center;
    height: 100%;
    flex-wrap: wrap;
    cursor: pointer;
}

.sponsor-grid .sponsor-grid-block img
{
    max-width: 100%;
    padding-top: 10px;
}

.sponsor-grid-block.sponsor-lead img
{
max-width: 50%
}

/********** FOOTER **************/
footer {
    background: var(--primary-color);
    color: #fff;
}

.footer-grid
{
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    width: 95%;
    max-width: 84rem;
    margin: 0 auto;
    padding: 3rem 0 1rem;
}

.footer-grid>div
{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-wrap: wrap;
}

.footer-grid #conference-info h3
{
    color: #fff;
}

.footer-grid #conference-logos img
{
    display: block;
    max-width: 150px;
    margin: 0 auto;
}

.footer-grid #copyright
{
    grid-column: 1/5
}

#footer-menu nav ul {
    list-style-type: none;
}

#footer-menu nav ul li {
    padding: 10px;
    display: inline-block;
}

#footer-menu nav ul li a
{
    text-decoration: none;
    text-transform: uppercase;
    color: white;
}

/*********** PAGE TEMPLATE ********/
.type-page .entry-content
{
    width: 90%;
    max-width: 72rem;
    padding: 50px 10px 25px;
	margin: 0 auto;
}

img.alignleft {
    float: left;
    padding: 10px 25px 10px 0px;
}

img.alignright {
    float: right;
    padding: 10px 0 10px 25px;
}

img.alignleft:after, img.alignright:after
{
	clear: both;	
}


/********** SINGLE ORG TEMPLATE ********/

body.single-organization {
    background-color: #ffffff;
}

.single-organization header 
{

    min-height: 60vh;
    background-size: cover;
    background-position: center center;
    background-color: #cccccc;
    position: relative;
}

.single-organization #hero-content
{
    padding: 0 6rem 6rem;
}

.single-organization header:after {
    background: linear-gradient(270deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    content:'';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.single-organization header h1,
.single-organization header h3 {
 color: white;
 text-align: center;
}

.single-organization #single-org_content
{
    display:grid;
    grid-template-columns: 2fr 1fr 2fr;
    width: 95%;
    margin: 0 auto;
    grid-gap: 1rem;
}

.single-org_section
{
    margin: 1rem auto;
}

.half-section
{
    width: 100%;
}

.section-left
{
    margin-left: 0rem;
}

.section-right
{
    margin-right: 0rem;
}

.single-org_section div
{
    padding: 3rem 1.5rem;
}

.single-org_section div#logo-box
{
    padding: 0;
}


.single-org_section p,
.single-org_section li,
.single-org_section a
{
    font-size: 1.1rem;
}

.social-links-list
{
    list-style-type: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    line-height: 3
}

.social-links-list .single-social-list-item i
{
    padding-right: 15px;
}

.single-organization #single-org_content #single-org_logo
{
    background: none;
    padding: 0;
    position: relative;
}

.single-organization #single-org_content #single-org_logo #logo-box
{
    width: 250px;
    height: 250px;
    background: white;
    margin: -6rem auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px -5px 30px #000;
    z-index: 2;
}

.single-organization #single-org_content #single-org_logo #logo-box img
{
    width:90%;
}


.single-organization #single-org_content > section#single-org_social
{
    grid-column: 1/2;
}

.single-organization #single-org_content > section#single-org_profile
{
    grid-column: 3/5;
}

.single-organization #single-org_content > section#single-org_objectives
{
    grid-column: 1/5;
}

.single-organization #single-org_content > section#single-org_delegates
{
    grid-column: 1/5;
}

/***** REGISTRATION PAGE ****/

#registration
{
    margin: 0 auto;
    width: 64rem;
    max-width: 90%;
}

.sub-page-topbar#topbar nav ul li a
{
    color: var(--primary-color);
}

#content.site-content + aside.widget-area {
    display: none;
}

/*** SHORTCODES TABLE ***/

.shortcodes-table
{
    width: 95%;
    max-width: 64rem;
    margin: 0 auto;
    text-align: left;
    background-color: white;
    font-family: var(--primary-font);
}

.shortcodes-table td, .shortcodes-table th
{
    padding: 10px;
}

.shortcodes-table .sm-col
{
    width: 10ch;
}
.shortcodes-table .half-col
{
    width: 30%;
}


@media only screen and (max-width: 767px) {

    #hero {
        height: auto;
    }

    #topbar nav ul li {
        display:block;
    }

    #schedule ul
        {
            columns: 1;
        }
    .org-grid
        {
            grid-template-columns: repeat(2, 1fr)
        }
    .single-organization #single-org_content
        {
            grid-template-columns: 1fr;
            grid-template-rows: max-content;
        }
        .single-organization #single-org_content > section#single-org_social,
        .single-organization #single-org_content > section#single-org_profile,
        .single-organization #single-org_content > section#single-org_logo,
        .single-organization #single-org_content > section#single-org_objectives,
        .single-organization #single-org_content > section#single-org_delegates
       {
        grid-column: 1;
       }
       .single-organization #single-org_content > section#single-org_logo
       {
        grid-row: 1;
       }
       .single-organization #single-org_content > section#single-org_social
       {
        grid-row: 2;
       }
       .single-organization #single-org_content > section#single-org_profile
       {
        grid-row: 3;
       }
       .single-organization #single-org_content > section#single-org_objectives
       {
        grid-row: 4;
       }
       .single-organization #single-org_content > section#single-org_delegates
       {
        grid-row: 5;
       }

       .footer-grid {
        grid-template-columns: 1fr;
        grid-template-rows: max-content;
       }
       .footer-grid>div#conference-logos {
        grid-row: 3;
       }
       .footer-grid>div#footer-menu {
        grid-row: 1;
        text-align:center;
       }
       .footer-grid>div#conference-info {
        grid-row: 2;
       }
       
       
}

@media screen and (max-width: 992px) {

	#schedule-grid .schedule-day {
			max-height: 100%;
		}
	
	.schedule-day .schedule-event
{
	margin-bottom: 0;	
	display: block;
	
}
}

@media only screen and (max-width: 480px) {

    .org-grid
        {
            grid-template-columns: 1fr
        }
}

div#advanced-sortables:has(#meeting-panel)
{
    display: flex;
    gap: 3px;
}