/**
 * Additional CSS fixes for the theme
 *
 * This file contains CSS overrides and fixes that were previously
 * handled by the build process in Sage 9
 */

/* General fixes */
img {
  max-width: 100%;
  height: auto;
}

.alignleft {
  float: left;
  margin-right: 1.5em;
  margin-bottom: 1.5em;
}

.alignright {
  float: right;
  margin-left: 1.5em;
  margin-bottom: 1.5em;
}

.aligncenter {
  clear: both;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Header */
.hamburger-inner,
.hamburger-inner:after,
.hamburger-inner:before {
  background-color: #333;
}

.hamburger.is-active .hamburger-inner,
.hamburger.is-active .hamburger-inner:after,
.hamburger.is-active .hamburger-inner:before {
  background-color: #fff;
}

.search-icon-white {
  display: none;
}

.search-container {
  display: none;
}

.search-container.active {
  display: block;
}

.full-img-header .search-icon-white,
.single-plain-header .search-icon-white {
  display: inline-block;
}

.full-img-header .search-icon-default,
.single-plain-header .search-icon-default {
  display: none;
}

/* Spacer */
.ty-spacer.spacer-small {
  height: 30px;
}

.ty-spacer.spacer-medium {
  height: 60px;
}

.ty-spacer.spacer-large {
  height: 90px;
}

/* Cookie bar */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 15px 0;
  z-index: 9999;
  display: none;
}

.cookie-bar.active {
  display: block;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cookie-text {
  flex: 1;
  padding-right: 20px;
}

.cookie-text a {
  color: #fff;
  text-decoration: underline;
}

.cookie-actions .btn {
  white-space: nowrap;
}

/* Mobile menu */
@media (max-width: 991px) {
  .nav-primary {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    padding: 80px 20px 20px;
    overflow-y: auto;
  }
  
  .nav-primary.active {
    display: block;
  }
  
  .nav-primary .nav {
    flex-direction: column;
  }
  
  .nav-primary .nav > li {
    margin-bottom: 10px;
  }
  
  .nav-primary .nav a {
    color: #fff;
    font-size: 18px;
    padding: 8px 0;
  }
}

/* Video container for embeds */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  max-width: 100%;
}

.video-container iframe,
.video-container object,
.video-container embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 2px solid transparent;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  transition: all 0.15s ease-in-out;
  text-decoration: none;
}

.btn-primary {
  color: #fff;
  background-color: #007bff;
  border-color: #007bff;
}

.btn-secondary {
  color: #fff;
  background-color: #6c757d;
  border-color: #6c757d;
}

.btn-primary:hover,
.btn-secondary:hover {
  opacity: 0.9;
}

/* EU Map Component */
.ty-eumap {
  position: relative;
  padding: 60px 0;
  background-color: #f8f9fa;
}

.ty-eumap .map-title {
  margin-bottom: 30px;
}

.ty-eumap #map {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.ty-eumap svg {
  width: 100%;
  height: auto;
}

.ty-eumap .country {
  cursor: pointer;
  transition: fill 0.3s ease;
}

.ty-eumap .primary-country {
  fill: #007bff;
}

.ty-eumap .member-country {
  fill: #007bff;
}

.ty-eumap .other-country {
  fill: #e0eab7;
}

.ty-eumap .selected-country {
  fill: #6c757d;
}

.ty-eumap .country:hover {
  fill: #6c757d;
}

.ty-eumap .country-wrapper {
  margin-top: 30px;
  position: relative;
}

/* .ty-eumap .content-country {
  display: none;
  margin-top: 30px;
} */

.ty-eumap .content-country.content-country-active {
  display: block;
}

