/*
Theme Name: BCA + UCT Theme
Description: A child theme of Blankslate
Template: blankslate
Version: 1.0.0
*/

/* Add your custom styles below this line */

#readymade-sections {
  display: none;
}

/* Bell Animation Styles */
#animated-bell {
  transform-origin: center center;
}

#bell-body {
  transform-origin: 63.5px 12px; /* Top center of bell for hanging sway rotation */
}

/* Bell Sway Animation - Subtle rotation left to right */
@keyframes bell-sway {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-5deg);
  }
  75% {
    transform: rotate(5deg);
  }
}

/* Sound Lines Pulse Animation - Scale and opacity pulse */
@keyframes sound-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.6;
  }
}

/* Apply animations when 'ringing' class is added */
#animated-bell.ringing #bell-body {
  animation: bell-sway 1s ease-in-out 5;
}

#animated-bell.ringing .sound-line {
  animation: sound-pulse 1s ease-in-out 5;
}

/* Stagger the sound line animations for natural effect */
#animated-bell.ringing .sound-line-left-inner {
  animation-delay: 0s;
  transform-origin: 28px 34px;
}

#animated-bell.ringing .sound-line-left-outer {
  animation-delay: 0.1s;
  transform-origin: 18px 28px;
}

#animated-bell.ringing .sound-line-right-inner {
  animation-delay: 0s;
  transform-origin: 98px 34px;
}

#animated-bell.ringing .sound-line-right-outer {
  animation-delay: 0.1s;
  transform-origin: 108px 28px;
}

/* Home hero video carousel dots */
.home-video-carousel__dot {
  cursor: pointer;
  border: 0;
  background-color: rgba(255, 255, 255, 0.4);
  -webkit-transition: background-color 0.2s ease;
  transition: background-color 0.2s ease;
}

.home-video-carousel__dot:hover,
.home-video-carousel__dot:focus-visible {
  background-color: rgba(255, 255, 255, 0.8);
}

.home-video-carousel__dot.is-active {
  background-color: #ffffff;
}

/* Homepage course carousel dots */
.home-course-carousel__dot {
  cursor: pointer;
  border: 0;
  background-color: rgba(35, 35, 35, 0.25);
  -webkit-transition: background-color 0.2s ease;
  transition: background-color 0.2s ease;
}

.home-course-carousel__dot:hover,
.home-course-carousel__dot:focus-visible {
  background-color: rgba(35, 35, 35, 0.55);
}

.home-course-carousel__dot.is-active {
  background-color: #232323;
}

/* Course highlight bottom ticker */
.course-highlight-ribbon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  overflow: hidden;
  pointer-events: none;
  padding: 0.4rem 0;
}

.course-highlight-ribbon__track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: course-highlight-ticker 25s linear infinite;
}

.course-highlight-ribbon__item {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
}

.course-highlight-ribbon__item::after {
  content: "";
  display: block;
  width: 0.35em;
  height: 0.35em;
  margin-left: 1.5rem;
  margin-right: 1.5rem;
  border-radius: 50%;
  background-color: currentColor;
  opacity: 0.7;
  flex-shrink: 0;
}

@keyframes course-highlight-ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (min-width: 768px) {
  .course-highlight-ribbon {
    padding: 0.5rem 0;
  }

  .course-highlight-ribbon__item {
    font-size: 0.8rem;
  }

  .course-highlight-ribbon__item::after {
    margin-left: 2rem;
    margin-right: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .course-highlight-ribbon__track {
    animation: none;
  }
}