:root {
  /* Size variables */
  --dl-size-size-large: 144px;
  --dl-size-size-small: 48px;
  --dl-size-size-medium: 96px;
  --dl-size-size-xlarge: 192px;
  --dl-size-size-xsmall: 16px;
  --dl-size-size-xxlarge: 288px;
  --dl-size-size-maxwidth: 1400px;
  
  /* Spacing variables */
  --dl-space-space-unit: 16px;
  --dl-space-space-halfunit: 8px;
  --dl-space-space-sixunits: 96px;
  --dl-space-space-twounits: 32px;
  --dl-space-space-fiveunits: 80px;
  --dl-space-space-fourunits: 64px;
  --dl-space-space-threeunits: 48px;
  --dl-space-space-oneandhalfunits: 24px;
  
  /* Color system - Enhanced for theatre theme */
  --dl-color-theme-primary1: #8e44ad;       /* Deep purple - primary brand color */
  --dl-color-theme-primary2: #9b59b6;       /* Lighter purple - hover/active color */
  --dl-color-theme-secondary1: #FFFFFF;     /* White for text on dark backgrounds */
  --dl-color-theme-secondary2: #f8f4fc;     /* Very light purple for backgrounds */
  --dl-color-theme-accent1: #e74c3c;        /* Red for accent/call to action */ 
  --dl-color-theme-accent2: #f39c12;        /* Gold/yellow for secondary accents */
  --dl-color-theme-neutral-dark: #2c3e50;   /* Dark blue-gray for text */
  --dl-color-theme-neutral-light: #f9f9fb;  /* Off-white for backgrounds */
  
  /* Border radius variables */
  --dl-radius-radius-round: 50%;
  --dl-radius-radius-radius2: 2px;
  --dl-radius-radius-radius4: 4px;
  --dl-radius-radius-radius8: 8px;
  --dl-radius-radius-cardradius: 12px;      /* Increased for modern look */
  --dl-radius-radius-imageradius: 12px;     /* Increased for modern look */
  --dl-radius-radius-inputradius: 8px;      /* Decreased for more direct look */
  --dl-radius-radius-buttonradius: 8px;     /* Decreased for more direct look */
  
  /* Shadow variables - new */
  --dl-shadow-light: 0 2px 5px rgba(0, 0, 0, 0.05);
  --dl-shadow-medium: 0 4px 10px rgba(0, 0, 0, 0.1);
  --dl-shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.15);
  
  /* Animation variables - new */
  --dl-transition-fast: 0.2s ease;
  --dl-transition-medium: 0.3s ease;
  --dl-transition-slow: 0.5s ease;
}
 
.button {
  color: var(--dl-color-theme-secondary1);
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border: none;
  border-radius: var(--dl-radius-radius-buttonradius);
  background-color: var(--dl-color-theme-primary1);
  transition: all var(--dl-transition-fast);
  box-shadow: var(--dl-shadow-light);
  text-transform: none;
  letter-spacing: 0.5px;
}

.button:hover {
  background-color: var(--dl-color-theme-primary2);
  box-shadow: var(--dl-shadow-medium);
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}
 
.input {
  color: var(--dl-color-theme-neutral-dark);
  cursor: auto;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: var(--dl-radius-radius-inputradius);
  background-color: var(--dl-color-theme-neutral-light);
  transition: border-color var(--dl-transition-fast);
  font-size: 1rem;
}

.input:focus {
  outline: none;
  border-color: var(--dl-color-theme-primary1);
  box-shadow: 0 0 0 3px rgba(142, 68, 173, 0.1);
}

.input::placeholder {
  color: #a0aec0;
}
 
.textarea {
  color: var(--dl-color-theme-neutral-dark);
  cursor: auto;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: var(--dl-radius-radius-inputradius);
  background-color: var(--dl-color-theme-neutral-light);
  transition: border-color var(--dl-transition-fast);
  font-size: 1rem;
  min-height: 120px;
  resize: vertical;
}

.textarea:focus {
  outline: none;
  border-color: var(--dl-color-theme-primary1);
  box-shadow: 0 0 0 3px rgba(142, 68, 173, 0.1);
}

.textarea::placeholder {
  color: #a0aec0;
}
 
.list {
  width: 100%;
  margin: 1em 0px 1em 0px;
  display: block;
  padding: 0px 0px 0px 1.5rem;
  list-style-type: none;
  list-style-position: outside;
}
 
.list-item {
  display: list-item;
}
 
.teleport-show {
  display: flex !important;
  transform: none !important;
}
 
.thq-input {
  color: var(--dl-color-theme-neutral-dark);
  cursor: auto;
  outline: none;
  padding: 0.5rem 1rem;
  align-self: stretch;
  text-align: center;
  border-color: var(--dl-color-theme-neutral-dark);
  border-width: 1px;
  border-radius: var(--dl-radius-radius-inputradius);
  background-color: var(--dl-color-theme-neutral-light);
}
 
.thq-input:focus {
  outline: 1px solid var(--dl-color-theme-primary1);
}
 
.thq-button-filled {
  gap: var(--dl-space-space-halfunit);
  fill: var(--dl-color-theme-secondary1);
  color: var(--dl-color-theme-secondary1);
  cursor: pointer;
  display: flex;
  transition: all var(--dl-transition-fast);
  align-items: center;
  font-weight: 600;
  padding-top: var(--dl-space-space-halfunit);
  white-space: nowrap;
  border: none;
  padding-left: var(--dl-space-space-oneandhalfunits);
  border-radius: var(--dl-radius-radius-buttonradius);
  padding-right: var(--dl-space-space-oneandhalfunits);
  padding-bottom: var(--dl-space-space-halfunit);
  justify-content: center;
  background-color: var(--dl-color-theme-primary1);
  box-shadow: var(--dl-shadow-light);
  letter-spacing: 0.5px;
}
 
.thq-button-filled:hover {
  fill: var(--dl-color-theme-secondary1);
  color: var(--dl-color-theme-secondary1);
  background-color: var(--dl-color-theme-primary2);
  box-shadow: var(--dl-shadow-medium);
  transform: translateY(-2px);
}

.thq-button-filled:active {
  transform: translateY(0);
}
 
.thq-button-outline {
  gap: var(--dl-space-space-halfunit);
  fill: var(--dl-color-theme-primary1);
  color: var(--dl-color-theme-primary1);
  border: 2px solid;
  cursor: pointer;
  display: flex;
  transition: all var(--dl-transition-fast);
  align-items: center;
  font-weight: 600;
  padding-top: var(--dl-space-space-halfunit);
  white-space: nowrap;
  border-color: var(--dl-color-theme-primary1);
  padding-left: var(--dl-space-space-oneandhalfunits);
  border-radius: var(--dl-radius-radius-buttonradius);
  padding-right: var(--dl-space-space-oneandhalfunits);
  padding-bottom: var(--dl-space-space-halfunit);
  justify-content: center;
  background-color: transparent;
  letter-spacing: 0.5px;
}
 
