/* HEADER */

.static-top.navbar-dark.navbar {
    background-color: #23408f;
}

.navbar-dark .navbar-nav > li > a, .navbar-dark .navbar-nav > li.dropdown > a {
    color: #ffffff !important;
}


@media (max-width: 767px) {
    .navbar-brand.navbar-header a > img {
        height: 4rem !important;
        margin: 0 !important;
    }

    div.container.custom-container {
        max-width: 96% !important;
    }
}


/* FOOTER */

body {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
    margin: 0 !important;
}

main {
    flex: 1 !important;
}

.wrapper-body {
    min-height: unset !important;
}

.footer {
    background-color: #23408f !important;
    margin-top: auto !important;
}

footer img {
    height: 7rem !important;
}

footer .footer-bottom {
    background-color: #23408f !important;
}

footer p.footerCopyrightFonts {
    color: white !important;
}


/* TEXTS */

/* Events page */
p#about {
    color: #000000 !important;
    font-size: 32px !important;
}

div#aboutSection div.ck-content p {
    font-size: 18px !important;
}

h2 {
    margin-bottom: 2rem !important;
}


.eventintroname {
    text-align: center;
    width: 60% !important;
    margin: auto !important;
}

@media (max-width: 991px) {
    .eventintroname.eventfontfamily {
        text-align: center;
        margin: auto;
        width: 90%;
        font-size: 48px;
        line-height: 1.5;
    }
}

@media (max-width: 768px) {
    .eventintroname.eventfontfamily {
        font-size: 40px;
        line-height: 1.2;
    }

    p.eventDetails {
    width: max-content;
    }

    span#city, span#postalcode {
        word-break: auto-phrase;
    }

}

@media (max-width: 500px) {
    .eventintroname.eventfontfamily {
        font-size: 32px;
    }
}

/* kokeile tätä viimeisenä keinona chat bottiin: */
/* div.pva-floating-style.pva-container {
    display: none;
} */


/*EVENT CARDS*/

div.columnBlockLayout.eventcard-columnBlockLayout {
    margin-top: 0 !important;
}

/* Container for all cards */
.event-card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 2rem 0;
}

div.event-card-container {
    margin: 0 2rem;
    justify-content: space-evenly;
}

/* Individual card */
.event-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
  /* flex: 1 1 280px; */
  max-width: 32%;
  min-width: 30%;
}

@media (max-width: 1312px) {
    .event-card {
        max-width: 31%;
    }
}

@media (max-width: 1000px) {
    .event-card {
        max-width: 30%;
    }
}

@media (max-width: 900px) {
    .event-card {
        max-width: 30%;
    }
    .event-card-container {
        gap: 1rem;
    }
    div.event-card-container {
        margin: 0 2rem;
        justify-content: flex-start;
    }
}
@media (max-width: 820px) {
    .event-card {
        min-width: 48%;
        max-width: 48%;
    }
}
@media (max-width: 600px) {
    .event-card {
        min-width: 100%;
        max-width: 100%;
    }
}

/* Event title */
.event-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #23408f;
}

/* Dates */
.event-dates {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1.25rem;
}

.event-dates div {
  margin-bottom: 0.25rem;
}

/* CTA button */
.event-cta {
  align-self: flex-start;

  padding: 0.6rem 1.2rem;
  border-radius: 4px;

  background-color: #0066cc;
  color: #ffffff;
  text-decoration: none;

  font-size: 0.9rem;
  font-weight: 600;
}

.event-cta:hover {
  background-color: #004fa3;
}

p.event-place {
  font-size: 0.95rem;
  color: #555;
  font-weight: 600;
}

.event-cta {
  align-self: flex-start;

  padding: 0.6rem 1.2rem;
  border-radius: 4px;

  background-color: #0066cc;
  color: #ffffff;
  text-decoration: none;

  font-size: 0.9rem;
  font-weight: 600;

  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Hover + focus */
.event-cta:hover,
.event-cta:focus {
  background-color: #004fa3;
  color: #ffffff;
  text-decoration: none;
}

@media (max-width: 1400px) {
    .event-card-page .row.sectionBlockLayout > .container.event-page-container {
        max-width: 1320px;
    }
}

@media (max-width: 1200px) {
    .event-card-page .row.sectionBlockLayout > .container.event-page-container {
        max-width: 1140px;
    }
}

@media (max-width: 992px) {
    .event-card-page .row.sectionBlockLayout > .container.event-page-container {
        max-width: 960px;
    }
}

@media (max-width: 768px) {
    .event-card-page .row.sectionBlockLayout > .container.event-page-container {
        max-width: 740px;
    }
}

@media (max-width: 576px) {
    .event-card-page .row.sectionBlockLayout > .container.event-page-container {
        max-width: 740px;
    }
}

/* BUTTONS */

button.button1 {
    border: 1px solid rgb(28 96 223) !important;
}

/* CARDS */

.ms_lay1_card {
    padding: 24px !important;
}

/*LAYOUT*/

@media (max-width: 600px) {
    .columnBlockLayout {
        margin-top: 10px !important;
        margin-bottom: 10px !important;
    }
}

/* Remove empty divs above About section */
div#aboutSection div.columnBlockLayout.paddingRightForMoreSpace div.row.sectionBlockLayout {
  display: none !important;
}

h4.abouteventname.eventfontfamily {
    display: none;
}

/* Fix Schedule section - show all cards, hide broken button */
div#sessionsContainer0 div.card.mb-3.sessioncard.hidden {
    display: block;
}
button#toggleSessionsBtn0 {
    display: none;
}

/*Hide Spots available text*/
span.spotAvailableStyling {
    display: none !important;
}


/* Event speakers */

h3.center-text.margin-bottom-speaker.featuredSpeaker {
    margin-bottom: 3rem;
}

.speaker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px !important;
}


.speaker-item {
    background-color: #fff !important;
    margin: 1rem;
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
    border-radius: 4px;
}

.upper-part {
    background-color: #f3edff;
    width: 100%;
    padding: 3rem 1rem 1rem;
    border-radius: 4px 4px 0 0;
}

.speaker-name {
    font-size: 22px !important;
    font-weight: 700;
    margin: 8px 0;
    color: #23408f;
}

.speaker-details{
    max-width: 360px;
    margin: auto;
    padding: 1rem 1rem 2rem;
    background-color: #fff !important;
    max-height: 60%;
    border-radius: 0 0 4px 4px;
}

.speaker-title {
    font-size: 1rem;
    font-weight: 600;
    color: #292929 !important;
    margin-bottom: 8px;
    margin-top: 16px;
}

.speaker-description {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.5;
}

.speaker-linkedin a {
    color: #1c60df;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}