/* ========================================
   Component Styles (Dark Theme)
   ======================================== */

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  cursor: pointer;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(0, 102, 179, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 102, 179, 0.45);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
}

.btn--accent {
  background: linear-gradient(135deg, var(--color-accent), #d48700);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(232, 154, 0, 0.35);
}

.btn--accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 154, 0, 0.45);
}

/* -------- Cards (Dark) -------- */
.card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border-color: rgba(0, 168, 168, 0.3);
}

.card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.card__body {
  padding: var(--space-6);
}

.card__tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--color-secondary);
  background: rgba(0, 168, 168, 0.15);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
}

.card__title {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--color-white);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-3);
}

.card__text {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.8);
  font-weight: var(--font-medium);
  line-height: var(--leading-relaxed);
}

/* -------- Banner -------- */
.banner {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  overflow: hidden;
}

.banner__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.banner__slide--active {
  opacity: 1;
  visibility: visible;
}

.banner__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 6s ease;
}

.banner__slide--active .banner__bg {
  transform: scale(1);
}

.banner__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(10, 25, 41, 0.88) 0%,
    rgba(10, 25, 41, 0.6) 50%,
    rgba(0, 102, 179, 0.3) 100%
  );
}

.banner__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  padding-top: var(--navbar-height);
}

.banner__label {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-secondary);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.banner__title {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: var(--font-bold);
  color: var(--color-white);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-6);
  max-width: 700px;
}

.banner__subtitle {
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, 0.8);
  line-height: var(--leading-relaxed);
  max-width: 600px;
  margin-bottom: var(--space-8);
}

.banner__actions {
  display: flex;
  gap: var(--space-4);
}

/* Banner pagination */
.banner__pagination {
  position: absolute;
  bottom: var(--space-10);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: var(--space-3);
}

.banner__dot {
  width: 40px;
  height: 4px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.banner__dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: var(--color-white);
  border-radius: var(--radius-full);
  transition: width 0.1s linear;
}

.banner__dot--active {
  background: rgba(255, 255, 255, 0.5);
}

.banner__dot--active::after {
  width: 100%;
  transition: width 5s linear;
}

/* Banner arrows */
.banner__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: var(--text-xl);
  cursor: pointer;
  transition: all var(--transition-base);
  opacity: 0;
}

.banner:hover .banner__arrow {
  opacity: 1;
}

.banner__arrow:hover {
  background: rgba(255, 255, 255, 0.25);
}

.banner__arrow--prev {
  left: var(--space-6);
}

.banner__arrow--next {
  right: var(--space-6);
}

/* -------- Metrics (Dark) -------- */
.metrics__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}

.metric__item {
  text-align: center;
  padding: var(--space-8) var(--space-6);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.metric__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border-color: rgba(0, 168, 168, 0.3);
}

.metric__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-4);
  background: linear-gradient(135deg, rgba(0, 102, 179, 0.2), rgba(0, 168, 168, 0.2));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
  font-size: var(--text-2xl);
}

.metric__value {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: var(--font-bold);
  color: var(--color-accent);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-2);
}

.metric__label {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.7);
  font-weight: var(--font-medium);
}

.metric__subtags {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  margin-top: var(--space-3);
  flex-wrap: wrap;
}

.metric__subtag {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.85);
  font-weight: var(--font-medium);
  background: rgba(0, 168, 168, 0.12);
  border: 1px solid rgba(0, 168, 168, 0.25);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  white-space: nowrap;
}

/* -------- Cases -------- */
.cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

/* -------- Subsystems Carousel (Dark) -------- */
.subsystems__carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-4) 0;
}

.subsystems__track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  max-width: 1000px;
  width: 100%;
  perspective: 1000px;
}

/* Center card — fixed size, active, clickable */
.subsystem__card--center {
  flex: 0 0 380px;
  height: 340px;
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  transition: all 0.5s ease;
  transform: scale(1);
  opacity: 1;
  z-index: 2;
  cursor: pointer;
}

.subsystem__card--center:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border-color: rgba(0, 168, 168, 0.3);
}

/* Side cards — smaller, dimmed, not clickable */
.subsystem__card--side {
  flex: 0 0 320px;
  height: 280px;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: all 0.5s ease;
  transform: scale(0.88);
  opacity: 0.45;
  pointer-events: none;
  filter: blur(0.5px);
  z-index: 1;
}