.thq-button-outline:hover {
  fill: var(--dl-color-theme-secondary1);
  color: var(--dl-color-theme-secondary1);
  border-color: var(--dl-color-theme-primary1);
  background-color: var(--dl-color-theme-primary1);
  box-shadow: var(--dl-shadow-light);
  transform: translateY(-2px);
}

.thq-button-outline:active {
  transform: translateY(0);
}
 
.thq-button-flat {
  gap: var(--dl-space-space-halfunit);
  fill: var(--dl-color-theme-primary1);
  color: var(--dl-color-theme-primary1);
  cursor: pointer;
  display: flex;
  transition: 0.3s;
  align-items: center;
  font-weight: bold;
  padding-top: var(--dl-space-space-halfunit);
  white-space: nowrap;
  border-color: transparent;
  border-width: 1px;
  padding-left: var(--dl-space-space-oneandhalfunits);
  border-radius: var(--dl-radius-radius-buttonradius);
  padding-right: var(--dl-space-space-oneandhalfunits);
  padding-bottom: var(--dl-space-space-halfunit);
  justify-content: center;
}
 
.thq-button-flat:hover {
  fill: var(--dl-color-theme-secondary1);
  color: var(--dl-color-theme-secondary1);
  border-color: var(--dl-color-theme-primary2);
  background-color: var(--dl-color-theme-primary2);
}
 
.thq-heading-1 {
  font-size: 48px;
  font-family: STIX Two Text;
  font-weight: 700;
  line-height: 1.5;
}
 
.thq-heading-2 {
  font-size: 35px;
  font-family: STIX Two Text;
  font-weight: 600;
  line-height: 1.5;
}
 
.thq-heading-3 {
  font-size: 26px;
  font-family: STIX Two Text;
  font-weight: 600;
  line-height: 1.5;
}
 
.thq-body-large {
  font-size: 18px;
  font-family: Noto Sans;
  line-height: 1.5;
}
 
.thq-body-small {
  font-size: 16px;
  font-family: Noto Sans;
  line-height: 1.5;
}
 
.thq-team-image-round {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
}
 
.thq-section-padding {
  width: 100%;
  display: flex;
  padding: var(--dl-space-space-fiveunits);
  position: relative;
  align-items: center;
  flex-direction: column;
}
 
.thq-section-max-width {
  width: 100%;
  max-width: var(--dl-size-size-maxwidth);
}
 
.thq-img-ratio-1-1 {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 1/1;
  border-radius: var(--dl-radius-radius-imageradius);
}
 
.thq-img-ratio-16-9 {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 16/9;
  border-radius: var(--dl-radius-radius-imageradius);
}
 
.thq-img-ratio-4-3 {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  border-radius: var(--dl-radius-radius-imageradius);
}
 
.thq-img-ratio-4-6 {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/6;
  border-radius: var(--dl-radius-radius-imageradius);
}
 
.thq-img-round {
  width: 100%;
  border-radius: var(--dl-radius-radius-round);
}
 
.thq-flex-column {
  gap: var(--dl-space-space-twounits);
  display: flex;
  overflow: hidden;
  position: relative;
  align-items: center;
  flex-direction: column;
}
 
.thq-flex-row {
  gap: var(--dl-space-space-twounits);
  display: flex;
  overflow: hidden;
  position: relative;
  align-items: center;
}
 
.thq-grid-6 {
  display: grid;
  grid-gap: var(--dl-space-space-twounits);
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
}
 
.thq-grid-5 {
  display: grid;
  grid-gap: var(--dl-space-space-twounits);
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
}
 
.thq-card {
  gap: var(--dl-space-space-oneandhalfunits);
  display: flex;
  padding: var(--dl-space-space-twounits);
  align-items: stretch;
  border-radius: var(--dl-radius-radius-cardradius);
  flex-direction: column;
  background-color: #ffffff;
  box-shadow: var(--dl-shadow-light);
  transition: box-shadow var(--dl-transition-medium), transform var(--dl-transition-medium);
}

.thq-card:hover {
  box-shadow: var(--dl-shadow-medium);
  transform: translateY(-5px);
}
 
.thq-box-shadow {
  box-shadow: var(--dl-shadow-medium);
}
 
.thq-grid-3 {
  display: grid;
  grid-gap: var(--dl-space-space-twounits);
  grid-template-columns: 1fr 1fr 1fr;
}
 
.thq-grid-4 {
  display: grid;
  grid-gap: var(--dl-space-space-twounits);
  grid-template-columns: 1fr 1fr 1fr 1fr;
}
 
.thq-grid-2 {
  width: 100%;
  display: grid;
  grid-gap: var(--dl-space-space-twounits);
  grid-template-columns: 1fr 1fr;
}
 
.thq-checkbox {
  width: var(--dl-size-size-xsmall);
  height: var(--dl-size-size-xsmall);
}
 
.thq-select {
  cursor: pointer;
  appearance: none;
  padding-top: var(--dl-space-space-halfunit);
  padding-left: var(--dl-space-space-unit);
  border-radius: var(--dl-radius-radius-inputradius);
  padding-right: var(--dl-space-space-twounits);
  padding-bottom: var(--dl-space-space-halfunit);
  background-color: var(--dl-color-theme-neutral-light);
  background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg width%3D%2220%22 height%3D%2220%22 xmlns%3D%22http%3A//www.w3.org/2000/svg%22 viewBox%3D%220 0 20 20%22 fill%3D%22%23000%22%3E%3Cpath d%3D%22M4.293 7.293a1 1 0 011.414 0L10 11.586l4.293-4.293a1 1 0 111.414 1.414l-5 5a1 1 0 01-1.414 0l-5-5a1 1 0 010-1.414z%22/%3E%3C/svg%3E');
  background-repeat: no-repeat;
  background-position: right 8px center;
}
 
.thq-divider-horizontal {
  width: 100%;
  height: 1px;
  background-color: var(--dl-color-theme-neutral-dark);
}
 
.thq-icon-small {
  width: 24px;
  height: 24px;
}
 
.thq-button-icon {
  fill: var(--dl-color-theme-secondary1);
  padding: 3px;
  transition: 0.3s;
  border-radius: var(--dl-radius-radius-round);
}
 
.thq-button-icon:hover {
  fill: var(--dl-color-theme-secondary2);
}
 
.thq-icon-medium {
  width: var(--dl-size-size-small);
  height: var(--dl-size-size-small);
}
 
.thq-icon-x-small {
  width: var(--dl-size-size-xsmall);
  height: var(--dl-size-size-xsmall);
}
 
.thq-link {
  cursor: pointer;
  display: inline-block;
  position: relative;
  font-weight: 600;
  color: var(--dl-color-theme-primary1);
  transition: color var(--dl-transition-fast);
  text-decoration: none;
}

.thq-link::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--dl-color-theme-primary1);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dl-transition-medium);
}
 
.thq-link:hover {
  color: var(--dl-color-theme-primary2);
}

.thq-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
 
