/* Event Detail Page Styles */
body.page-node-type-events,
.page-node-type-events main {
  background-color: #fff !important;
}

/* .page-node-type-events.gin--vertical-toolbar main>div.container {
  padding-left: 0;
} */

/* Main container */
.node--type-events.node--view-mode-full {
  background-color: #fff;
  max-width: 90%;
  width: 100%;
  margin: 47px auto;
  border: 1px solid #ECECEC;
  padding: 4.5% 3.7%;
  position: relative;
}

/* Header section */
.detail-title {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: auto;
  margin: 0 auto 35px auto;
  text-align: center;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

/* Event label/type */
.event-label {
  font-family: 'Roboto', -apple-system, Roboto, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 27px; /* 168.75% */
  letter-spacing: 1.28px;
  text-transform: uppercase;
  color: #646F78;
  position: relative;
}

.event-label .field--name-field-event-type {
  font-family: 'Roboto', -apple-system, Roboto, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 27px; /* 168.75% */
  letter-spacing: 1.28px;
  text-transform: uppercase;
  color: rgba(100, 111, 120, 1);
}

/* Event title */
.details-title h1 {
  font-family: 'Open Sans', -apple-system, Roboto, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 30px;
  line-height: normal;
  text-align: center;
  margin: 0;
  color: rgba(47, 57, 65, 1);
  position: relative;
}

/* Short description */
.details-content {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.details-content p,
.details-content .field--name-field-short-description {
  font-family: 'Roboto', -apple-system, Roboto, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 27px; /* 150% */
  text-align: center;
  color: rgba(100, 111, 120, 1);
  margin: 0;
  position: relative;
}

/* Main content row */
.row-details {
  display: inline-flex;
  gap: 40px;
  align-items: flex-start;
  width: 100%;
  height: auto;
  margin: 0 auto;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid #ECECEC;
  padding: 45px;
  margin-bottom: 45px;
}

/* Left column - Event image */
.event-image-lt {
  width: 45%;
  max-width: 500px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  position: relative;
}

.event-image-lt img {
  width: 100%;
  height: auto;
  aspect-ratio: 500/370;
  object-fit: cover;
  background: #9E9E9E;
  position: relative;
  border-radius: 0;
}

/* Right column - Event info */
.event-info-rt {
  flex: 1;
  /* display: flex; */
  flex-direction: column;
  gap: 30px;
  width: 55%;
}

/* Event info styling container */
.event-info-style {
  width: 100%;
  max-width: 586px;
  padding: 20px;
  border: 1px solid #ECECEC;
  background: #FFF;
  /* display: flex; */
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 35px;
  margin: 0;
  position: relative;
  margin-bottom: 4%;
}

/* Date and info container */
.event-info-style .event-list-group {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

/* Event date */
.event-info-style .event-date {
  min-width: 80px;
  width: auto;
  height: auto;
  border: 1px solid #AAE5EA;
  background: #DEFCFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 12px 20px;
  flex-shrink: 0;
}

.event-date .field_event_date_month, 
.event-date .field_event_date_year {
  font-family: 'Roboto', -apple-system, Roboto, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 22px; /* 192.857% */
  text-align: center;
  color: rgba(100, 111, 120, 1);
  text-transform: uppercase;
  align-self: stretch;
}

.event-date .field_event_date_day {
  font-family: 'Roboto', -apple-system, Roboto, Helvetica, sans-serif;
  font-weight: 800;
  font-size: 30px;
  line-height: 27px; /* 90% */
  letter-spacing: -0.6px;
  text-align: center;
  color: rgba(47, 57, 65, 1);
  align-self: stretch;
}

/* Event details container */
.event-info-style .event-details {
  width: 100%;
  max-width: 451px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

/* Event time */
.event-info-style .event-time {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Roboto', -apple-system, Roboto, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 27px; /* 150% */
  color: rgba(47, 57, 65, 1);
  position: relative;
}

.event-info-style .event-time::before {
  content: "";
  width: 28px;
  height: 28px;
  background-image: url('data:image/svg+xml,<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M10.5 1.75586H17.5V4.08919H10.5V1.75586ZM12.8333 16.9225V9.92253H15.1667V16.9225H12.8333ZM22.2017 9.19919L23.8583 7.54253C23.3567 6.94753 22.8083 6.38753 22.2133 5.89753L20.5567 7.55419C18.7483 6.10753 16.4733 5.24419 14 5.24419C8.20167 5.24419 3.5 9.94586 3.5 15.7442C3.5 21.5425 8.19 26.2442 14 26.2442C19.81 26.2442 24.5 21.5425 24.5 15.7442C24.5 13.2825 23.6367 11.0075 22.2017 9.19919ZM5.83333 15.7558C5.83333 20.2708 9.485 23.9225 14 23.9225C18.515 23.9225 22.1667 20.2708 22.1667 15.7558C22.1667 11.2409 18.515 7.58919 14 7.58919C9.485 7.58919 5.83333 11.2409 5.83333 15.7558Z" fill="%23295E63"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  flex-shrink: 0;
}

/* Event venue and address container */
.event-venue-container {
  width: 100%;
  max-width: 440px;
  /* min-height: 75px; */
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.event-venue-container .event-venue,
.event-venue-container .event-address {
  position: relative;
  width: 100%;
  padding-left: 36px;
}

.event-venue-container .event-venue::before,
.event-venue-container .event-address::before {
  content: "";
  width: 28px;
  height: 28px;
  background-image: url('data:image/svg+xml,<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M13.9987 2.33301C9.48369 2.33301 5.83203 5.98468 5.83203 10.4997C5.83203 16.6247 13.9987 25.6664 13.9987 25.6664C13.9987 25.6664 22.1653 16.6247 22.1653 10.4997C22.1653 5.98468 18.5137 2.33301 13.9987 2.33301ZM8.16536 10.4997C8.16536 7.27968 10.7787 4.66635 13.9987 4.66635C17.2187 4.66635 19.832 7.27968 19.832 10.4997C19.832 13.8597 16.472 18.8881 13.9987 22.0264C11.572 18.9114 8.16536 13.8247 8.16536 10.4997ZM11.082 10.4997C11.082 8.88885 12.3879 7.58301 13.9987 7.58301C15.0407 7.58301 16.0035 8.13892 16.5246 9.04135C17.0456 9.94376 17.0456 11.0556 16.5246 11.958C16.0035 12.8604 15.0407 13.4164 13.9987 13.4164C12.3879 13.4164 11.082 12.1105 11.082 10.4997Z" fill="%23295E63"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  position: absolute;
  left: 0;
  top: 0;
  margin-top: 0;
}

.event-venue-content {
  flex: 1;
  margin-top: 0;
}

/* Event venue name */
.event-info-style .event-venue .field--name-field-event-venue {
  font-family: 'Roboto', -apple-system, Roboto, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 27px; /* 150% */
  color: rgba(47, 57, 65, 1);
  margin-bottom: 0;
  width: 100%;
  max-width: 404px;
  min-height: 67px;
}

/* Event address */
.event-info-style .event-address {
  font-family: 'Roboto', -apple-system, Roboto, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 27px; /* 150% */
  color: rgba(47, 57, 65, 1);
  margin: 0;
  width: 100%;
  max-width: 404px;
}

/* Event end date badge */
.event-info-style .event-end-date {
  display: flex;
  padding: 3px 12px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 2px;
  background: rgba(41, 94, 99, 0.10);
  font-family: 'Roboto', -apple-system, Roboto, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 27px; /* 192.857% */
  color: rgba(41, 94, 99, 1);
  width: fit-content;
  position: relative;
}

/* Action buttons */
.event-actions {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 20px;
}

.event-register-btn {
  display: flex;
  min-width: 168px;
  width: auto;
  height: 44px;
  padding: 12px 46px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 2px;
  background: #295E63;
  color: rgba(255, 255, 255, 1);
  text-align: center;
  font-family: 'Roboto', -apple-system, Roboto, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  position: relative;
}

.event-register-btn:hover {
  background: #1e4a4f;
  color: #FFF;
}

.event-calendar-btn {
  display: flex;
  height: 44px;
  padding: 12px 28px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 2px;
  border: 1px solid #295E63;
  background: #FFF;
  color: rgba(41, 94, 99, 1);
  text-align: center;
  font-family: 'Roboto', -apple-system, Roboto, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
  text-transform: capitalize;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.event-calendar-btn:hover {
  background: #295E63;
  color: #FFF;
}

/* Event body content */
/* .event-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 25px;
  align-self: stretch;
  width: 586px;
} */

.event-body .event-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  align-self: stretch;
}

.event-body h2,
.event-body h3 {
  font-family: 'Open Sans', -apple-system, Roboto, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 22px;
  line-height: normal;
  color: rgba(47, 57, 65, 1);
  margin: 0;
  align-self: stretch;
  position: relative;
}

.event-body p,
.event-body .field--name-body p {
  font-family: 'Roboto', -apple-system, Roboto, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 27px; /* 150% */
  color: rgba(100, 111, 120, 1);
  margin: 0;
  align-self: stretch;
  position: relative;
}

/* Special styling for lists in event body */
.event-body ul,
.event-body ol {
  font-family: 'Roboto', -apple-system, Roboto, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 34px; /* 188.889% */
  color: rgba(100, 111, 120, 1);
  margin: 0;
  padding-left: 20px;
  align-self: stretch;
  position: relative;
  list-style: disc;
}

.event-body li {
  margin-bottom: 0;
}

.event-body a {
  color: #0F766E;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.event-body a:hover {
  color: #295E63;
}

.event-body h2 {
  font-family: 'Open Sans', -apple-system, Roboto, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 22px;
  line-height: 100%;
  letter-spacing: 0%;
  color: #2F3941;
  margin: 24px 0;
}

p {
  font-family: 'Roboto', -apple-system, Roboto, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 27px;
  letter-spacing: 0%;
  color: #646F78;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  right: 112px;
  bottom: 100px;
  width: 47px;
  height: 47px;
  background: #F5BA6D;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top:hover {
  background: #e6a85a;
  transform: translateY(-2px);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}



/* Responsive Design */
@media (max-width: 1280px) {
  .node--type-events.node--view-mode-full {
    max-width: 95%;
    margin: 30px auto;
    padding: 40px 30px;
  }
  
  .detail-title {
    width: 100%;
    margin-bottom: 35px;
    left: 0;
    transform: none;
  }
  
  .row-details {
    width: 100%;
    gap: 30px;
    left: 0;
    transform: none;
    height: auto;
  }
  
  .event-image-lt {
    width: 45%;
  }
  
  .event-image-lt img {
    width: 100%;
    height: 330px;
  }
  
  .event-info-style {
    width: 100%;
    max-width: 520px;
  }
  
  .event-body {
    width: 100%;
    max-width: 520px;
  }

  .event-actions .event-register-btn,
  .event-actions .event-calendar-btn {
    width: 100%;
  }
}

@media (max-width: 1024px) {
  .node--type-events.node--view-mode-full {
    padding: 30px 20px;
  }
  
  .detail-title {
    margin-bottom: 35px;
  }
  
  .row-details {
    gap: 25px;
  }
  
  .event-image-lt {
    width: 45%;
  }
  
  .event-image-lt img {
    width: 100%;
    height: 280px;
  }
  
  .event-info-style .event-end-date {
    font-size: 12px;
  }

  /* //Button */
  .event-actions {
    flex-direction: column;
  }

  .back-to-top {
    right: 20px;
    bottom: 20px;
  }
}

@media (max-width: 768px) {
  .node--type-events.node--view-mode-full {
    padding: 25px 15px;
  }

  .event-info-rt {
    width: 100%;
  }
  
  .detail-title {
    width: 100%;
    margin-bottom: 35px;
    height: auto;
  }
  
  .details-title h1 {
    font-size: 26px;
  }
  
  .row-details {
    flex-direction: column;
    gap: 30px;
    width: 100%;
    height: auto;
    border: 0;
    padding: 0;
  }
  
  .event-image-lt {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }
  
  .event-image-lt img {
    width: 100%;
    height: auto;
    max-height: 300px;
  }
  
  .event-info-style {
    width: 100%;
    max-width: none;
  }
  
  .event-body {
    width: 100%;
    max-width: none;
  }
  
  .event-info-style .event-details {
    width: 100%;
  }
  
  .event-venue-container {
    width: 100%;
    height: auto;
  }
  
  .event-info-style .event-address {
    width: 100%;
    height: auto;
    margin-left: 0;
  }
  
  .event-info-style .event-venue .field--name-field-event-venue {
    width: 100%;
    height: auto;
  }
  
  .event-actions {
    flex-direction: row;
    align-items: stretch;
    gap: 12px;
  }
  
  .event-register-btn,
  .event-calendar-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .node--type-events.node--view-mode-full {
    padding: 20px 10px;
    margin: 20px auto;
  }
  
  .detail-title {
    margin-bottom: 35px;
  }
  
  .details-title h1 {
    font-size: 24px;
  }
  
  .details-content p,
  .details-content .field--name-field-short-description {
    font-size: 16px;
    line-height: 24px;
  }

  .event-body ul, .event-body ol {
    font-size: 16px;
    line-height: 24px;
  }
  
  .event-info-style {
    padding: 15px;
  }
  
  /* .event-info-style .event-list-group {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  } */
  
  .event-date {
    width: 70px;
    height: 75px;
  }
  
  .event-date .field_event_date_day {
    font-size: 26px;
  }
  
  .event-info-style .event-details {
    align-items: self-start;
    text-align: left;
  }
  
  .event-info-style .event-time,
  .event-info-style .event-venue {
    font-size: 16px;
    justify-content: center;
  }
  
  .event-info-style .event-address {
    margin-left: 0;
  }
  
  .event-body h2,
  .event-body h3 {
    font-size: 20px;
  }
  
  .event-body p,
  .event-body .field--name-body p {
    font-size: 16px;
    line-height: 24px;
  }
  
  .back-to-top {
    width: 40px;
    height: 40px;
    right: 15px;
    bottom: 15px;
  }
  
  .back-to-top svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 420px) {
  .event-actions {
    flex-direction: column;
  }

  .event-info-style .event-time, 
  .event-info-style .event-venue {
    align-items: self-start;
  }
}  

/* Print styles */
@media print {
  .node--type-events.node--view-mode-full {
    padding: 0;
  }
  
  .event-image-lt img {
    box-shadow: none;
  }
  
  .event-info-style {
    border: 1px solid #ccc;
    box-shadow: none;
  }
}