/* Live Updates Carousel - Clean Restart */

#live-updates {
  max-width: 100%;
  width: 100vw;
  margin: 0;
  padding: 40px 0;
  background: transparent;
}

#live-updates h2 {
  text-align: center;
  margin-bottom: 20px;
}

.updates-intro {
  font-size: 1.4em;
  color: #5a4a42;
  margin-bottom: 60px;
  text-align: center;
}

/* Carousel Container */
.updates-carousel-container {
  position: relative;
  width: 100vw;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0;
}

/* Carousel Track */
.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Carousel Items */
.carousel-item {
  position: absolute;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  will-change: transform, opacity;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.4s ease;
}

/* Focus Image - Center, 65vw */
.carousel-item.focused {
  width: 65vw;
  height: 65vh;
  transform: translateX(0) scale(1);
  z-index: 10;
  opacity: 1;
}

/* Previous Image - Left side, partially visible */
.carousel-item.prev {
  width: 45vw;
  height: 55vh;
  transform: translateX(-40vw) scale(0.9);
  z-index: 5;
  opacity: 0.6;
  cursor: pointer;
}

.carousel-item.prev:hover {
  opacity: 0.75;
}

/* Second previous image - further left, more faded */
.carousel-item.prev-2 {
  width: 40vw;
  height: 50vh;
  transform: translateX(-75vw) scale(0.8);
  z-index: 3;
  opacity: 0.3;
  pointer-events: none;
}

/* Next Image - Right side, partially visible */
.carousel-item.next {
  width: 45vw;
  height: 55vh;
  transform: translateX(40vw) scale(0.9);
  z-index: 5;
  opacity: 0.6;
  cursor: pointer;
}

.carousel-item.next:hover {
  opacity: 0.75;
}

/* Second next image - further right, more faded */
.carousel-item.next-2 {
  width: 40vw;
  height: 50vh;
  transform: translateX(75vw) scale(0.8);
  z-index: 3;
  opacity: 0.3;
  pointer-events: none;
}

/* Hidden items - slide off to sides and fade */
.carousel-item.hidden {
  pointer-events: none;
}

/* Hidden items on the left side */
.carousel-item.hidden-left {
  transform: translateX(-70vw) scale(0.85);
  pointer-events: none;
}

/* Hidden items on the right side */
.carousel-item.hidden-right {
  transform: translateX(70vw) scale(0.85);
  pointer-events: none;
}

/* Opacity for hidden items */
.carousel-item.hidden,
.carousel-item.hidden-left,
.carousel-item.hidden-right {
  opacity: 0;
}

/* Text Overlay on Focus Image */
.carousel-caption {
  position: relative;
  margin-top: 40px;
  margin-bottom: 60px;
  width: 60vw;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(240,230,229,0.95);
  padding: 20px 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.carousel-caption p,
.carousel-caption .caption-time {
  transition: opacity 0.3s ease;
}

.carousel-caption p {
  font-size: 1.8em;
  color: #5a4a42;
  margin: 0 0 8px 0;
  font-weight: 500;
}

.caption-time {
  font-size: 1.2em;
  color: #9a8a82;
  font-style: italic;
}

/* Navigation Arrows */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  background: rgba(240,230,229,0.9);
  border: 2px solid #5a4a42;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-nav:hover {
  background: rgb(240,230,229);
  transform: translateY(-50%) scale(1.1);
}

.carousel-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.carousel-nav span {
  font-size: 2.5em;
  color: #5a4a42;
  line-height: 1;
}

.carousel-nav.prev {
  left: 40px;
}

.carousel-nav.next {
  right: 40px;
}

/* Responsive */
@media (max-width: 900px) {
  .updates-carousel-container {
    height: 60vh;
    min-height: 400px;
  }

  .carousel-item.focused {
    width: 70vw;
    height: 60vh;
  }

  .carousel-item.prev,
  .carousel-item.next {
    width: 35vw;
    height: 50vh;
  }
  
  .carousel-item.prev {
    transform: translateX(-35vw) scale(0.9);
  }
  
  .carousel-item.next {
    transform: translateX(35vw) scale(0.9);
  }
  
  .carousel-item.prev-2 {
    transform: translateX(-70vw) scale(0.8);
  }
  
  .carousel-item.next-2 {
    transform: translateX(70vw) scale(0.8);
  }

  .carousel-caption {
    width: 65vw;
    padding: 16px 20px;
  }

  .carousel-caption p {
    font-size: 1.4em;
  }

  .carousel-nav {
    width: 50px;
    height: 50px;
  }

  .carousel-nav.prev {
    left: 20px;
  }

  .carousel-nav.next {
    right: 20px;
  }
}

@media (max-width: 600px) {
  .carousel-item.focused {
    width: 80vw;
    height: 55vh;
  }

  .carousel-item.prev,
  .carousel-item.next {
    width: 30vw;
    height: 45vh;
    opacity: 0.5;
  }
  
  .carousel-item.prev {
    transform: translateX(-30vw) scale(0.9);
  }
  
  .carousel-item.next {
    transform: translateX(30vw) scale(0.9);
  }
  
  .carousel-item.prev-2 {
    transform: translateX(-60vw) scale(0.8);
  }
  
  .carousel-item.next-2 {
    transform: translateX(60vw) scale(0.8);
  }

  .carousel-caption {
    width: 75vw;
    padding: 12px 16px;
  }

  .carousel-caption p {
    font-size: 1.2em;
  }

  .caption-time {
    font-size: 1em;
  }

  .carousel-nav {
    width: 45px;
    height: 45px;
  }

  .carousel-nav span {
    font-size: 2em;
  }

  .carousel-nav.prev {
    left: 10px;
  }

  .carousel-nav.next {
    right: 10px;
  }
}
  padding: 0 20px;
}