.thq-grid-auto-300 {
  display: grid;
  grid-gap: var(--dl-space-space-oneandhalfunits);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
 
.thq-animated-group-vertical-reverse {
  gap: var(--dl-space-space-unit);
  width: 100%;
  display: flex;
  animation: scroll-y 20s linear infinite;
  align-items: flex-start;
  flex-direction: column;
  justify-content: space-around;
  animation-direction: reverse;
}
 
.thq-animated-group-horizontal-reverse {
  gap: var(--dl-space-space-unit);
  display: flex;
  animation: scroll-x 20s linear infinite;
  min-width: 100%;
  align-items: center;
  flex-shrink: 0;
  justify-content: space-around;
  animation-direction: reverse;
}
 
.thq-animated-group-vertical {
  gap: var(--dl-space-space-unit);
  width: 100%;
  display: flex;
  animation: scroll-y 20s linear infinite;
  align-items: flex-start;
  flex-direction: column;
  justify-content: space-around;
}
 
.thq-animated-group-horizontal {
  gap: var(--dl-space-space-unit);
  display: flex;
  animation: scroll-x 20s linear infinite;
  min-width: 100%;
  align-items: center;
  flex-shrink: 0;
  justify-content: space-around;
}
 
.thq-animated-group-container-vertical {
  gap: var(--dl-space-space-unit);
  display: flex;
  overflow: hidden;
  flex-direction: column;
}
 
.thq-animated-group-container-horizontal {
  gap: var(--dl-space-space-unit);
  display: flex;
  overflow: hidden;
}
 
.thq-mask-image-vertical {
  mask-image: linear-gradient(to bottom, transparent, black 1%, black 99%, transparent);
}
 
.thq-mask-image-horizontal {
  mask-image: linear-gradient(to right, transparent, black 1%, black 99%, transparent);
}
 
.thq-img-scale {
  transition: 0.3s;
}
 
.thq-img-scale:hover {
  scale: 1.05;
}
 
.thq-animated-card-bg-1 {
  width: 100%;
  height: 100%;
  transition: transform 0.3s;
  border-radius: var(--dl-radius-radius-cardradius);
  background-color: var(--dl-color-theme-accent1);
}
 
.thq-animated-card-bg-2 {
  transition: transform 0.3s;
  border-radius: var(--dl-radius-radius-cardradius);
  background-color: var(--dl-color-theme-accent2);
}
 
.thq-button-animated {
  outline: none;
  z-index: 1;
  overflow: hidden;
  position: relative;
  border-width: 2px;
}
 
.thq-input::placeholder {
  text-align: center;
  vertical-align: middle;
}
 
.thq-animated-group-container-vertical:hover div {
  animation-play-state: paused;
}
 
.thq-animated-group-container-horizontal:hover div {
  animation-play-state: paused;
}
 
.thq-animated-card-bg-2:has([data-animated="true"]:hover) {
  transform: translate3d(0px, 0px, 0px) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(3deg) skew(0deg, 0deg);
}
 
.thq-animated-card-bg-1:has([data-animated="true"]:hover) {
  transform: translate3d(0px, 0px, 0px) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(-6deg) skew(0deg, 0deg);
}
 
.thq-button-animated:before {
  top: 0;
  left: -20%;
  color: var(--dl-color-theme-neutral-light);
  width: 200%;
  height: 101%;
  content: "";
  z-index: 1;
  position: absolute;
  transform: scaleX(0);
  transition: transform 0.5s;
  border-radius: var(--dl-radius-radius-buttonradius);
  background-color: var(--dl-color-theme-neutral-dark);
  transform-origin: 0 0;
  transition-timing-function: cubic-bezier(0.5, 1.6, 0.4, 0.7);
}
 
.thq-button-animated:hover::before {
  color: var(--dl-color-theme-neutral-light);
  z-index: -1;
  transform: scaleX(1);
}
 
.Content {
  font-size: 16px;
  font-family: Inter;
  font-weight: 400;
  line-height: 1.15;
  text-transform: none;
  text-decoration: none;
}
 
@media(max-width: 991px) {
  .thq-grid-4 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
 
@media(max-width: 767px) {
  .thq-section-padding {
    padding: var(--dl-space-space-threeunits);
  }
  .thq-flex-column {
    gap: var(--dl-space-space-oneandhalfunits);
  }
  .thq-flex-row {
    gap: var(--dl-space-space-oneandhalfunits);
  }
  .thq-grid-6 {
    grid-gap: var(--dl-space-space-oneandhalfunits);
    grid-template-columns: 1fr 1fr 1fr;
  }
  .thq-grid-5 {
    grid-gap: var(--dl-space-space-oneandhalfunits);
    grid-template-columns: 1fr 1fr 1fr;
  }
  .thq-card {
    padding: var(--dl-space-space-oneandhalfunits);
  }
  .thq-grid-3 {
    grid-gap: var(--dl-space-space-oneandhalfunits);
    grid-template-columns: 1fr 1fr;
  }
  .thq-grid-4 {
    grid-gap: var(--dl-space-space-oneandhalfunits);
    flex-direction: row;
    grid-template-columns: 1fr 1fr;
  }
  .thq-grid-2 {
    grid-gap: var(--dl-space-space-oneandhalfunits);
    grid-template-columns: 1fr;
  }
  .thq-img-scale {
    width: 100%;
  }
}
 
@media(max-width: 479px) {
  .thq-section-padding {
    padding: var(--dl-space-space-oneandhalfunits);
  }
  .thq-flex-column {
    gap: var(--dl-space-space-unit);
  }
  .thq-flex-row {
    gap: var(--dl-space-space-unit);
  }
  .thq-grid-6 {
    grid-gap: var(--dl-space-space-unit);
    grid-template-columns: 1fr 1fr;
  }
  .thq-grid-5 {
    grid-gap: var(--dl-space-space-unit);
    grid-template-columns: 1fr 1fr;
  }
  .thq-grid-3 {
    grid-gap: var(--dl-space-space-unit);
    align-items: center;
    grid-template-columns: 1fr;
  }
  .thq-grid-4 {
    grid-gap: var(--dl-space-space-unit);
    align-items: center;
    flex-direction: column;
    grid-template-columns: 1fr;
  }
  .thq-grid-2 {
    grid-gap: var(--dl-space-space-unit);
  }
  .thq-grid-auto-300 {
    grid-template-columns: 1fr;
  }
}
.audition-details {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.audition-details h1 {
    color: var(--dl-color-theme-primary1);
    margin-bottom: 1rem;
    font-size: 2.2rem;
}

.audition-details h2 {
    color: var(--dl-color-theme-primary2);
    margin: 1.5rem 0 0.5rem;
    font-size: 1.6rem;
}

.audition-details figure {
    text-align: center;
    margin: 30px 0;
}

.audition-details img.full-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.audition-details img.full-image:hover {
    transform: scale(1.02);
}

.audition-details p {
    line-height: 1.7;
    margin-bottom: 1rem;
}

.audition-details strong {
    color: var(--dl-color-theme-primary1);
    font-weight: 600;
}

.auditions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    padding: 20px;
}

.audition-box {
    display: block; /* Makes the entire box clickable */
    text-decoration: none; /* Remove underline from links */
    color: inherit; /* Keep text color consistent */
    border: none;
    padding: 0;
    width: 320px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.audition-box:hover, .audition-box:focus {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.audition-box:focus {
    outline: 3px solid var(--dl-color-theme-primary1);
    outline-offset: 3px;
}

.audition-box figure {
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 180px;
}

.audition-box img.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.audition-box:hover img.preview-image {
    transform: scale(1.08);
}

.audition-content {
    padding: 20px;
}

.audition-content h3 {
    font-size: 1.4rem;
    margin: 0 0 15px 0;
    color: var(--dl-color-theme-primary1);
    line-height: 1.3;
}

.audition-content p {
    margin: 8px 0;
    color: #4a4a4a;
    line-height: 1.5;
}

.audition-content p strong {
    color: var(--dl-color-theme-primary2);
    font-weight: 600;
}

/* Modern UI Enhancements for KC Theatre Info */

/* Navigation Bar Improvements */
.navbar8-container, .navbar8-container1 {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.navbar8-container:hover, .navbar8-container1:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar8-navbar-interactive {
    padding-top: 15px;
    padding-bottom: 15px;
}

.navbar8-image {
    transition: transform 0.3s ease;
}

.navbar8-image:hover {
    transform: scale(1.05);
}

/* Form Elements */
input, textarea, select {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    padding: 12px !important;
    background-color: #f9f9fb !important;
}

input:focus, textarea:focus, select:focus {
    outline: none !important;
    border-color: var(--dl-color-theme-primary1) !important;
    box-shadow: 0 0 0 3px rgba(142, 68, 173, 0.1) !important;
    background-color: #fff !important;
}

/* Form layout improvements */
.submit-audition-form {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    border-radius: 12px !important;
    overflow: hidden;
    padding: 30px !important;
}

.form-group {
    margin-bottom: 1.5rem !important;
}

.label-text {
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
    color: var(--dl-color-theme-primary1) !important;
}

/* Hero Section */
.hero17-content1 h1 {
    color: var(--dl-color-theme-primary1);
    margin-bottom: 1rem;
}

.hero17-content1 p {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.hero17-actions {
    margin-top: 2rem;
}

/* Buttons */
button, .button, .thq-button-filled, .thq-button-outline {
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    letter-spacing: 0.5px !important;
}

.thq-button-filled, .button {
    background-color: var(--dl-color-theme-primary1) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 10px rgba(142, 68, 173, 0.2) !important;
}

.thq-button-filled:hover, .button:hover, .thq-button-filled:focus, .button:focus {
    background-color: var(--dl-color-theme-primary2) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 15px rgba(142, 68, 173, 0.3) !important;
}

.thq-button-filled:focus, .button:focus {
    outline: 3px solid rgba(142, 68, 173, 0.5);
    outline-offset: 2px;
}

.thq-button-outline {
    border: 2px solid var(--dl-color-theme-primary1) !important;
    color: var(--dl-color-theme-primary1) !important;
}

.thq-button-outline:hover, .thq-button-outline:focus {
    background-color: var(--dl-color-theme-primary1) !important;
    color: white !important;
    transform: translateY(-3px) !important;
}

.thq-button-outline:focus {
    outline: 3px solid rgba(142, 68, 173, 0.5);
    outline-offset: 2px;
}

/* Improved card styles for audition listings */
.audition-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
    transition: transform 0.3s ease;
}

.audition-box:hover .audition-image {
    transform: scale(1.05);
}

.audition-title {
    color: var(--dl-color-theme-primary1);
    font-size: 1.4rem;
    margin: 12px 0;
    line-height: 1.3;
}

/* General focus styles for keyboard navigation */
a:focus-visible, button:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--dl-color-theme-primary1);
    outline-offset: 2px;
}

/* Remove focus outline for mouse users, keep it for keyboard users */
a:focus:not(:focus-visible), button:focus:not(:focus-visible) {
    outline: none;
}

/* Navigation link focus states */
.navbar8-link:focus-visible {
    outline: 3px solid rgba(142, 68, 173, 0.5);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image focus states */
img:focus {
    outline: 3px solid var(--dl-color-theme-primary1);
    outline-offset: 3px;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .auditions-list {
        padding: 15px;
    }
    
    .audition-box {
        width: 100%;
        max-width: 450px;
    }
    
    .submit-audition-form {
        padding: 20px !important;
    }
}
/* 
 * Unified Navbar CSS
 * This file contains all styles for the navbar component used across the site.
 * Use this file in conjunction with navbar-dropdown.html and load-navbar.js
 */

:root {
  /* Color system from the main theme */
  --dl-color-theme-primary1: #8e44ad;       /* Deep purple - primary brand color */
  --dl-color-theme-primary2: #9b59b6;       /* Lighter purple - hover/active color */
  --dl-color-theme-secondary1: #FFFFFF;     /* White for text on dark backgrounds */
  --dl-color-theme-secondary2: #f8f4fc;     /* Very light purple for backgrounds */
  --dl-color-theme-accent1: #e74c3c;        /* Red for accent/call to action */ 
  --dl-color-theme-accent2: #f39c12;        /* Gold/yellow for secondary accents */
  --dl-color-theme-neutral-dark: #2c3e50;   /* Dark blue-gray for text */
  --dl-color-theme-neutral-light: #f9f9fb;  /* Off-white for backgrounds */
  
  /* Size variables */
  --dl-size-size-maxwidth: 1400px;
  --dl-size-size-xsmall: 16px;
  --dl-size-size-small: 48px;
  
  /* Spacing variables */
  --dl-space-space-unit: 16px;
  --dl-space-space-halfunit: 8px;
  --dl-space-space-twounits: 32px;
  --dl-space-space-threeunits: 48px;
  --dl-space-space-oneandhalfunits: 24px;
}

/* Container holding the navbar */
.navbar-container {
  top: 0;
  width: 100%;
  display: flex;
  z-index: 1000;
  position: sticky;
  justify-content: center;
  background-color: var(--dl-color-theme-neutral-light);
}

/* Interactive navbar main element */
.navbar-interactive {
  width: 100%;
  display: flex;
  z-index: 100;
  max-width: var(--dl-size-size-maxwidth);
  align-items: center;
  padding-top: var(--dl-space-space-halfunit);
  padding-left: var(--dl-space-space-threeunits);
  padding-right: var(--dl-space-space-threeunits);
  padding-bottom: var(--dl-space-space-halfunit);
  justify-content: space-between;
}

/* Logo styling */
.navbar-logo-link {
  display: flex;
  text-decoration: none;
}

.navbar-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin: 5px 0;
}

/* Desktop menu */
.navbar-desktop-menu {
  flex: 1;
  display: flex;
  justify-content: space-between;
}

.navbar-links {
  gap: var(--dl-space-space-twounits);
  flex: 1;
  display: flex;
  align-items: center;
  margin-left: var(--dl-space-space-twounits);
  flex-direction: row;
  justify-content: flex-start;
}

.navbar-link {
  color: var(--dl-color-theme-neutral-dark);
  text-decoration: none;
}

.navbar-link[aria-current="page"] {
  font-weight: bold;
}

/* Dropdown styles */
.navbar-dropdown {
  position: relative;
  display: inline-block;
}

.navbar-dropdown-button {
  display: flex;
  align-items: center;
  gap: 5px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  font-family: Inter, sans-serif;
  color: var(--dl-color-theme-neutral-dark);
}

.navbar-dropdown-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.navbar-dropdown-button[aria-expanded="true"] .navbar-dropdown-icon {
  transform: rotate(180deg);
}

.navbar-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  z-index: 1000;
  background-color: var(--dl-color-theme-neutral-light);
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
  border-radius: 4px;
  padding: var(--dl-space-space-halfunit) 0;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.navbar-dropdown-content.show {
  display: block;
}

.navbar-dropdown-link {
  color: var(--dl-color-theme-neutral-dark);
  padding: var(--dl-space-space-halfunit) var(--dl-space-space-unit);
  text-decoration: none;
  display: block;
  transition: background-color 0.3s;
}

.navbar-dropdown-link:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.navbar-dropdown-link[aria-current="page"] {
  font-weight: bold;
}

/* Action buttons */
.navbar-buttons {
  gap: var(--dl-space-space-unit);
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: flex-end;
}

.navbar-action-button {
  color: var(--dl-color-theme-secondary1);
  cursor: pointer;
  display: flex;
  transition: all 0.3s ease;
  align-items: center;
  font-weight: 600;
  padding-top: var(--dl-space-space-halfunit);
  white-space: nowrap;
  padding-left: var(--dl-space-space-oneandhalfunits);
  border-radius: 8px;
  padding-right: var(--dl-space-space-oneandhalfunits);
  padding-bottom: var(--dl-space-space-halfunit);
  justify-content: center;
  background-color: var(--dl-color-theme-primary1);
  text-decoration: none;
}

.navbar-action-button:hover {
  background-color: var(--dl-color-theme-primary2);
  transform: translateY(-2px);
}

/* Mobile menu styles */
.burger-menu {
  display: none;
  cursor: pointer;
}

.burger-icon {
  width: var(--dl-size-size-xsmall);
  height: var(--dl-size-size-xsmall);
}

.mobile-menu {
  top: 0px;
  right: 0px; /* Changed from left to right */
  width: 80%; /* Reduced width for better slide-in effect */
  max-width: 300px; /* Maximum width for larger screens */
  height: 100vh;
  display: none;
  padding: var(--dl-space-space-twounits);
  z-index: 1001;
  position: fixed;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--dl-color-theme-neutral-light);
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1); /* Add shadow on left side */
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

.mobile-menu.active {
  display: flex;
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%); /* Changed to slide from right */
  }
  to {
    transform: translateX(0);
  }
}

