html,
body {
  overflow-x: hidden !important;
}

/* =========================================
   PARTNER LOGO MARQUEE
========================================= */
#partner {
  background: #fff;
}

.partnerSwiper {
  overflow: hidden;
}

.partnerSwiper .swiper-wrapper {
  align-items: stretch;
  transition-timing-function: linear !important;
}

.partnerSwiper .swiper-slide {
  height: auto;
}

.partner-logo {
  display: block;
  width: 100%;
  height: 80px;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #fff;
  object-fit: contain;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.partner-logo:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

/* =========================================
   PROGRAM SLIDER LABEL
========================================= */
#program-slider .absolute.top-3.right-3>span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

#program-slider .absolute.top-3.right-3>span svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

#program-slider .absolute.top-3.right-3>span>* {
  line-height: 1;
}

/* =========================================
   SWIPER EQUAL HEIGHT FIX
========================================= */
.programSwiper .swiper-wrapper,
.testimonialSwiper .swiper-wrapper,
.eventSwiper .swiper-wrapper,
.gallerySwiper .swiper-wrapper,
.homeProgramSwiper .swiper-wrapper {
  align-items: stretch !important;
}

.programSwiper .swiper-wrapper {
  align-items: flex-start !important;
}

.eventSwiper .swiper-wrapper {
  align-items: flex-start !important;
}

.programSwiper .swiper-slide,
.testimonialSwiper .swiper-slide,
.instructorSwiper .swiper-slide,
.eventSwiper .swiper-slide,
.gallerySwiper .swiper-slide,
.homeProgramSwiper .swiper-slide {
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
}

.home-program-controls .swiper-button-disabled,
.home-program-controls .swiper-button-lock {
  visibility: hidden;
}

.programSwiper .swiper-slide {
  align-self: stretch;
}

.programSwiper .swiper-slide>a {
  width: 100%;
  height: 100%;
  min-height: 390px;
}

#program .program-card {
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

#program .program-card:hover {
  border-color: rgba(59, 130, 246, 0.18);
  box-shadow: 0 14px 32px rgba(30, 64, 175, 0.12);
  transform: translateY(-3px);
}

#program .program-category {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #2563eb;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(8px);
}

#program .program-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.035em;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.22);
}

#program .program-status--running {
  background: #2563eb;
}

#program .program-status--finished {
  background: #64748b;
}

#program .program-status--danger {
  background: #dc2626;
}

#program .program-card>div:nth-child(2) {
  flex: 1;
  min-height: 210px;
}

#program .program-card h3 {
  min-height: 56px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.35;
}

#program .program-card h3+div {
  flex: 1;
  justify-content: flex-start;
}

#program .program-card h3+div+div,
#program .program-card h3+div {
  margin-bottom: 16px;
}

#program .program-card>div:nth-child(2)>div:last-child {
  min-height: 52px;
}

.eventSwiper .swiper-slide {
  align-self: flex-start;
}

.event-controls .swiper-button-disabled {
  cursor: default;
  opacity: 0.4;
}

.event-pagination .swiper-pagination-bullet {
  width: 0.5rem;
  height: 0.5rem;
  margin: 0 !important;
  background: #dbe1ec;
  opacity: 1;
  transition: width 0.2s ease, background-color 0.2s ease;
}

.event-pagination .swiper-pagination-bullet-active {
  width: 2rem;
  border-radius: 9999px;
  background: #2563eb;
}

.gallery-controls .swiper-button-disabled {
  cursor: default;
  opacity: 0.4;
}

.programSwiper .swiper-slide>div,
.testimonialSwiper .swiper-slide>div {
  height: 100%;
}

#instructor .instructorSwiper .swiper-slide>.cyber-card-wrapper,
#instructor .cyber-card-front-border,
#instructor .cyber-card-content {
  height: auto;
}

#instructor .instructorSwiper .swiper-wrapper {
  height: auto !important;
  align-items: flex-start !important;
}

#instructor .instructorSwiper .swiper-slide {
  align-self: flex-start;
}

#instructor .cyber-bio-box {
  flex-grow: 0;
}

/* =========================================
   POPUP POSTER
========================================= */
@keyframes popupShow {
  from {
    transform: scale(0.85);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.popup-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.55);
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.popup-card {
  position: relative;
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  animation: popupShow 0.4s ease-out;
  width: 90vw;
  max-width: 380px;
  max-height: 85vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.poster-img {
  aspect-ratio: 3 / 4;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 1rem;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.85);
  border: none;
  border-radius: 50%;
  padding: 6px 10px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  transition: 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.close-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

body.no-scroll,
body.overflow-hidden {
  overflow: hidden;
}

#main-navbar.home-navbar:not(.bg-white) {
  background-color: #f8f9ff;
}

#instructor .instructor-card-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border-radius: 0.5rem;
  background: #c4c4c4;
  object-fit: contain;
}

.home-carousel-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin: 0 !important;
  background: #64748b;
  opacity: 0.55;
}

.home-carousel-pagination .swiper-pagination-bullet-active {
  background: #0f172a;
  opacity: 1;
}

.home-contact-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 70;
  display: flex;
  width: min(238px, calc(100vw - 24px));
  min-height: 66px;
  align-items: center;
  gap: 9px;
  overflow: hidden;
  padding: 8px 12px 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: #252945;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-contact-widget:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.28);
}

.home-contact-widget:focus-visible {
  outline: 3px solid #38bdf8;
  outline-offset: 3px;
}

.home-contact-widget__avatar {
  z-index: 1;
  display: flex;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: #dbeafe;
  color: #0f4c81;
  font-size: 19px;
}

.home-contact-widget__copy {
  z-index: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.home-contact-widget__heading {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

.home-contact-widget__status {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 5px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

.home-contact-widget__status span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
}

.home-contact-widget__hours {
  color: rgba(255, 255, 255, 0.88);
  font-size: 9px;
  line-height: 1.3;
  white-space: nowrap;
}

.home-contact-widget__decoration {
  position: absolute;
  top: -19px;
  right: -11px;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
}

/* =========================================
   GLOBAL UTILITIES
========================================= */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.filter-btn.active {
  background-color: #f97316;
  color: white;
  border: none;
}

/* =========================================
   RESPONSIVE DESIGN
========================================= */

/* --- Extra Small Devices (≤480px) --- */
@media (max-width: 480px) {
  .home-contact-widget {
    right: 12px;
    bottom: 14px;
  }

  .popup-card {
    width: 85vw;
    max-width: 320px;
  }

  .close-btn {
    top: 6px;
    right: 6px;
    padding: 5px 8px;
    font-size: 1rem;
  }
}

/* --- Small Devices (≤640px) --- */
@media (max-width: 640px) {
  .partner-logo {
    height: 60px;
    padding: 8px;
    border-radius: 8px;
  }

  #program-slider {
    gap: 0.75rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }
}

/* --- Program list on mobile --- */
@media (max-width: 639px) {
  .programSwiper {
    overflow: visible;
  }

  .programSwiper .swiper-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: auto;
    transform: none !important;
    transition: none !important;
  }

  .programSwiper .swiper-slide {
    width: 100% !important;
    margin-right: 0 !important;
  }

  .program-prev,
  .program-next {
    display: none;
  }
}

/* --- Medium Devices (≤768px) --- */
@media (max-width: 768px) {
  .popup-card {
    width: 80vw;
    max-width: 340px;
  }
}

@media (min-width: 640px) {
  .partner-logo {
    height: 88px;
  }
}
