/* --- HERO & GENERAL PAGE STYLES --- */
.animated-background {
  position: relative;
  width: 100%;
  height: 60vh;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6));
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-top: -75px;
  overflow: hidden;
}
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.content-wrapper {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}
@keyframes fade-slide-up {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.content-wrapper h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  animation: fade-slide-up 1s ease-out forwards;
}
.event-section {
  padding: 60px 20px;
  font-family: "Poppins", sans-serif;
}
.dark-mode .event-section {
  background-color: #0a0a0a;
}
body:not(.dark-mode) .event-section {
  background-color: #f8f9fa;
}
.dark-mode .event-section.alt-bg {
  background-color: #121212;
}
body:not(.dark-mode) .event-section.alt-bg {
  background-color: #ffffff;
}

/* --- SECTION HEADING --- */
.event-section-title-container {
  text-align: center;
  margin-top: 45px;
  margin-bottom: 25px;
}
.event-section-title-container .title-text {
  font-size: clamp(1.7rem, 3.5vw, 2.2rem);
  font-weight: 600;
}
.dark-mode .event-section-title-container .title-text {
  color: white;
}
body:not(.dark-mode) .event-section-title-container .title-text {
  color: #2c3e50;
}

/* --- LATEST VIDEOS SWIPER --- */
.video-slider-wrapper {
  padding: 15px 0 30px 0;
  position: relative;
  overflow: hidden;
}
.swiper.axiom-video-swiper {
  width: 100%;
  padding-bottom: 30px;
  overflow: visible !important;
}
.axiom-video-swiper .swiper-wrapper {
  align-items: stretch;
}
.axiom-video-card.swiper-slide {
  width: 300px !important;
  height: auto;
  flex-shrink: 0 !important;
  margin: 0 10px;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  padding: 1.2em;
  border-radius: 0.8em;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  overflow: hidden;
}
.dark-mode .axiom-video-card.swiper-slide {
  background-color: #1a1a1a;
  box-shadow: 0 0 10px rgba(0, 100, 255, 0.6);
  border: 1px solid rgba(0, 100, 255, 0.2);
}
body:not(.dark-mode) .axiom-video-card.swiper-slide {
  background-color: #fdfdfd;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid #e7e7e7;
}
.axiom-video-card.swiper-slide:hover {
  transform: scale(1.02);
}
.axiom-video-card .video-embed-area {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;
}
.axiom-video-card .action-button {
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 600;
  border: none;
  padding: 9px 18px;
  border-radius: 18px;
  min-width: 140px;
  text-align: center;
  margin-top: auto;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    transform 0.15s ease;
}
.dark-mode .axiom-video-card .action-button:hover {
  background-color: #0052a3;
  transform: translateY(-1px);
}
body:not(.dark-mode) .axiom-video-card .action-button:hover {
  background-color: #084298;
  transform: translateY(-1px);
}
.dark-mode .axiom-video-card .action-button {
  background-color: #0066cc;
  color: #fff;
}
body:not(.dark-mode) .axiom-video-card .action-button {
  background-color: #0a58ca;
  color: #fff;
}

/* --- LITE-YOUTUBE STYLES --- */
.axiom-video-card lite-youtube {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.4em;
  background-position: center;
  background-size: cover;
}
.axiom-video-card lite-youtube > .lty-playbtn {
  width: 70px;
  height: 48px;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 14px;
  transition: all 0.2s cubic-bezier(0, 0, 0.2, 1);
}
.axiom-video-card lite-youtube:hover > .lty-playbtn {
  background-color: #f00;
  transform: scale(1.1);
}
#modal-video-container lite-youtube {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
}

/* --- SWIPER NAVIGATION BUTTONS --- */
.axiom-video-swiper .swiper-button-prev,
.swiper-button-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  opacity: 0.6;
  transition: all 0.25s ease;
}
.axiom-video-swiper .swiper-button-prev:hover,
.swiper-button-next:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}
.axiom-video-swiper .swiper-button-prev {
  left: 10px;
}
.axiom-video-swiper .swiper-button-next {
  right: 10px;
}
.dark-mode .swiper-button-prev,
.dark-mode .swiper-button-next {
  background-color: rgba(0, 80, 160, 0.7);
  color: white;
}
body:not(.dark-mode) .swiper-button-prev,
body:not(.dark-mode) .swiper-button-next {
  background-color: rgba(13, 110, 253, 0.6);
  color: white;
}
.axiom-video-swiper .swiper-button-prev::after,
.swiper-button-next::after {
  display: none;
}
.axiom-video-swiper .swiper-button-disabled {
  opacity: 0.25;
  pointer-events: none;
}

