#kt_body {
  background: #ffffff;
}

#kt_content {
  background: #ffffff;
  padding-bottom: 0;
}

.ssp-home-wrap {
  --ssp-home-viewport-offset: 110px;
  padding: 20px;
}

.ssp-home-head {
  margin-bottom: var(--ssp-space-3);
}

.ssp-home-grid {
  display: grid;
  gap: var(--ssp-space-4);
  grid-template-columns: minmax(360px, 1fr) minmax(520px, 1.8fr);
  align-items: stretch;
  max-width: 1760px;
  margin-inline: auto;
  padding: 10px;
}

.ssp-home-grid > * {
  min-width: 0;
}

.ssp-home-card {
  border: 1px solid #d8dfeb;
  border-radius: var(--ssp-radius-lg);
  background: #fcfdff;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08);
  overflow: hidden;
  height: 100%;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

.ssp-home-card .card-header {
  background: transparent;
  border-bottom: 1px solid var(--ssp-color-border);
}

.ssp-announcement-list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: clamp(380px, 100vh, 640px);
  overflow: auto;
  padding: var(--ssp-space-5);
}

.ssp-announcement-item {
  border: 1px solid #d6deea;
  background: #f7f9fc;
  border-radius: var(--ssp-radius-md);
  margin-bottom: var(--ssp-space-5);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ssp-announcement-item:hover,
.ssp-announcement-item:focus-within {
  transform: translateY(-2px);
  box-shadow: var(--ssp-shadow-sm);
}

.ssp-announcement-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.ssp-announcement-title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: var(--ssp-space-2);
}

.ssp-announcement-desc {
  margin-bottom: var(--ssp-space-2);
  color: var(--ssp-color-text-muted);
  line-height: 1.5;
}

.ssp-home-highlights-card {
  min-height: 0;
}

.ssp-home-highlights-card .card-header {
  flex: 0 0 auto;
}

.ssp-home-highlights-card .ssp-swiper {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 1112 / 698;
}

.ssp-home-highlights-card .ssp-swiper .swiper-wrapper,
.ssp-home-highlights-card .ssp-swiper .swiper-slide {
  width: 100%;
  height: 100%;
}

.ssp-highlight-swiper,
.ssp-highlight-swiper .swiper-slide {
  height: 100%;
  aspect-ratio: auto;
}

.ssp-highlight-swiper .swiper-slide {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

.ssp-highlight-swiper .swiper-wrapper {
  height: 100%;
}

.ssp-highlight-media {
  width: 100%;
  height: 100%;
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
}

.ssp-highlight-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transform: translateZ(0);
}

.ssp-highlight-media .ssp-embed-frame-wrap {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
  transform: translateZ(0);
  position: relative;
  overflow: hidden;
  background: #0f172a;
}

.ssp-embed-frame {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  min-width: 100%;
  min-height: 100%;
  border: 0;
}

.ssp-swiper {
  overflow: hidden;
  border-radius: 0 0 var(--ssp-radius-lg) var(--ssp-radius-lg);
  width: 100%;
  max-width: 100%;
}

.ssp-swiper .swiper-wrapper {
  width: 100%;
}

.ssp-swiper .swiper-slide {
  width: 100%;
  max-width: 100%;
  flex-shrink: 0;
}

.ssp-swiper .swiper-button-prev,
.ssp-swiper .swiper-button-next {
  color: #ffffff;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.48);
}

.ssp-swiper .swiper-button-prev::after,
.ssp-swiper .swiper-button-next::after {
  font-size: 16px;
  font-weight: 700;
}

.ssp-swiper .swiper-pagination-bullet {
  width: 9px;
  height: 9px;
  background: rgba(255, 255, 255, 0.7);
  opacity: 1;
}

.ssp-swiper .swiper-pagination-bullet-active {
  background: #ffffff;
}

.ssp-swiper .swiper-button-prev,
.ssp-swiper .swiper-button-next,
.ssp-swiper .swiper-pagination {
  filter: drop-shadow(0 2px 6px rgba(17, 24, 39, 0.35));
}

.ssp-empty-state {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ssp-color-text-muted);
  padding: var(--ssp-space-6);
  text-align: center;
}

@media (max-width: 1200px) {
  .ssp-home-grid {
    grid-template-columns: 1fr;
    height: auto;
    align-items: start;
  }

  .ssp-home-announcements-card {
    /* Keep the stacked card proportionate to the Highlights carousel. */
    aspect-ratio: 1112 / 760;
    min-height: 0;
  }

  .ssp-announcement-list {
    min-height: 0;
    max-height: none;
    overflow: auto;
  }

  .ssp-home-card {
    height: auto;
  }

  .ssp-home-highlights-card .ssp-swiper {
    height: auto;
    aspect-ratio: 1112 / 698;
    flex: 0 0 auto;
  }
}

@media (max-width: 991px) {
  .ssp-home-wrap {
    --ssp-home-viewport-offset: 0px;
    padding: 0;
  }

  .ssp-home-head {
    margin-bottom: var(--ssp-space-3);
  }

  .ssp-home-grid {
    gap: var(--ssp-space-4);
  }

  .ssp-home-card {
    height: auto;
  }

  .ssp-home-card .card-header {
    padding: var(--ssp-space-4);
  }

  .ssp-announcement-list {
    padding: var(--ssp-space-3);
    max-height: none;
    overflow: auto;
  }

  .ssp-announcement-item {
    margin-bottom: var(--ssp-space-3);
  }

  .ssp-home-highlights-card {
    overflow: hidden;
  }

  .ssp-home-highlights-card .ssp-swiper {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1112 / 698;
    min-height: 0;
    max-height: none;
    flex: 0 0 auto;
  }

  .ssp-highlight-swiper,
  .ssp-highlight-swiper .swiper-wrapper,
  .ssp-highlight-swiper .swiper-slide {
    width: 100%;
    height: 100%;
  }

  .ssp-swiper .swiper-button-prev,
  .ssp-swiper .swiper-button-next {
    width: 36px;
    height: 36px;
  }

  .ssp-swiper .swiper-button-prev::after,
  .ssp-swiper .swiper-button-next::after {
    font-size: 14px;
  }
}

@media (max-width: 575.98px) {
  .ssp-home-wrap {
    padding: 12px;
  }

  .ssp-home-grid {
    gap: 12px;
    padding: 0;
  }

  .ssp-home-card .card-header {
    padding: 12px 14px;
  }

  .ssp-home-card .card-header h2 {
    font-size: 1rem;
  }

  .ssp-announcement-list {
    padding: 12px;
  }

  .ssp-announcement-item {
    margin-bottom: 12px;
  }

  .ssp-announcement-item .card-body {
    padding: 14px;
  }

  .ssp-announcement-title {
    font-size: 1rem;
  }

  .ssp-home-highlights-card .ssp-swiper {
    aspect-ratio: 16 / 10;
  }

  .ssp-swiper .swiper-button-prev,
  .ssp-swiper .swiper-button-next {
    width: 34px;
    height: 34px;
  }
}
