@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --color-primary: #79bce4;
    --color-secondary: #0d1553;
    --color-tertiary: #ceecf4;
    --color-text: #0d1553;
    --color-text-inverse: #fff;
}

/* Core Stuff */
* {
    font-family: 'Work Sans', sans-serif;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--color-text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-text);
    margin-top: 0;
    line-height: 1;
}

h2 {
    font-size: 2rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    color: var(--color-primary);
}

/* Utility Classes */
.wrapper {
    margin: 0 auto;
    max-width: 1400px;
}

.padding {
    padding: 3rem 1rem;
}

.left {
    float: left;
}

.right {
    float: right
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.bg-tertiary {
    background-color: var(--color-tertiary);
}

.bolder {
    font-weight: 700;
    font-size: 1.3rem;
}

/* Content Styling */
.header .padding {
    padding: 0.5rem 1rem;
}

.header {
    background-color: var(--color-primary);
    color: var(--color-text-inverse);
    font-size: 1.1rem;
}

.header>div {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header .logo {
    height: 110px;
}

.header .logo img {
    height: 110px;
}

#footer {
    background-color: var(--color-primary);
    color: var(--color-text-inverse);
    font-size: 1.25rem;
}

#footer .wrapper {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    padding-bottom: 1rem;
}

#footer h3 {
    margin-top: 0;
    color: var(--color-text-inverse);
}

#footer a {
    color: var(--color-text-inverse);
    font-size: 1.5rem;
}

.footer-col {
    width: 50%;
}

.footer-logo {
    max-width: 50%;
}

.footer-bottom {
    background-color: var(--color-primary);
    color: var(--color-text-inverse);
    font-size: 1rem;
    padding: 0.5rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
}

/* Menu Settings */
.main-nav ul {
    text-align: center;
    letter-spacing: -1em;
    margin: 0;
    padding: 0;
}

.main-nav ul li {
    display: inline-block;
    letter-spacing: normal;
}

.main-nav ul li a {
    position: relative;
    display: block;
    color: var(--color-text-inverse);
    padding: 0 20px;
    white-space: nowrap;
}

.main-nav > ul > li > a {
    border-radius: 2px;
}

/*Active dropdown nav item */
.main-nav ul li:hover > a {
    color: var(--color-tertiary);
}

/* Selected Dropdown nav item */
.main-nav ul li.selected > a {
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: bold;
}

/* Dropdown CSS */
.main-nav ul li {position: relative;}

.main-nav ul li ul {
    position: absolute;
    background-color: var(--color-secondary);
    min-width: 100%;
    text-align: left;
    z-index: 999;
    border-radius: 8px;
    padding: 10px 5px;

    display: none;
}
.main-nav ul li ul li {
    display: block;
}

/* Dropdown CSS */
.main-nav ul li ul ul {
    left: 100%;
    top: 0;
}

/* Active on Hover */
.main-nav li:hover > ul {
    display: block;
}

/* Child Indicator */
.main-nav .has-children > a {
    padding-right: 30px;
}
.main-nav .has-children > a:after {
    font-family: FontAwesome;
    content: '\f107';
    position: absolute;
    display: inline-block;
    right: 8px;
    top: 0;
}

.main-nav .has-children .has-children > a:after {
    content: '\f105';
}

.main-nav ul li.nav-cta {
    vertical-align: middle;
    margin-left: 10px;
}

.main-nav ul li.nav-cta > a.button {
    display: inline-block;
    background-color: var(--color-secondary);
    color: var(--color-text-inverse);
    border: none;
    padding: 6px 30px;
    border-radius: 10px;
}

.main-nav ul li.nav-cta:hover > a.button {
    background-color: var(--color-secondary);
    opacity: 0.85;
}

/* Hero (templates/partials/hero.html.twig, toggled via page header.hero) */
.hero {
    position: relative;
    display: flex;
    background-color: var(--color-primary);
    background-size: cover;
    background-position: center;
    color: var(--color-text-inverse);
}

.hero-small { min-height: 20vh; }
.hero-medium { min-height: 40vh; }
.hero-large { min-height: 60vh; }
.hero-fullscreen { min-height: 90vh; }

.hero.overlay-dark::before,
.hero.overlay-light::before {
    content: '';
    position: absolute;
    inset: 0;
}

.hero-inner {
    position: relative;
    width: 100%;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 6em;
    margin: 0 0 1rem;
    line-height: 1em;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 40rem;
    margin: 0 auto 1.5rem;
}

.hero-cta {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background-color: var(--color-text-inverse);
    border-radius: 2px;
    font-weight: bold;
}

.hero-cta:hover {
    background-color: black;
}

.hero-logo {
    max-width: 50%;
    margin-top: 3rem;
}

/* Modular pages (templates/modular.html.twig + templates/modular/*.html.twig) */
/* .module + .module > div {
    padding-top: 0;
}

.hero + .module > div {
    padding-top: 15px;
} */

.module-text-columns {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}

.module-text-columns.align-left {
    flex-direction: row-reverse;
}

.module-text-column {
    flex: 1 1 300px;
}