/* --- OTHER SECTIONS & MODAL --- */
.axiom-image-feature-section {
  margin: 40px 0;
  text-align: center;
  padding: 0 15px;
}
.axiom-image-container {
  position: relative;
  display: inline-block;
  max-width: 1200px;
  overflow: hidden;
  border-radius: 8px;
}
.axiom-image-container img {
  width: 100%;
  display: block;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.axiom-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 25px 30px;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.axiom-image-container:hover img {
  opacity: 0.3;
  transform: scale(1.03);
}
.axiom-image-container:hover .axiom-image-overlay {
  opacity: 1;
}
.axiom-livestream-cta {
  text-align: center;
  margin: 50px 0 40px 0;
}
.axiom-livestream-cta h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.1rem);
  font-weight: 600;
  margin-bottom: 20px;
}
.dark-mode .axiom-livestream-cta h1 {
  color: white;
}
body:not(.dark-mode) .axiom-livestream-cta h1 {
  color: #2c3e50;
}
.btn-axiom-youtube {
  background-color: #c4302b;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
  display: inline-block;
}
.btn-axiom-youtube:hover {
  background-color: #a31b1b;
  color: white;
  transform: translateY(-2px);
}
.axiom-upcoming-events-area {
  padding: 30px 0 50px 0;
}
.axiom-upcoming-card {
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: center;
  text-align: left;
  margin-bottom: 30px;
  min-height: 190px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  overflow: hidden;
}
.dark-mode .axiom-upcoming-card {
  background-color: #1a1a1a;
  color: #e0e0e0;
  box-shadow: 0 0 15px rgba(0, 100, 255, 0.5);
  border: 1px solid rgba(0, 100, 255, 0.2);
}
body:not(.dark-mode) .axiom-upcoming-card {
  background-color: #ffffff;
  color: #333;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
}
.axiom-upcoming-card:hover {
  transform: translateY(-5px);
}
.dark-mode .axiom-upcoming-card:hover {
  box-shadow: 0 0 22px rgba(0, 100, 255, 0.7);
}
body:not(.dark-mode) .axiom-upcoming-card:hover {
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.1);
}
.axiom-upcoming-card img {
  width: 135px;
  height: 135px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 20px;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}
.axiom-upcoming-card-body h6 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.dark-mode .axiom-upcoming-card-body h6 {
  color: #5daaff;
}
body:not(.dark-mode) .axiom-upcoming-card-body h6 {
  color: #003366;
}
.axiom-upcoming-card-body p {
  font-size: 0.88rem;
  opacity: 0.85;
}
.axiom-upcoming-card-body .date-info {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 8px;
}
#axiomEventVideoModal .modal-dialog {
  max-width: 900px;
  margin: auto;
}
#axiomEventVideoModal .modal-dialog-centered {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
.dark-mode #axiomEventVideoModal .modal-content {
  background-color: #111;
  border: 2px solid #0066cc;
  color: white;
  border-radius: 12px;
}
body:not(.dark-mode) #axiomEventVideoModal .modal-content {
  background-color: #fff;
  border: 2px solid #bbb;
  color: #212529;
  border-radius: 12px;
}
.dark-mode #axiomEventVideoModal .modal-header {
  border-bottom: 2px solid #0066cc;
  background-color: rgba(0, 20, 40, 0.8);
}
body:not(.dark-mode) #axiomEventVideoModal .modal-header {
  border-bottom: 2px solid #bbb;
  background-color: rgba(248, 249, 250, 1);
}
.dark-mode #axiomEventVideoModal .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}
#axiomEventVideoModal .modal-body {
  padding: 0;
  aspect-ratio: 16 / 9;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0 0 12px 12px;
  min-height: 450px;
}
#axiomEventVideoModal .modal-body lite-youtube {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 767.98px) {
  .axiom-upcoming-card {
    flex-direction: column;
    text-align: center;
  }
  .axiom-upcoming-card img {
    margin-right: 0;
    margin-bottom: 15px;
    margin-top: -35px;
  }
}