#live-updates h2 {
  text-align: center;
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #5a4a42;
  font-family: 'Great Vibes', cursive;
}

.updates-intro {
  text-align: center;
  font-size: 1.3em;
  color: #6a5a52;
  margin-bottom: 40px;
}

/* Status Banner */
.status-banner {
  background: linear-gradient(135deg, #9a8a82, #b5a5a0);
  color: white;
  border-radius: 16px;
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: 0 4px 16px rgba(154, 138, 130, 0.3);
  margin-bottom: 32px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(154, 138, 130, 0.3); }
  50% { box-shadow: 0 6px 24px rgba(154, 138, 130, 0.5); }
}

.status-icon {
  font-size: 3em;
  flex-shrink: 0;
}

.status-content h3 {
  font-size: 2em;
  margin: 0 0 8px 0;
  font-family: 'Bacalisties', Arial, sans-serif;
}

.status-content p {
  font-size: 1.3em;
  margin: 0;
  opacity: 0.9;
}

/* Next Event Countdown */
.next-event-countdown {
  background: white;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  margin-bottom: 32px;
}

.countdown-label {
  font-size: 1.2em;
  color: #8a7a72;
  margin-bottom: 8px;
}

#next-event-name {
  font-size: 2.2em;
  color: #5a4a42;
  margin-bottom: 24px;
  font-family: 'Bacalisties', Arial, sans-serif;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.timer-part {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timer-value {
  font-size: 3.5em;
  font-weight: bold;
  color: #9a8a82;
  line-height: 1;
  font-family: 'Bacalisties', Arial, sans-serif;
}

.timer-label {
  font-size: 1.1em;
  color: #8a7a72;
  margin-top: 8px;
}

/* Today's Schedule */
.todays-schedule {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  margin-bottom: 32px;
}

.todays-schedule h3 {
  font-size: 2.2em;
  color: #5a4a42;
  margin-bottom: 24px;
  text-align: center;
  font-family: 'Bacalisties', Arial, sans-serif;
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.schedule-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  border-radius: 12px;
  background: #faf8f8;
  transition: all 0.3s ease;
  border-left: 4px solid #e0d5d4;
}

.schedule-item.completed {
  opacity: 0.6;
  border-left-color: #4caf50;
}

.schedule-item.active {
  background: #fff3e0;
  border-left-color: #ff9800;
  box-shadow: 0 2px 8px rgba(255, 152, 0, 0.2);
}

.schedule-item.pending {
  border-left-color: #9a8a82;
}

.schedule-time {
  font-size: 1.5em;
  font-weight: bold;
  color: #5a4a42;
  flex-shrink: 0;
  width: 80px;
  font-family: 'Bacalisties', Arial, sans-serif;
}

.schedule-content {
  flex: 1;
}

.schedule-content h4 {
  font-size: 1.4em;
  color: #5a4a42;
  margin: 0 0 8px 0;
  font-family: 'Bacalisties', Arial, sans-serif;
}

.schedule-content p {
  font-size: 1.1em;
  color: #6a5a52;
  margin: 0 0 8px 0;
}

.schedule-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.95em;
  font-weight: 500;
}

.schedule-item.pending .schedule-status {
  background: #e0d5d4;
  color: #6a5a52;
}

.schedule-item.active .schedule-status {
  background: #ff9800;
  color: white;
}

.schedule-item.completed .schedule-status {
  background: #4caf50;
  color: white;
}

/* Updates Feed */
.updates-feed {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.updates-feed h3 {
  font-size: 2.2em;
  color: #5a4a42;
  margin-bottom: 24px;
  font-family: 'Bacalisties', Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.refresh-btn {
  background: #f5f0ef;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.refresh-btn:hover {
  background: #e0d5d4;
  transform: rotate(180deg);
}

.refresh-btn svg {
  color: #9a8a82;
}

.updates-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.update-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  border-radius: 8px;
  background: #faf8f8;
  border-left: 3px solid #9a8a82;
}

.update-time {
  font-size: 1em;
  color: #8a7a72;
  flex-shrink: 0;
  font-weight: 500;
}

.update-content {
  flex: 1;
}

.update-content p {
  font-size: 1.2em;
  color: #5a4a42;
  margin: 0;
  line-height: 1.6;
}

/* Admin Controls */
.admin-controls {
  background: #fff3e0;
  border: 2px solid #ff9800;
  border-radius: 12px;
  padding: 24px;
  margin-top: 32px;
}

.admin-controls h3 {
  font-size: 1.8em;
  color: #5a4a42;
  margin-bottom: 16px;
}

#admin-update-form textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0d5d4;
  border-radius: 8px;
  font-family: 'Bacalisties', Arial, sans-serif;
  font-size: 1.1em;
  margin-bottom: 12px;
  box-sizing: border-box;
}

#admin-update-form button {
  padding: 12px 24px;
  background: #ff9800;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-family: 'Bacalisties', Arial, sans-serif;
  cursor: pointer;
  transition: background 0.3s ease;
}

#admin-update-form button:hover {
  background: #f57c00;
}

/* Mobile responsive */
@media (max-width: 768px) {
  #live-updates h2 {
    font-size: 2.8em;
  }

  .status-banner {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }

  .status-icon {
    font-size: 2.5em;
  }

  .status-content h3 {
    font-size: 1.6em;
  }

  .countdown-timer {
    gap: 16px;
  }

  .timer-value {
    font-size: 2.8em;
  }

  .schedule-item {
    flex-direction: column;
    gap: 12px;
  }

  .schedule-time {
    width: auto;
    font-size: 1.3em;
  }

  .updates-feed h3 {
    font-size: 1.8em;
  }
}