.ty-eumap .content-country .inner {
  display: flex;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.ty-eumap .image-container {
  flex: 0 0 40%;
  background-color: #eee;
}

.ty-eumap .image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ty-eumap .content-container {
  flex: 0 0 60%;
  padding: 30px;
}

.ty-eumap .cpt span {
  display: inline-block;
  padding: 3px 10px;
  background-color: #007bff;
  color: #fff;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.ty-eumap .inner-title {
  margin-bottom: 15px;
}

.ty-eumap .ty-link {
  display: inline-block;
  margin-top: 15px;
  color: #007bff;
  font-weight: 600;
  text-decoration: none;
}

.ty-eumap .ty-link:hover {
  text-decoration: underline;
}

.ty-eumap .ty-join-us {
  margin-top: 50px;
  text-align: center;
  padding: 40px;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ty-eumap .ty-join-us .title {
  margin-bottom: 15px;
}

.ty-eumap .ty-join-us p {
  margin-bottom: 20px;
}

.ty-eumap .legend {
  margin-top: 30px;
}

.ty-eumap #legenda {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
}

.ty-eumap .legenda-item {
  display: flex;
  align-items: center;
  font-size: 14px;
}

.ty-eumap .legenda-item span {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  border-radius: 3px;
}

.ty-eumap .legenda-item span.primary {
  background-color: #007bff;
}

.ty-eumap .legenda-item span.green {
  background-color: #e0eab7;
}

.ty-eumap .legenda-item span.secondary {
  background-color: #6c757d;
}

/* CTA Newsletter */
.ty-cta-news {
  /* Removing conflicting styles */
}

/* Layout components */
.default-padding {
  padding: 60px 0;
}

/* Column layouts */
.ty-3-col,
.ty-4-col {
  background-color: #fff;
}

.ty-3-col .text-formatted,
.ty-4-col .text-formatted {
  margin-bottom: 30px;
}

/* Image and Text */
.ty-block-img-text {
  padding: 60px 0;
}

.ty-block-img-text .image {
  position: relative;
  margin-bottom: 30px;
}

.ty-block-img-text .image img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}

.ty-block-img-text .caption {
  margin-top: 10px;
  font-size: 14px;
  color: #666;
  font-style: italic;
}

.ty-block-img-text .content {
  padding: 15px 0;
}

/* Video */
.ty-video .embed-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  border-radius: 5px;
}

.ty-video .embed-container iframe,
.ty-video .embed-container object,
.ty-video .embed-container embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Image */
.ty-img .image {
  position: relative;
}

.ty-img .bg-image {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}

.ty-img .caption {
  margin-top: 10px;
  font-size: 14px;
  color: #666;
  font-style: italic;
}

/* PDF */
.ty-pdf {
  text-align: center;
}

/* Form */
.ty-form {
  background-color: #f8f9fa;
}

.ty-form .ty-form-inner-top {
  padding: 40px 0 20px;
}

.ty-form .ty-form-inner-bottom {
  padding: 0 0 40px;
}

.ty-form .custom-title {
  margin-bottom: 15px;
}

.ty-form .custom-subtitle {
  margin-bottom: 30px;
  font-weight: 400;
}

.ty-form .form {
  /* max-width: 600px; */
  margin: 0 auto;
}

.ty-form .gform_wrapper input[type="email"],
.ty-form .gform_wrapper input[type="text"],
.ty-form .gform_wrapper textarea {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 15px;
}

.ty-form .gform_footer {
  text-align: center;
}

/* Cookie settings */
.ty-cookie-settings {
  padding: 60px 0;
}

.ty-cookie {
  max-width: 800px;
  margin: 0 auto;
  background-color: #f8f9fa;
  border-radius: 5px;
  padding: 30px;
}

.ty-cookie__line {
  border-top: 1px solid #ddd;
  margin: 20px 0;
}

.ty-cookie__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0;
}

.ty-cookie__option-text {
  flex: 0 0 80%;
}

.ty-cookie__toggle-wrapper {
  flex: 0 0 15%;
  text-align: right;
}

.ty-cookie__paragraph {
  margin-bottom: 10px;
}

.ty-cookie__toggle {
  position: absolute;
  opacity: 0;
}

.ty-cookie__label {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
  background-color: #ddd;
  border-radius: 15px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.ty-cookie__label:before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #fff;
  transition: transform 0.3s ease;
}

.ty-cookie__toggle:checked + .ty-cookie__label {
  background-color: #007bff;
}

.ty-cookie__toggle:checked + .ty-cookie__label:before {
  transform: translateX(30px);
}

.ty-cookie__button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  margin-top: 20px;
}

.ty-cookie__button:hover {
  background-color: #0069d9;
  color: #fff;
}

.ty-cookie__snackbar {
  display: none;
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 15px;
  border-radius: 4px;
  margin-top: 20px;
}