.mobile-menu-nav {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

.mobile-menu-top {
  width: 100%;
  display: flex;
  align-items: center;
  margin-bottom: var(--dl-space-space-threeunits);
  justify-content: space-between;
}

.mobile-menu-logo {
  height: 50px;
  width: 50px;
  object-fit: contain;
}

.mobile-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-menu-close-icon {
  width: var(--dl-size-size-xsmall);
  height: var(--dl-size-size-xsmall);
}

.mobile-menu-links {
  gap: var(--dl-space-space-unit);
  width: 100%;
  display: flex;
  align-self: flex-start;
  flex-direction: column;
}

.mobile-menu-link {
  color: var(--dl-color-theme-neutral-dark);
  padding: var(--dl-space-space-halfunit) 0;
  text-decoration: none;
}

.mobile-menu-link[aria-current="page"] {
  font-weight: bold;
}

/* Mobile dropdown styles */
.mobile-menu-dropdown {
  width: 100%;
}

.mobile-menu-dropdown-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--dl-space-space-halfunit) 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: Inter, sans-serif;
  color: var(--dl-color-theme-neutral-dark);
  text-align: left;
}

.mobile-menu-dropdown-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.mobile-menu-dropdown-button.active .mobile-menu-dropdown-icon {
  transform: rotate(180deg);
}