.subsystem__icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(0, 102, 179, 0.2), rgba(0, 168, 168, 0.2));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
  font-size: var(--text-3xl);
  margin-bottom: var(--space-6);
}

.subsystem__title {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--color-white);
  margin-bottom: var(--space-3);
}

.subsystem__desc {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.65);
  line-height: var(--leading-relaxed);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Carousel arrows */
.subsystems__arrow {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: var(--text-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  z-index: 3;
}

.subsystems__arrow:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 992px) {
  .subsystems__track {
    gap: var(--space-4);
  }

  .subsystem__card--center,
  .subsystem__card--side {
    flex: 0 0 320px;
    padding: var(--space-8);
  }
}

@media (max-width: 768px) {
  .subsystems__carousel {
    gap: var(--space-2);
  }

  .subsystems__track {
    gap: var(--space-3);
  }

  .subsystem__card--center,
  .subsystem__card--side {
    flex: 0 0 240px;
    padding: var(--space-6);
  }

  .subsystem__card--side {
    transform: scale(0.85);
    opacity: 0.35;
  }

  .subsystem__icon {
    width: 52px;
    height: 52px;
    font-size: var(--text-2xl);
  }

  .subsystem__title {
    font-size: var(--text-lg);
  }

  .subsystem__desc {
    font-size: var(--text-sm);
  }
}

/* -------- News (Dark) -------- */
.news__grid {
  max-width: 1200px;
  margin: 0 auto;
}

/* Wrapper: left big card + right list */
.news__wrapper {
  display: flex;
  gap: var(--space-8);
  align-items: stretch;
}

/* Featured big card (left) */
.news__featured {
  flex: 1 1 58%;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  position: relative;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.news__featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.news__featured-image {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.news__featured-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.news__featured:hover .news__featured-image img {
  transform: scale(1.03);
}

.news__featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 25, 41, 0.92) 0%,
    rgba(10, 25, 41, 0.5) 40%,
    rgba(10, 25, 41, 0.1) 70%,
    transparent 100%
  );
}

.news__featured-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-8) var(--space-6) var(--space-5);
}

.news__featured-title {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--color-white);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news__featured-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
}

.news__featured-source {
  color: rgba(255, 255, 255, 0.75);
}

.news__featured-time {
  color: rgba(255, 255, 255, 0.55);
}

/* News list (right) */
.news__list {
  flex: 1 1 38%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-3);
}

.news__list-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background var(--transition-base);
  flex: 1;
}

.news__list-item:first-child {
  padding-top: 0;
}

.news__list-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.news__list-item:hover .news__list-title {
  color: var(--color-primary-light);
}

.news__list-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.news__list-title {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--color-white);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast);
}

.news__list-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
}

.news__list-source {
  color: rgba(255, 255, 255, 0.6);
}

.news__list-time {
  color: rgba(255, 255, 255, 0.4);
}

.news__list-thumb {
  flex-shrink: 0;
  width: 110px;
  border-radius: var(--radius-md);
  overflow: hidden;
  align-self: center;
}

.news__list-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.news__more {
  text-align: center;
  margin-top: var(--space-8);
}

/* Responsive */
@media (max-width: 900px) {
  .news__wrapper {
    flex-direction: column;
  }

  .news__featured {
    flex: 1 1 100%;
  }

  .news__list {
    flex: 1 1 100%;
    gap: var(--space-2);
  }

  .news__featured-title {
    font-size: var(--text-xl);
  }

  .news__featured-content {
    padding: var(--space-6) var(--space-4) var(--space-4);
  }

  .news__list-item {
    padding: var(--space-3) 0;
  }

  .news__list-thumb {
    width: 100px;
  }
}

@media (max-width: 768px) {
  .news__featured-title {
    font-size: var(--text-lg);
  }

  .news__featured-content {
    padding: var(--space-4) var(--space-4) var(--space-3);
  }

  .news__list-title {
    font-size: var(--text-sm);
  }
}

/* -------- Partners (Dark) -------- */
.partners__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-6);
  align-items: center;
}

.partner__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #ffffff;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  overflow: hidden;
  aspect-ratio: 345 / 185;
}

.partner__logo:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.partner__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