/* Responsive styles */
@media (max-width: 768px) {
  .ty-eumap .content-country .inner {
    flex-direction: column;
  }
  
  .ty-eumap .image-container,
  .ty-eumap .content-container {
    flex: 0 0 100%;
  }
  
  .ty-eumap .image-container {
    height: 200px;
  }
  
  .ty-eumap #legenda {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  
  .ty-block-img-text .row {
    flex-direction: column;
  }
  
  .ty-block-img-text .content {
    padding: 30px 0;
  }
  
  .ty-cookie__option {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .ty-cookie__option-text {
    flex: 0 0 100%;
    margin-bottom: 15px;
  }
  
  .ty-cookie__toggle-wrapper {
    flex: 0 0 100%;
    text-align: left;
  }
}

/* Event Detail Page Styling */

/* Event Title and Schedule */
/* (oude selectors verwijderd, zie nieuwe onderaan bestand) */

/* Event Details Section - Three Column Layout */
.ty-event-details {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  margin: 32px 0 0;
  gap: 32px;
}

.ty-event-details-column {
  min-width: 0;
}

/* Specific widths for each column */
.ty-event-details-column:first-child {
  flex: 0 0 25%;
}

.ty-event-details-column:nth-child(2) {
  flex: 0 0 30%;
}

.ty-event-details-column:last-child {
  flex: 0 0 40%;
}

.ty-event-details-column h3 {
  margin: 0 0 16px;
  color: #0041c2;
  font-family: "Poppins", sans-serif !important;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ty-event-details-content,
.ty-event-venue-content {
  color: #757670;
  font-family: "Merriweather", serif !important;
  font-size: 16px;
  line-height: 1.6;
}

.ty-event-detail-item {
  margin-bottom: 16px;
}

.ty-event-detail-item:last-child {
  margin-bottom: 0;
}

.ty-event-detail-item strong {
  color: #0041c2;
  font-family: "Poppins", sans-serif !important;
  font-weight: 600;
}

.ty-event-venue-name {
  font-weight: 600;
  color: #0041c2;
  font-family: "Poppins", sans-serif !important;
  margin-bottom: 8px;
}

.ty-event-venue-address {
  line-height: 1.5;
}

.ty-event-map {
  width: 100%;
}

.ty-event-map .tribe-events-venue-map {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
}

/* Responsive Design for Event Details */
@media (max-width: 768px) {
  .ty-event-details {
    flex-direction: column;
    gap: 24px;
  }
  
  .ty-event-details-column {
    width: 100%;
    flex: none;
  }
}

/* Event Programme Section */
.ty-event-programme {
  position: relative;
  margin: 32px 0 8px;
  padding: 32px;
  background-color: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
}

.ty-event-programme h2 {
  margin: 0 0 24px;
  color: #0041c2;
  font-size: 40px;
  line-height: 48px;
  letter-spacing: 1px;
}

.ty-event-programme table {
  width: 100%;
}

.ty-event-programme table tr td {
  color: #757670;
  font-family: "Merriweather", serif !important;
  font-size: var(--tec-font-size-2);
  line-height: var(--tec-line-height-3);
  min-width: 0;
  padding: 0 0 8px;
  vertical-align: baseline;
}

.ty-event-programme table tr td.wide {
  width: 44px;
}

.ty-event-programme table tr td.narrow {
  width: 16px;
  text-align: center;
}

.ty-event-programme table tr td:first-child {
  width: 48px;
}

.ty-event-programme table tr td:nth-child(2) {
  width: 16px;
  text-align: center;
}

.ty-event-programme table tr td:nth-child(3) {
  width: 48px;
}

/* Event Speakers Section */
.ty-event-speaker {
  position: relative;
  margin: 32px 0;
  padding: 56px 0;
}

.ty-event-speaker::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 100vw;
  height: 100%;
  top: 0;
  left: calc(-50vw + 50%);
  background-color: #fafaf3;
}

.ty-event-speaker h2 {
  margin-top: 0;
  color: #0041c2;
  font-size: 40px;
  line-height: 48px;
  letter-spacing: 1px;
}

.ty-event-speaker .ty-event-speaker-text {
  margin: 0 0 24px;
}

.ty-event-speaker .ty-event-speaker-text > p,
.ty-event-speaker .ty-event-speaker-text > ul,
.ty-event-speaker .ty-event-speaker-text > ol,
.ty-event-speaker .ty-event-speaker-text > ul > li,
.ty-event-speaker .ty-event-speaker-text > ol > li {
  color: #757670;
  font-family: "Merriweather", serif !important;
  font-size: var(--tec-font-size-2);
  line-height: var(--tec-line-height-3);
}

.ty-event-speaker .ty-event-speaker-list {
  margin: 0 -12px;
}

.ty-event-speaker .ty-event-speaker-list .ty-event-speaker-item {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0px 12px 16px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  margin-bottom: 24px;
}

.ty-event-speaker .ty-event-speaker-list .ty-event-speaker-item .ty-event-speaker-img {
  position: relative;
  width: 100%;
  padding-top: 98%;
  overflow: hidden;
}

.ty-event-speaker .ty-event-speaker-list .ty-event-speaker-item .ty-event-speaker-img img {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  transform: translateX(-50%);
}

.ty-event-speaker .ty-event-speaker-list .ty-event-speaker-item .ty-event-speaker-content {
  padding: 24px;
}

.ty-event-speaker .ty-event-speaker-list .ty-event-speaker-item .ty-event-speaker-content h3 {
  margin: 0 0 8px;
  font-family: "Poppins", sans-serif !important;
  font-size: 26px;
  line-height: 30px;
  font-weight: 600;
}

.ty-event-speaker .ty-event-speaker-list .ty-event-speaker-item .ty-event-speaker-content > p {
  margin: 0 0 16px;
  color: #757670;
  font-family: "Poppins", sans-serif !important;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

.ty-event-speaker .ty-event-speaker-list .ty-event-speaker-item .ty-event-speaker-content .ty-event-speaker-bio {
  margin: 0;
}

.ty-event-speaker .ty-event-speaker-list .ty-event-speaker-item .ty-event-speaker-content .ty-event-speaker-bio > p,
.ty-event-speaker .ty-event-speaker-list .ty-event-speaker-item .ty-event-speaker-content .ty-event-speaker-bio > ul,
.ty-event-speaker .ty-event-speaker-list .ty-event-speaker-item .ty-event-speaker-content .ty-event-speaker-bio > ol,
.ty-event-speaker .ty-event-speaker-list .ty-event-speaker-item .ty-event-speaker-content .ty-event-speaker-bio > ul > li,
.ty-event-speaker .ty-event-speaker-list .ty-event-speaker-item .ty-event-speaker-content .ty-event-speaker-bio > ol > li {
  color: #757670;
  font-family: "Merriweather", serif !important;
  font-size: var(--tec-font-size-2);
  line-height: var(--tec-line-height-3);
}

/* Back to Events Link */
.tribe-events-back a {
  color: #757670;
  font-family: "Poppins", sans-serif !important;
  text-decoration: none;
}

.tribe-events-back a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media only screen and (max-width: 768px) {
  .tribe-events-pg-template .tribe-events-single .tribe-events-single-event-title {
    font-size: 52px;
    line-height: 1.12;
  }
  
  .ty-event-details {
    flex-wrap: wrap;
  }
  
  .ty-event-details .tribe-events-venue-map {
    width: 100%;
  }
  
  .ty-event-details .tribe-events-meta-group.tribe-events-meta-group-organizer,
  .ty-event-details .tribe-events-meta-group.tribe-events-meta-group-venue {
    width: calc(50% - 12px);
  }
  
  .ty-event-programme {
    padding: 24px;
  }
  
  .ty-event-programme h2 {
    font-size: 32px;
    line-height: 38px;
  }
  
  .ty-event-speaker h2 {
    font-size: 32px;
    line-height: 38px;
  }
}

@media only screen and (max-width: 414px) {
  .tribe-events-pg-template .tribe-events-single .tribe-events-single-event-title {
    font-size: 42px;
    line-height: 1.12;
  }
  
  .ty-event-details .tribe-events-meta-group.tribe-events-meta-group-organizer,
  .ty-event-details .tribe-events-meta-group.tribe-events-meta-group-venue {
    width: 100%;
  }
  
  .ty-event-programme {
    padding: 16px;
  }
  
  .ty-event-speaker {
    padding: 32px 0;
  }
}

/* Additional Event Detail Page Styling */

/* Event Navigation */
.tribe-events-nav-pagination {
  margin: 32px 0;
}

.tribe-events-nav-pagination .tribe-events-sub-nav {
  display: flex;
  justify-content: space-between;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tribe-events-nav-pagination .tribe-events-sub-nav li {
  margin: 0;
}

.tribe-events-nav-pagination .tribe-events-sub-nav a {
  color: #0041c2;
  font-family: "Poppins", sans-serif !important;
  text-decoration: none;
  font-weight: 600;
}

.tribe-events-nav-pagination .tribe-events-sub-nav a:hover {
  text-decoration: underline;
}

/* Event Meta Groups */
.tribe-events-meta-group {
  margin-bottom: 24px;
}

.tribe-events-meta-group h3 {
  margin: 0 0 16px;
  color: #0041c2;
  font-family: "Poppins", sans-serif !important;
  font-size: var(--tec-font-size-3);
  line-height: var(--tec-line-height-3);
  font-weight: 600;
}

.tribe-events-meta-group dl {
  margin: 0;
}

.tribe-events-meta-group dl dt {
  color: #757670;
  font-family: "Poppins", sans-serif !important;
  font-size: var(--tec-font-size-2);
  line-height: var(--tec-line-height-3);
  font-weight: 600;
  margin-bottom: 4px;
}

.tribe-events-meta-group dl dd {
  color: #757670;
  font-family: "Merriweather", serif !important;
  font-size: var(--tec-font-size-2);
  line-height: var(--tec-line-height-3);
  margin-bottom: 16px;
}

.tribe-events-meta-group dl dd:last-child {
  margin-bottom: 0;
}

.tribe-events-meta-group dl dd a {
  color: #c12b8e;
  text-decoration: none;
}

.tribe-events-meta-group dl dd a:hover {
  text-decoration: underline;
}

/* Event Venue Map */
.tribe-events-venue-map {
  margin-top: 24px;
}

.tribe-events-venue-map iframe {
  width: 100%;
  height: 300px;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
}

/* Event Schedule Details */
.tribe-events-schedule {
  margin: 16px 0 32px;
}

.tribe-events-schedule h2 {
  display: inline-block;
  padding: 4px 8px;
  color: #0041c2;
  background-color: #e0eab7;
  border-radius: 8px;
  margin: 0;
  font-family: "Poppins", sans-serif !important;
  font-size: var(--tec-font-size-2);
  line-height: var(--tec-line-height-3);
  font-weight: 600;
}

/* Event Content Container - Updated */
#tribe-events-content {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Event Back Link */
.tribe-events-back {
  margin-bottom: 24px;
}

.tribe-events-back a {
  color: #757670;
  font-family: "Poppins", sans-serif !important;
  text-decoration: none;
  font-weight: 600;
}

.tribe-events-back a:hover {
  text-decoration: underline;
}

/* Event Notices */
.tribe-events-notices {
  margin-bottom: 24px;
  padding: 16px;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
}

.tribe-events-notices ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tribe-events-notices li {
  color: #757670;
  font-family: "Merriweather", serif !important;
  font-size: var(--tec-font-size-2);
  line-height: var(--tec-line-height-3);
}

/* Event Footer */
#tribe-events-footer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #e4e4e4;
}

/* Event Comments */
.tribe-events-comments {
  margin-top: 48px;
}

/* Responsive adjustments for event details */
@media only screen and (max-width: 768px) {
  .ty-event-details {
    flex-direction: column;
  }
  
  .ty-event-details > div {
    width: 100%;
    margin-bottom: 24px;
  }
  
  .ty-event-details > div:last-child {
    margin-bottom: 0;
  }
  
  .tribe-events-venue-map iframe {
    height: 250px;
  }
  
  #tribe-events-pg-template {
    padding: var(--tec-spacer-4) var(--tec-spacer-2);
  }
}

@media only screen and (max-width: 414px) {
  .tribe-events-nav-pagination .tribe-events-sub-nav {
    flex-direction: column;
    gap: 16px;
  }
  
  .tribe-events-venue-map iframe {
    height: 200px;
  }
  
  #tribe-events-pg-template {
    padding: var(--tec-spacer-2);
  }
}