.module-text-image img {
    max-width: 100%;
    width: 100%;
    max-height: 400px;
    height: auto;
    display: block;
    border-radius: 10px;
}

.module-title {
    text-align: center;
}

form input, form button {
    color: var(--color-text);
}

form input, form textarea {
    border: none;
    border-radius: 10px;
    width: 100%;
    padding: 6px;
    max-width: 100%;
    min-width: 100%;
    color: var(--color-text);
}

.button {
    background-color: var(--color-secondary);
    color: var(--color-text-inverse);
    border: none;
    padding: 6px 30px;
    border-radius: 10px;
}

.buttons {
    margin-top: 6px;
}

.module-carousel {
    position: relative;
    padding: 0 3rem;
}

.module-carousel-slide[hidden] {
    display: none;
}

.module-carousel-text {
    min-height: 6rem;
}

.module-carousel-prev,
.module-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 2.5rem;
    line-height: 1;
    color: var(--color-primary);
    cursor: pointer;
    padding: 0.5rem;
}

.module-carousel-prev {
    left: 0;
}

.module-carousel-next {
    right: 0;
}

.module-carousel-prev:hover,
.module-carousel-next:hover {
    color: var(--color-secondary);
}

.module-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.module-carousel-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    border: 1px solid var(--color-primary);
    background: none;
    padding: 0;
    cursor: pointer;
}

.module-carousel-dot.is-active {
    background-color: var(--color-primary);
}

form input, form button {
    color: var(--color-text);
}

/* Owl Carousel */
.owl-item {
    text-align: center;
}

.module .owl-carousel .owl-nav .owl-prev,
.module .owl-carousel .owl-nav .owl-next {
    background: none;
    color: var(--color-text );
}

.module .owl-carousel .owl-nav .owl-prev:hover,
.module .owl-carousel .owl-nav .owl-next:hover {
    background: none;
    color: var(--color-text);
}

.owl-carousel h3 {
    margin-top: revert;
}

/* Events */
.events-intro {
    margin-bottom: 2rem;
}

.events-section + .events-section {
    margin-top: 3rem;
}

.events-section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5em;
    margin: 0 0 1.5rem;
}

.events-empty {
    opacity: 0.7;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 280px);
    gap: 2rem;
}

.event-card {
    position: relative;
    display: block;
    width: 280px;
    min-width: 0;
    border-radius: 8px;
    overflow: hidden;
    color: var(--color-text-inverse);
    text-decoration: none;
}

.event-card-image {
    display: block;
    width: 280px;
    height: auto;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.event-card:hover .event-card-image {
    transform: scale(1.03);
    filter: brightness(0.92);
}

.event-card:hover {
    color: var(--color-text-inverse);
}

.event-card-body {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.35rem;
    padding: 1.25rem;
}

.event-card-title {
    margin: 0;
    font-size: 1.75em;
    color: var(--color-text);
}

.event-card-location {
    margin: 0;
    font-size: 0.9em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* Single event page (templates/event.html.twig) */
.event-status-badge {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 2px;
    background-color: var(--color-primary);
    color: var(--color-text-inverse);
    font-size: 0.8em;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 0 0 2rem;
}

.event-meta-item dt {
    color: var(--color-primary);
    font-size: 0.85em;
    font-weight: bold;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.event-meta-item dd {
    margin: 0;
}

.event-detail-image img {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
}

.event-cta {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.75rem;
    border-radius: 2px;
    background-color: var(--color-primary);
    color: var(--color-text-inverse);
    font-weight: bold;
}

.event-back-link {
    margin-top: 2rem;
}

/* Event Gallery */

.event-gallery {
    margin: 2rem 0;
}

.event-gallery-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75em;
    margin: 0 0 1rem;
}

.event-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
}

@media (max-width: 768px) {
    .event-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .event-gallery-grid {
        grid-template-columns: 1fr;
    }
}

.event-gallery-grid a {
    display: block;
    border-radius: 8px;
    overflow: hidden;
}

.event-gallery-grid img {
    display: block;
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.event-gallery-grid a:hover img {
    transform: scale(1.03);
    filter: brightness(0.92);
}

/* Exhibitors */

.event-exhibitors {
    margin: 2rem 0;
}

.event-exhibitors-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75em;
    margin: 0 0 1rem;
}

.exhibitor-grid {
    column-count: 3;
    column-gap: 1rem;
}

@media (max-width: 900px) {
    .exhibitor-grid {
        column-count: 2;
    }
}

@media (max-width: 560px) {
    .exhibitor-grid {
        column-count: 1;
    }
}

.exhibitor-card {
    display: inline-block;
    width: 100%;
    margin: 0 0 1rem;
    break-inside: avoid;
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.exhibitor-card-image {
    display: block;
    height: 220px;
    overflow: hidden;
}

.exhibitor-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.exhibitor-card-image a:hover img {
    transform: scale(1.03);
    filter: brightness(0.92);
}

.exhibitor-card-body {
    padding: 1rem 1.25rem;
}

.exhibitor-card-title {
    margin: 0 0 0.4rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4em;
}

.exhibitor-card-summary {
    margin: 0;
    font-size: 0.95em;
}