.mobile-menu-dropdown-content {
  display: none;
  padding-left: var(--dl-space-space-unit);
}

.mobile-menu-dropdown-content.show {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-menu-dropdown-link {
  display: block;
  padding: var(--dl-space-space-halfunit) 0;
  color: var(--dl-color-theme-neutral-dark);
  text-decoration: none;
}

.mobile-menu-dropdown-link[aria-current="page"] {
  font-weight: bold;
}

.mobile-menu-buttons {
  gap: var(--dl-space-space-unit);
  display: flex;
  margin-top: var(--dl-space-space-twounits);
  flex-direction: column;
}

.mobile-menu-button {
  padding: var(--dl-space-space-halfunit) var(--dl-space-space-unit);
  border-radius: 4px;
  text-decoration: none;
  text-align: center;
}

.mobile-menu-button.primary {
  background-color: var(--dl-color-theme-primary1);
  color: white;
}

/* Responsive styles */
@media(max-width: 767px) {
  .navbar-interactive {
    padding-left: var(--dl-space-space-twounits);
    padding-right: var(--dl-space-space-twounits);
  }
}

@media(max-width: 479px) {
  .navbar-interactive {
    padding: var(--dl-space-space-unit);
  }
  
  .navbar-desktop-menu {
    display: none;
  }
  
  .burger-menu {
    display: flex;
  }
  
  .mobile-menu {
    padding: var(--dl-space-space-unit);
  }
}
/* --- Reset Styles (from original HTML) --- */
html { line-height: 1.15; } body { margin: 0; } * { box-sizing: border-box; border-width: 0; border-style: solid; -webkit-font-smoothing: antialiased; } p,li,ul,pre,div,h1,h2,h3,h4,h5,h6,figure,blockquote,figcaption { margin: 0; padding: 0; } button { background-color: transparent; } button,input,optgroup,select,textarea { font-family: inherit; font-size: 100%; line-height: 1.15; margin: 0; } button,select { text-transform: none; } button,[type="button"],[type="reset"],[type="submit"] { -webkit-appearance: button; color: inherit; } button::-moz-focus-inner,[type="button"]::-moz-focus-inner,[type="reset"]::-moz-focus-inner,[type="submit"]::-moz-focus-inner { border-style: none; padding: 0; } button:-moz-focus,[type="button"]:-moz-focus,[type="reset"]:-moz-focus,[type="submit"]:-moz-focus { outline: 1px dotted ButtonText; } a { color: inherit; text-decoration: inherit; } input { padding: 2px 4px; } img { display: block; } details { display: block; margin: 0; padding: 0; } summary::-webkit-details-marker { display: none; } [data-thq="accordion"] [data-thq="accordion-content"] { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-in-out; padding: 0; } [data-thq="accordion"] details[data-thq="accordion-trigger"][open] + [data-thq="accordion-content"] { max-height: 300vh; } details[data-thq="accordion-trigger"][open] summary [data-thq="accordion-icon"] { transform: rotate(180deg); } html { scroll-behavior: smooth }

/* --- Default Styles (from original HTML) --- */
html {
  font-family: Inter, Arial, sans-serif; /* Added Arial fallback */
  font-size: 16px;
}
body {
  font-weight: 400;
  font-style:normal;
  text-decoration: none;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.15;
  color: var(--dl-color-theme-neutral-dark, #2c3e50); /* Added fallback */
  background: var(--dl-color-theme-neutral-light, #f9f9fb); /* Added fallback */
  fill: var(--dl-color-theme-neutral-dark, #2c3e50);
}
.navbar8-image { width: 60px !important; height: 60px !important; object-fit: contain !important; margin: 5px 0 !important; display: block !important; }
.hero17-header78 { margin-top: -30px !important; padding-top: 0 !important; }
.contact-form3-wrapper { margin-top: -30px !important; padding-top: 0 !important; }
a { color: blue; text-decoration: underline; }

/* --- Variables and Styles (from PHP file) --- */
:root {
  --dl-color-theme-primary1: #8e44ad;
  --dl-color-theme-primary2: #9b59b6;
  --dl-color-theme-accent1: #e74c3c;
  --dl-color-theme-accent2: #f39c12;
  --dl-color-paid: #e74c3c;
  --dl-color-free: #27ae60;
  --dl-color-class: #3498db; /* For calendar/modal */
  --dl-color-workshop: #9b59b6; /* For calendar/modal */
  --dl-color-seminar: #f39c12; /* For calendar/modal */
  --dl-color-performance: #1abc9c; /* For calendar/modal */
  --dl-color-other: #95a5a6; /* For calendar/modal */
  --dl-color-inperson: #2980b9; /* Added */
  --dl-color-online: #16a085; /* Added */
  --dl-color-hybrid: #8e44ad; /* Added */

  /* Added fallbacks for theme colors used in body */
  --dl-color-theme-neutral-dark: #2c3e50;
  --dl-color-theme-neutral-light: #f9f9fb;
}

/* Navbar positioning fixes */
.navbar-container { position: sticky; top: 0; z-index: 1000; width: 100%; background: var(--dl-color-theme-neutral-light, #f9f9fb); /* Ensure bg */ }
.burger-menu { position: relative; z-index: 1001; }
@media(max-width: 479px) {
  .navbar-interactive { display: flex; justify-content: space-between; align-items: center; }
  .burger-menu { display: flex; position: relative; right: 0; top: 0; }
}

/* --- Filter Styles --- */
.filter-section {
    position: relative; /* Needed for mobile toggle positioning */
    margin-bottom: 20px;
}
.filter-toggle-btn {
    display: none; /* Hidden by default, shown on mobile */
    width: 100%;
    padding: 12px 15px;
    background-color: var(--dl-color-theme-primary1);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: space-between;
    position: relative; /* For ripple */
    overflow: hidden; /* For ripple */
}
.filter-toggle-btn:after { content: "▼"; font-size: 12px; transition: transform 0.3s ease; }
.filter-toggle-btn[aria-expanded="true"]:after { transform: rotate(180deg); }
.filter-icon { margin-right: 8px; }
.active-filter-count { background-color: white; color: var(--dl-color-theme-primary1); font-size: 12px; font-weight: bold; padding: 2px 6px; border-radius: 10px; margin-left: 5px; display: none; }
.active-filter-count.has-filters { display: inline-block; }

.filter-container {
    background-color: #ffffff;
    padding: 20px;
    margin-bottom: 30px; /* Space below filters */
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease, padding 0.3s ease;
    overflow: hidden;
}
.filter-heading { font-size: 1.5rem; margin-bottom: 15px; color: #333; text-align: center; }
.filter-form { display: flex; flex-wrap: wrap; gap: 15px; align-items: flex-end; /* Align items to bottom */ justify-content: center; }
.filter-group { display: flex; flex-direction: column; min-width: 180px; flex-grow: 0; flex-shrink: 0; }
.filter-group label { font-size: 14px; margin-bottom: 5px; font-weight: 600; color: #555; }
.filter-group select, .filter-group input[type="text"] { padding: 10px 15px; border: 1px solid #ddd; border-radius: 8px; background-color: white; font-size: 14px; transition: all 0.3s ease; height: 42px; /* Consistent height */ box-sizing: border-box; }
.filter-group select:focus, .filter-group input[type="text"]:focus { border-color: var(--dl-color-theme-primary1); box-shadow: 0 0 0 3px rgba(142, 68, 173, 0.2); outline: none; }
.search-group { flex-grow: 1; min-width: 250px; max-width: 400px; }
.filter-group input[type="text"] { width: 100%; } /* Make search input take available space */

.filter-button, .reset-button {
    background-color: var(--dl-color-theme-primary1);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none; /* For reset link */
    display: inline-block; /* For reset link */
    height: 42px; /* Match input height */
    box-sizing: border-box;
    /* Removed margin-top: 23px; Handled by align-items: flex-end */
}
.reset-button { background-color: #6c757d; }
.filter-button:hover { background-color: var(--dl-color-theme-primary2); transform: translateY(-2px); }
.reset-button:hover { background-color: #5a6268; transform: translateY(-2px); }

/* --- View Toggle Styles --- */
.view-toggle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    gap: 10px;
    /* Sticky on mobile - added later in media query */
}
.view-toggle-btn {
    background-color: #f5f5f5;
    border: 2px solid #ddd;
    border-radius: 20px;
    padding: 8px 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative; /* For ripple */
    overflow: hidden; /* For ripple */
}
.view-toggle-btn.active { background-color: var(--dl-color-theme-primary1); color: white; border-color: var(--dl-color-theme-primary1); }
.view-toggle-btn:hover:not(.active) { background-color: #e9e9e9; }
.view-icon { font-size: 16px; }

/* Button ripple effect (applied to filter toggle and view toggle) */
.filter-toggle-btn::after, .view-toggle-btn::after { content: ''; position: absolute; top: 50%; left: 50%; width: 5px; height: 5px; background: rgba(255, 255, 255, 0.5); opacity: 0; border-radius: 100%; transform: scale(1, 1) translate(-50%, -50%); transform-origin: 50% 50%; }
.filter-toggle-btn:active::after, .view-toggle-btn:active::after { opacity: 1; transform: scale(50, 50) translate(-50%, -50%); transition: transform 0.5s, opacity 0.3s; }


/* --- General Event Area Styles --- */
.events-list-page-container { /* Renamed from events-list-container for clarity */
  max-width: 1200px; /* Or your preferred max width */
  margin: 20px auto;
  padding: 0 15px;
}
.events-list-page-container h1 { margin-bottom: 15px; text-align: center; }
.events-list-page-container .intro-text { /* Added class for intro text */
  margin-bottom: 30px;
  text-align: center;
  line-height: 1.6;
  color: #555;
}
.results-count { text-align: center; margin-bottom: 20px; font-size: 16px; color: #555; }
.no-results { width: 100%; padding: 40px 20px; text-align: center; background-color: #f8f9fa; border-radius: 10px; margin: 20px 0; }
.no-results p { font-size: 18px; color: #6c757d; }
.adsense-section { margin: 25px 0; text-align: center; min-height: 100px; /* Prevent layout shift */ }

/* --- Event List View Styles --- */
.events-list { /* This is the container for list view items */
    display: flex; /* Changed in JS based on view */
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    padding: 10px 0; /* Reduced padding */
}
.event-box {
    /* display: block; Now handled by .events-list flex */
    width: 300px; /* Fixed width card */
    background-color: #ffffff;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
    display: flex; /* Use flex for column layout */
    flex-direction: column;
}
.event-box:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12); }
.event-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; } /* Make link fill the box */
.event-image-container { width: 100%; height: 180px; overflow: hidden; position: relative; flex-shrink: 0; }
.event-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.event-box:hover .event-image { transform: scale(1.08); }
.event-content { padding: 15px; text-align: center; flex-grow: 1; display: flex; flex-direction: column; }
.event-title { font-size: 1.2rem; margin: 0 0 8px 0; color: #333; line-height: 1.3; }
.event-content p { margin: 4px 0; color: #4a4a4a; line-height: 1.4; font-size: 0.9rem; }
.organization-name { font-weight: 500; color: #555; }
.event-location { color: #2c3e50; font-weight: 500; }
.event-dates { color: var(--dl-color-theme-primary2); font-weight: 500; font-size: 0.95rem; }
.event-description { margin-top: 10px; font-size: 0.85rem; color: #666; flex-grow: 1; /* Pushes tags/button down */ }
.event-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; justify-content: center; }
.tag { font-size: 11px; padding: 3px 10px; border-radius: 15px; font-weight: 600; color: white; text-transform: capitalize; }
.tag-payment.paid { background-color: var(--dl-color-paid); }
.tag-payment.free { background-color: var(--dl-color-free); }
.tag-format.inperson { background-color: var(--dl-color-inperson); }
.tag-format.online { background-color: var(--dl-color-online); }
.tag-format.hybrid { background-color: var(--dl-color-hybrid); }
/* Specific type tags (add more as needed, ensure lowercase class names match PHP output) */
.tag-type.workshops-classes { background-color: #3498db; }
.tag-type.networking { background-color: #e67e22; }
.tag-type.audition-prep { background-color: #9b59b6; }
.tag-type.panels-qa { background-color: #2ecc71; }
.tag-type.community-events { background-color: #f39c12; }
.tag-type.technical-theatre { background-color: #1abc9c; }
.tag-type.youth-programs { background-color: #d35400; }
.tag-type.professional-development { background-color: #c0392b; }
.tag-type.other, .tag-type.unknown /* Fallback */ { background-color: #7f8c8d;}
.tag-more { background-color: #7f8c8d; }

.view-details {
    display: inline-block;
    margin-top: auto; /* Pushes button to bottom */
    padding: 8px 16px;
    background-color: var(--dl-color-theme-primary1);
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: center; /* Center button horizontally */
}
.event-box:hover .view-details { background-color: var(--dl-color-theme-primary2); transform: translateY(-5px); box-shadow: 0 4px 10px rgba(142, 68, 173, 0.2); }

/* --- Calendar View Styles --- */
.calendar-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 0 auto 30px auto; /* Added bottom margin */
    max-width: 1100px; /* Slightly wider */
    /* display: block/none controlled by JS */
}
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.calendar-nav-btn { background-color: var(--dl-color-theme-primary1); color: white; border: none; border-radius: 20px; padding: 8px 15px; cursor: pointer; font-weight: 600; transition: all 0.3s ease; }
.calendar-nav-btn:hover { background-color: var(--dl-color-theme-primary2); transform: translateY(-2px); }
.current-month-label { font-size: 1.6rem; color: #333; margin: 0; font-weight: 600; }
.weekdays-header { display: grid; grid-template-columns: repeat(7, 1fr); background-color: #f8f9fa; border-bottom: 2px solid #eee; margin-bottom: 5px; width: 100%; }
.weekday { text-align: center; padding: 10px 5px; font-weight: 600; color: #666; font-size: 0.85rem; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; width: 100%; }
.calendar-day {
    min-height: 120px; /* Use min-height */
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    padding: 5px;
    position: relative;
    background-color: #fff;
    transition: background-color 0.2s ease;
    overflow: hidden; /* Prevents content spill */
    display: flex; /* Use flexbox for vertical layout */
    flex-direction: column;
}
.calendar-day:hover:not(.empty) { background-color: #fdfdff; }
.calendar-day.empty { background-color: #f7f7f7; border-style: dashed; }
.calendar-day.today { background-color: #f8f4ff; border: 1px solid var(--dl-color-theme-primary2); box-shadow: inset 0 0 0 2px var(--dl-color-theme-primary1); }
.calendar-day.other-month .day-number { color: #aaa; }
.day-number { font-weight: 600; color: #555; margin-bottom: 5px; text-align: right; padding: 2px 5px; font-size: 0.8rem; }
.today .day-number { background-color: var(--dl-color-theme-primary1); color: white; border-radius: 50%; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; float: right; /* Position top right */ }
.day-events {
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow-y: auto; /* Allow scrolling within day */
    flex-grow: 1; /* Take remaining space */
    max-height: 85px; /* Limit height before scroll */
    padding-right: 3px; /* Space for scrollbar */
}
/* Simple scrollbar */
.day-events::-webkit-scrollbar { width: 4px; }
.day-events::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }

.calendar-event {
    background-color: var(--dl-color-theme-primary2);
    color: white !important; /* Override potential link color */
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 11px;
    text-decoration: none !important; /* Override potential link style */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.2s ease;
    display: block;
    line-height: 1.3;
    cursor: pointer; /* Indicate clickability */
}
.calendar-event:hover { background-color: var(--dl-color-theme-primary1); transform: scale(1.03); z-index: 10; position: relative; }
/* Add border indicators like in original PHP (adjust colors if needed) */
.calendar-event.free { border-left: 3px solid var(--dl-color-free); padding-left: 4px; }
.calendar-event.paid { border-left: 3px solid var(--dl-color-paid); padding-left: 4px; }
/* Add more type-specific styles if desired */

.show-more-events {
    width: calc(100% - 4px); /* Fit inside padding */
    background-color: #f0f0f0;
    border: none;
    padding: 3px;
    border-radius: 3px;
    font-size: 10px;
    cursor: pointer;
    color: var(--dl-color-theme-primary1);
    margin-top: auto; /* Push to bottom */
    transition: all 0.2s ease;
    font-weight: bold;
    text-align: center;
    flex-shrink: 0; /* Don't shrink */
}
.show-more-events:hover { background-color: #e0e0e0; }

/* --- Modal Styles (Ensure these are present) --- */
.events-modal-backdrop { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); z-index: 10000; display: flex; justify-content: center; align-items: center; padding: 20px; animation: modalFadeIn 0.2s ease-out; }
@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }
.events-modal-content { background-color: white; border-radius: 10px; width: 100%; max-width: 500px; max-height: 80vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3); animation: modalSlideIn 0.3s ease-out; border: 2px solid var(--dl-color-theme-primary1); }
@keyframes modalSlideIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.events-modal-header { padding: 15px 20px; background-color: var(--dl-color-theme-primary1); color: white; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.2); }
.events-modal-header h3 { margin: 0; font-size: 1.2rem; text-shadow: 0 1px 1px rgba(0,0,0,0.2); }
.events-modal-close { background: none; border: none; color: white; font-size: 24px; cursor: pointer; padding: 5px 10px; line-height: 1; border-radius: 50%; transition: all 0.2s ease; }
.events-modal-close:hover { background-color: rgba(255,255,255,0.2); transform: scale(1.1); }
.events-modal-close:focus { outline: 2px solid white; outline-offset: 2px; }
.events-modal-list { padding: 15px; overflow-y: auto; max-height: calc(80vh - 70px); /* Adjusted height */ }
.events-modal-item { display: block; padding: 12px; border-radius: 8px; background-color: #f9f9f9; margin-bottom: 12px; text-decoration: none; color: inherit; transition: all 0.2s ease; border: 1px solid #eaeaea; }
.events-modal-item:hover, .events-modal-item:focus { background-color: #f0f0f0; transform: translateY(-2px); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1); border-color: #d5d5d5; }
.events-modal-item:focus { outline: 2px solid var(--dl-color-theme-primary1); outline-offset: 2px; }
.modal-event-title { font-weight: 600; font-size: 1rem; margin-bottom: 5px; color: #333; }
.modal-event-theater { font-size: 0.9rem; color: #666; margin-bottom: 8px; }
.modal-event-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.modal-tag { font-size: 10px; padding: 2px 8px; border-radius: 12px; color: white !important; /* Ensure text is white */ font-weight: 500; box-shadow: 0 1px 2px rgba(0,0,0,0.1); text-transform: capitalize; }
.modal-tag.paid { background-color: var(--dl-color-paid); }
.modal-tag.free { background-color: var(--dl-color-free); }
/* Add type colors for modal tags */
.modal-tag.class { background-color: var(--dl-color-class); }
.modal-tag.workshop { background-color: var(--dl-color-workshop); }
.modal-tag.seminar { background-color: var(--dl-color-seminar); }
.modal-tag.performance { background-color: #1abc9c; } /* Changed to match tag-type performance */
.modal-tag.other { background-color: var(--dl-color-other); }
/* Add more types based on your data */
.modal-tag.networking { background-color: #e67e22; }
.modal-tag.audition-prep { background-color: #9b59b6; }
.modal-tag.panels-qa { background-color: #2ecc71; }
.modal-tag.community-events { background-color: #f39c12; }
.modal-tag.technical-theatre { background-color: #1abc9c; }
.modal-tag.youth-programs { background-color: #d35400; }
.modal-tag.professional-development { background-color: #c0392b; }

/* --- Accessibility --- */
.sr-only, .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }
/* Skip link */
.skip-link { background: var(--dl-color-theme-primary1); color: white; font-weight: 700; left: 50%; padding: 10px 15px; position: absolute; transform: translateY(-120%) translateX(-50%); transition: transform 0.3s ease-in-out; z-index: 9999; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; }
.skip-link:focus { transform: translateY(0%) translateX(-50%); }
/* Focus styles */
a:focus, button:focus, select:focus, input:focus { outline: 3px solid rgba(142, 68, 173, 0.5); outline-offset: 2px; }
.event-box:focus-within { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); outline: 3px solid rgba(142, 68, 173, 0.5); outline-offset: 2px; } /* Focus container */


/* --- Responsive Styles --- */
@media (max-width: 991px) { /* Adjust breakpoint as needed */
    .filter-form { flex-direction: column; align-items: stretch; }
    .filter-group { width: 100%; min-width: auto; }
    .filter-button, .reset-button { width: 100%; margin-top: 10px; }
    .search-group { max-width: none; } /* Allow search to take full width */
}

@media (max-width: 767px) {
    /* Mobile Filter Toggle */
    .filter-toggle-btn { display: flex; }
    .filter-container {
        /* Collapsible styles (JS adds/removes 'expanded' class) */
        max-height: 0;
        opacity: 0;
        margin-top: 0 !important; /* Override potential inline style */
        margin-bottom: 0 !important; /* Override potential inline style */
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        border: none; /* Hide border when collapsed */
        box-shadow: none; /* Hide shadow when collapsed */
        pointer-events: none;
    }
    .filter-container.expanded {
        max-height: 1000px; /* Arbitrary large height */
        opacity: 1;
        margin-top: 15px !important;
        padding: 20px !important;
        border: 1px solid #ddd; /* Show border when expanded */
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        pointer-events: auto;
    }
    .filter-form { margin: 0; position: relative; padding-bottom: 55px; /* Space for buttons */ }
    .filter-group { margin-bottom: 15px; }
    .filter-group select, .filter-group input[type="text"] { height: 45px; }
    /* Compact button row */
    .filter-button, .reset-button { position: absolute; bottom: 0; margin: 0; height: 40px; display: flex; align-items: center; justify-content: center; }
    .filter-button { left: 0; width: calc(50% - 5px); }
    .reset-button { right: 0; width: calc(50% - 5px); }
    /* Active filter indicators on mobile */
    .filter-group label:after { content: ''; display: none; width: 8px; height: 8px; background-color: var(--dl-color-theme-primary1); border-radius: 50%; margin-left: 5px; }
    .filter-group.has-value label:after { display: inline-block; } /* Show dot */

    /* Event List */
    .events-list { gap: 15px; }
    .event-box { width: calc(100% - 10px); max-width: 380px; /* Slightly larger max on mobile */ margin-left: auto; margin-right: auto; }

    /* View Toggle */
    .view-toggle-container {
        flex-direction: column; gap: 8px;
        position: sticky; /* Make toggles sticky below navbar */
        top: 60px; /* Adjust based on your navbar height */
        z-index: 990; /* Below navbar */
        background-color: rgba(249, 249, 251, 0.95); /* Semi-transparent bg */
        padding: 10px 0;
        margin-bottom: 15px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        backdrop-filter: blur(5px); /* Optional: blur background */
        -webkit-backdrop-filter: blur(5px);
     }
    .view-toggle-btn { width: 90%; margin: 0 auto; }

    /* Calendar */
    .calendar-container { padding: 10px; }
    .calendar-header { flex-direction: column; gap: 10px; margin-bottom: 15px; }
    .current-month-label { font-size: 1.4rem; }
    .calendar-day { min-height: 90px; padding: 3px; }
    .weekday { padding: 8px 2px; font-size: 0.75rem; }
    .day-number { font-size: 0.7rem; }
    .today .day-number { width: 20px; height: 20px; }
    .day-events { max-height: 55px; gap: 2px; }
    .calendar-event { padding: 2px 4px; font-size: 9px; }
    .show-more-events { font-size: 9px; padding: 2px; }

    /* Modal */
    .events-modal-content { max-width: 95%; max-height: 85vh; }
    .events-modal-header h3 { font-size: 1rem; }
}

@media (max-width: 480px) {
    .calendar-day { min-height: 70px; }
    .day-events { max-height: 40px; }
    .weekday { font-size: 0.7rem; padding: 6px 1px; }
    .calendar-event { font-size: 8px; padding: 1px 3px; border-left-width: 2px; }
    .tag { font-size: 10px; padding: 2px 8px; }
    .event-title { font-size: 1.1rem; }
    .event-content p { font-size: 0.85rem; }
    .view-details { font-size: 12px; padding: 7px 14px; }
}