/* Final Event Detail Page Styling Touches */

/* Event Wrapper */
.tribe-events-single {
  background-color: #fff;
  padding: 0;
}

/* Event Title Container */
.tribe-events-single-event-title {
  margin-bottom: 16px !important;
}

/* Event Schedule Container */
.tribe-events-schedule.tribe-clearfix {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Event Description Container */
.tribe-events-single-event-description {
  margin-bottom: 32px;
}

.tribe-events-single-event-description p:last-child {
  margin-bottom: 0;
}

/* Event Details Wrapper */
.ty-event-details {
  background-color: #fafaf3;
  padding: 32px;
  border-radius: 8px;
  margin: 32px 0;
}

/* Event Programme Wrapper */
.ty-event-programme-wrapper {
  width: 100%;
}

/* Event Speaker Wrapper */
.ty-event-speaker-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Event Speaker List Grid */
.ty-event-speaker-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

/* Event Speaker Item */
.ty-event-speaker-item {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ty-event-speaker-item .ty-event-speaker-img {
  flex-shrink: 0;
}

.ty-event-speaker-item .ty-event-speaker-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ty-event-speaker-item .ty-event-speaker-content .ty-event-speaker-bio {
  flex: 1;
}

/* Event Navigation Improvements */
.tribe-events-nav-pagination .tribe-events-sub-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.tribe-events-nav-pagination .tribe-events-sub-nav a:hover {
  background-color: #e9ecef;
  text-decoration: none;
}

/* Event Meta Group Improvements */
.tribe-events-meta-group {
  background-color: #fff;
  padding: 24px;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
}

/* Event Venue Map Improvements */
.tribe-events-venue-map {
  background-color: #fff;
  padding: 24px;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
}

/* Responsive improvements */
@media only screen and (max-width: 768px) {
  .ty-event-details {
    padding: 24px;
  }
  
  .ty-event-speaker-wrapper {
    padding: 0 16px;
  }
  
  .ty-event-speaker-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .tribe-events-schedule.tribe-clearfix {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media only screen and (max-width: 414px) {
  .ty-event-details {
    padding: 16px;
  }
  
  .ty-event-speaker-wrapper {
    padding: 0 12px;
  }
  
  .tribe-events-meta-group,
  .tribe-events-venue-map {
    padding: 16px;
  }
}

/* Tribe Events Page Template Container - Fixed */
#tribe-events-pg-template {
  max-width: 1048px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: var(--tec-spacer-8) var(--tec-spacer-4) var(--tec-spacer-4) !important;
  width: 100%;
  box-sizing: border-box;
}

/* Event Content Container - Fixed */
#tribe-events-content {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Event Title - Fixed Selector */
.tribe-events-single-event-title {
  margin: 0;
  color: #0041c2 !important;
  font-family: "Poppins", sans-serif !important;
  font-size: 60px;
  line-height: 64px;
  letter-spacing: 1px;
  font-weight: 600;
}

/* Event Schedule - Fixed Selector */
.tribe-events-schedule h2 {
  padding: 4px 8px;
  color: #0041c2;
  background-color: #e0eab7;
  border-radius: 8px;
  margin: 0;
}

.tribe-events-schedule h2 > span {
  margin-bottom: var(--tec-spacer-1);
  font-family: "Poppins", sans-serif !important;
  font-size: var(--tec-font-size-2);
  line-height: var(--tec-line-height-3);
}

.tribe-events-schedule .tribe-events-cost {
  color: #757670;
  font-family: "Poppins", sans-serif !important;
}

/* Event Description - Fixed Selector */
.tribe-events-single-event-description > p,
.tribe-events-single-event-description > ul,
.tribe-events-single-event-description > ol,
.tribe-events-single-event-description > ul > li,
.tribe-events-single-event-description > ol > li {
  color: #757670 !important;
  font-family: "Merriweather", serif !important;
  font-size: var(--tec-font-size-2);
  line-height: var(--tec-line-height-3);
}

/* Event Featured Image - Enable */
.tribe-events-single-event-description .wp-block-image,
.tribe-events-single-event-description img {
  max-width: 100%;
  height: auto;
  margin: 24px 0;
}

/* Event Back Link */
.tribe-events-back {
  margin-bottom: 24px;
}

.tribe-events-back a {
  color: #757670;
  font-family: "Poppins", sans-serif !important;
  text-decoration: none;
  font-weight: 600;
}

.tribe-events-back a:hover {
  text-decoration: underline;
}

/* Event Notices */
.tribe-events-notices {
  margin-bottom: 24px;
  padding: 16px;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
}

.tribe-events-notices ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tribe-events-notices li {
  color: #757670;
  font-family: "Merriweather", serif !important;
  font-size: var(--tec-font-size-2);
  line-height: var(--tec-line-height-3);
}

/* Event Footer */
#tribe-events-footer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #e4e4e4;
}

/* Event Comments */
.tribe-events-comments {
  margin-top: 48px;
}

.tribe-events-single .tribe-events-event-image {
  margin-bottom: 32px;
  text-align: center;
}
.tribe-events-single .tribe-events-event-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

/* Event Detail Page Specific Styling */

/* Special padding-top for event detail pages */
body.single-tribe_events #content {
  padding-top: 118px; /* Default padding for mobile */
}

@media (min-width: 992px) {
  body.single-tribe_events #content {
    padding-top: 60px; /* Reduced padding for desktop event pages */
  }
}

/* Tribe Events Page Template Container - Fixed */
#tribe-events-pg-template {
  max-width: 1048px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: var(--tec-spacer-8) var(--tec-spacer-4) var(--tec-spacer-4) !important;
  width: 100%;
  box-sizing: border-box;
}

/* Homepage Overview Styling */

/* Mobile View Filter Button */
.ty-home-overview .mobile-view .btn-full-width {
  margin-bottom: 24px;
  width: 100%;
  background-color: #6c757d;
  border-color: #6c757d;
  color: #fff;
  font-family: "Poppins", sans-serif !important;
  font-weight: 500;
  font-size: 18px;
  line-height: 31px;
  padding: 19px 32px;
  border-radius: 8px;
  border: 2px solid #6c757d;
  transition: all 0.2s ease;
}

.ty-home-overview .mobile-view .btn-full-width:hover {
  background-color: #5a6268;
  border-color: #545b62;
  color: #fff;
}

/* Desktop View Filter and Search - Updated for Search & Filter Plugin */
.ty-home-overview .desktop-view .filter {
  margin-bottom: 80px;
}

/* General filter styling for Search & Filter plugin */
.ty-home-overview .desktop-view .filter .sf-field-filter {
  height: 69px;
}

.ty-home-overview .desktop-view .filter .sf-field-filter .sf-input-select {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  height: 69px;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

/* Filter option styling */
.ty-home-overview .desktop-view .filter .sf-field-filter .sf-input-select .sf-option {
  display: inline-block;
  padding: 0;
  margin: 0;
  border-radius: 8px;
  border: 2px solid #e0e0e0;
  font-weight: 500;
  font-family: "Poppins", sans-serif !important;
  font-size: 18px;
  line-height: 31px;
  cursor: pointer;
  height: 69px;
  min-width: auto;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.ty-home-overview .desktop-view .filter .sf-field-filter .sf-input-select .sf-option input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.ty-home-overview .desktop-view .filter .sf-field-filter .sf-input-select .sf-option label {
  cursor: pointer;
  width: 100%;
  height: 100%;
  display: block;
  padding: 0 24px;
  height: 60px;
  color: #0041c2;
  font-weight: 500;
  font-size: 18px;
  line-height: 31px;
  display: flex;
  align-items: center;
  margin: 0;
  white-space: nowrap;
}

.ty-home-overview .desktop-view .filter .sf-field-filter .sf-input-select .sf-option:hover,
.ty-home-overview .desktop-view .filter .sf-field-filter .sf-input-select .sf-option:focus,
.ty-home-overview .desktop-view .filter .sf-field-filter .sf-input-select .sf-option.sf-option-active {
  background: #0041c2;
  border-color: #0041c2;
  transition: all 0.2s ease;
}

.ty-home-overview .desktop-view .filter .sf-field-filter .sf-input-select .sf-option:hover label,
.ty-home-overview .desktop-view .filter .sf-field-filter .sf-input-select .sf-option:focus label,
.ty-home-overview .desktop-view .filter .sf-field-filter .sf-input-select .sf-option.sf-option-active label {
  color: #fff;
}

/* Alternative selectors for different Search & Filter structures */
.ty-home-overview .desktop-view .filter ul {
  padding: 0;
  margin: 0;
  height: 69px;
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  gap: 16px;
}

.ty-home-overview .desktop-view .filter ul li {
  padding: 0;
  display: inline-block;
  margin: 0;
  flex-shrink: 0;
}

.ty-home-overview .desktop-view .filter ul li ul {
  margin: 0;
  height: 69px;
  padding: 0;
  overflow-y: hidden;
  overflow-x: auto;
  white-space: nowrap;
  list-style: none;
  display: flex;
  gap: 16px;
}

.ty-home-overview .desktop-view .filter ul ul li {
  display: inline-block;
  padding: 0;
  margin: 0;
  border-radius: 8px;
  border: 2px solid #e0e0e0;
  font-weight: 500;
  font-family: "Poppins", sans-serif !important;
  font-size: 18px;
  line-height: 31px;
  cursor: pointer;
  height: 69px;
  width: auto;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.ty-home-overview .desktop-view .filter ul ul li input {
  opacity: 0;
  width: 0;
  height: 0;
  float: left;
}

.ty-home-overview .desktop-view .filter ul ul li label {
  cursor: pointer;
  width: 100%;
  height: 100%;
  display: block;
  padding: 0 24px;
  height: 60px;
  color: #0041c2;
  font-weight: 500;
  font-size: 18px;
  line-height: 31px;
  display: flex;
  align-items: center;
  margin: 0;
}

.ty-home-overview .desktop-view .filter ul ul li:hover,
.ty-home-overview .desktop-view .filter ul ul li:focus,
.ty-home-overview .desktop-view .filter ul ul li.sf-option-active {
  background: #0041c2;
  border-color: #0041c2;
  transition: all 0.2s ease;
}

.ty-home-overview .desktop-view .filter ul ul li:hover label,
.ty-home-overview .desktop-view .filter ul ul li:focus label,
.ty-home-overview .desktop-view .filter ul ul li.sf-option-active label {
  color: #fff;
}

/* Desktop Search Field */
.ty-home-overview .desktop-view .search-home {
  height: 69px;
  position: relative;
  margin-bottom: 80px;
}

.ty-home-overview .desktop-view .search-home .sf-field-search {
  padding: 0;
  height: 69px;
}

.ty-home-overview .desktop-view .search-home .sf-field-search label {
  width: 100%;
  height: 69px;
  margin: 0;
}

.ty-home-overview .desktop-view .search-home .sf-field-search input[type="text"] {
  height: 69px !important;
  margin: 0 !important;
  width: 100%;
  border: 2px solid #c2c2c2 !important;
  border-radius: 8px !important;
  font-family: "Poppins", sans-serif !important;
  font-weight: 500;
  font-size: 18px !important;
  padding: 19px 32px !important;
  line-height: 31px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
  background-position: center right 32px;
  background-repeat: no-repeat;
  background-color: transparent;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .ty-home-overview .desktop-view {
    display: none !important;
  }
  
  .ty-home-overview .mobile-view {
    display: block !important;
  }
}

@media (min-width: 992px) {
  .ty-home-overview .mobile-view {
    display: none !important;
  }
  
  .ty-home-overview .desktop-view {
    display: block !important;
  }
}

/* Homepage filter styling for Search & Filter plugin - matching live site */
.ty-home-overview .desktop-view .filter {
  border-radius: 4px;
  margin-bottom: 20px;
  font-family: Poppins, sans-serif;
}

.ty-home-overview .desktop-view .filter .search-filter-field {
  margin: 0;
  font-family: Poppins, sans-serif;
}

.ty-home-overview .desktop-view .filter .search-filter-input-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-family: Poppins, sans-serif;
}

.ty-home-overview .desktop-view .filter .search-filter-input-radio {
  margin: 0;
  padding:0;
  position: relative;
  font-family: Poppins, sans-serif;
}

.ty-home-overview .desktop-view .filter .search-filter-input-radio__input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.ty-home-overview .desktop-view .filter .search-filter-input-radio__control {
  display: none;
}

.ty-home-overview .desktop-view .filter .search-filter-input-radio__container {
  display: inline-flex;
  align-items: center;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 400;
  text-decoration: none;
  line-height: 1.2;
  font-family: Poppins, sans-serif;
  margin-right: 6px;
}

.ty-home-overview .desktop-view .filter .search-filter-input-radio__label {
  font-weight: 400;
  font-size: 16px;
  padding-left: 0;
  color: #0041c2;
  font-family: Poppins, sans-serif;
}

.ty-home-overview .desktop-view .filter .search-filter-input-radio:hover .search-filter-input-radio__label {
  color: #fff;
}

.ty-home-overview .desktop-view .filter .search-filter-input-radio:hover .search-filter-input-radio__container {
  border-color: #0041c2;;
  background: #0041c2;
  color: #fff;
}

.ty-home-overview .desktop-view .filter .search-filter-input-radio--is-active .search-filter-input-radio__container {
  background: #0041c2;
  border-color: #0041c2;
  color: #fff;
}

.ty-home-overview .desktop-view .filter .search-filter-input-radio--is-active .search-filter-input-radio__label {
  color: #fff;
}

.ty-home-overview .desktop-view .search-home {
  padding: 0 0 0 20px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-family: Poppins, sans-serif;
}

.ty-home-overview .desktop-view .search-home .search-filter-field {
  margin: 0;
  font-family: Poppins, sans-serif;
}

.ty-home-overview .desktop-view .search-home .search-filter-input-text {
  position: relative;
  display: flex;
  align-items: center;
  font-family: Poppins, sans-serif;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
}

.ty-home-overview .desktop-view .search-home .search-filter-input-text__icon {
  position: absolute;
  left: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
}

.ty-home-overview .desktop-view .search-home .search-filter-input-text__icon svg {
  width: 14px;
  height: 14px;
  fill: #6c757d;
}

.ty-home-overview .desktop-view .search-home .search-filter-input-text__input {
  width: 100%;
  height: 48px;
  padding: 14px 16px 14px 30px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  background: #fff;
  transition: none;
  line-height: 1.2;
  font-family: Poppins, sans-serif;
  color: #0041c2;
  box-sizing: border-box;
}

.ty-home-overview .desktop-view .search-home .search-filter-input-text__input:focus {
  outline: none;
  border: none;
  box-shadow: none;
  height: 48px;
  padding: 14px 16px 14px 30px;
  transition: none;
}

.ty-home-overview .desktop-view .search-home .search-filter-input-text__input:hover {
  height: 48px;
  padding: 14px 16px 14px 30px;
  transition: none;
  border: none;
}

.ty-home-overview .desktop-view .search-home .search-filter-input-text__input::placeholder {
  color: #0041c2;
  opacity: 0.7;
}

/* Mobile view styling */
.ty-home-overview .mobile-view .btn-full-width {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background: #007cba;
  color: #fff;
  text-align: center;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
  margin-bottom: 15px;
  border: none;
}

.ty-home-overview .mobile-view .btn-full-width:hover {
  background: #005a8b;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}