* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: #0b0f19;
  color: #ffffff;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 60px;
  background: rgba(8, 12, 20, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  z-index: 100;
  transition: all 0.35s ease;
}

.site-nav:hover {
  background: rgba(10,16,28,0.78);
  backdrop-filter: blur(14px);
}

.site-nav.scrolled {
  background: rgba(10,16,28,0.72);
  backdrop-filter: blur(14px);
  padding: 12px 60px;
}

.logo {
  height: 80px;
  width: auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-nav:hover .logo,
.site-nav.scrolled .logo {
  transform: scale(1.03);
  opacity: 1;
}

.nav-links {
  display: flex;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  color: #ffffff;
  background: linear-gradient(
    135deg,
    rgba(0,229,255,0.15),
    rgba(30,144,255,0.15)
  );
  border-color: rgba(0,229,255,0.4);
  box-shadow:
    0 6px 20px rgba(0,229,255,0.18),
    inset 0 0 12px rgba(0,229,255,0.08);
  transform: translateY(-1px);
}

.nav-links a.active {
  background: rgba(0,229,255,0.12);
  border-color: rgba(0,229,255,0.4);
  color: #ffffff;
}

.site-nav .nav-links a {
  opacity: 0.78;
}

.site-nav:hover .nav-links a,
.site-nav.scrolled .nav-links a {
  opacity: 1;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 20px 60px;
}

#bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-text {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-tag {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 229, 255, 0.2);
  background: rgba(0, 229, 255, 0.05);
  color: #8fefff;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: 64px;
  line-height: 1.05;
}

.hero p {
  margin: 0;
  opacity: 0.8;
  font-size: 18px;
  line-height: 1.8;
}

.primary-btn {
  margin-top: 24px;
  padding: 14px 30px;
  border: none;
  border-radius: 999px;
  background: #1e90ff;
  color: #ffffff;
  cursor: pointer;
  font-size: 15px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, opacity 0.25s ease;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(30, 144, 255, 0.25);
}

.primary-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.about,
.features,
.product-carousel,
.news,
.contact {
  position: relative;
  z-index: 1;
}

.section-heading {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 42px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 229, 255, 0.25);
  background: rgba(0, 229, 255, 0.05);
  color: #8fefff;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0 0 14px;
  font-size: 42px;
}

.section-heading p {
  margin: 0;
  opacity: 0.78;
  line-height: 1.8;
}

.about {
  padding: 110px 10%;
}

.about-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about-card {
  padding: 30px;
  border-radius: 24px;
  background: rgba(18, 24, 38, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.about-card h3 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 24px;
}

.about-card p {
  margin: 0;
  opacity: 0.78;
  line-height: 1.8;
}

.features {
  padding: 100px 10%;
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.card {
  max-width: 320px;
  padding: 30px;
  border-radius: 24px;
  background: rgba(18, 24, 38, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.card h2 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 24px;
}

.card p {
  margin: 0;
  opacity: 0.78;
  line-height: 1.8;
}

.product-carousel,
.news,
.contact {
  padding: 100px 8%;
}

.carousel-wrapper {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
}

.carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 10px 58px 24px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.product-card,
.news-card {
  flex: 0 0 320px;
  scroll-snap-align: center;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(20, 28, 46, 0.96) 0%, rgba(11, 16, 28, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  cursor: pointer;
}

.product-card:hover,
.news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
  border-color: rgba(0, 229, 255, 0.18);
}

.product-image {
  width: 100%;
  height: 190px;
  margin-bottom: 18px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-box {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.product-tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(30, 144, 255, 0.12);
  color: #9ccaff;
  font-size: 12px;
}

.product-card h3,
.news-card h3 {
  margin: 0 0 12px;
  font-size: 26px;
}

.product-card p,
.news-card p {
  margin: 0;
  opacity: 0.78;
  line-height: 1.75;
}

.news-date {
  display: inline-block;
  margin-bottom: 12px;
  color: #8fefff;
  font-size: 13px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(19, 31, 54, 0.92);
  color: #ffffff;
  cursor: pointer;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, background 0.25s ease;
}

.carousel-btn:hover {
  transform: translateY(-50%) scale(1.05);
  background: rgba(30, 144, 255, 0.85);
}

.carousel-btn.left {
  left: 0;
}

.carousel-btn.right {
  right: 0;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  margin-bottom: 10px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  width: 28px;
  background: #1e90ff;
}

.contact-layout {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 28px;
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-card,
.contact-form {
  border-radius: 24px;
  background: rgba(18, 24, 38, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.contact-card {
  padding: 24px;
}

.contact-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 20px;
}

.contact-card p {
  margin: 0;
  opacity: 0.8;
  line-height: 1.8;
}

.contact-form {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(30, 144, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.12);
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.hidden-field {
  display: none;
}

.form-status {
  min-height: 24px;
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
}

.form-status.success {
  color: #8fffb3;
}

.form-status.error {
  color: #ff9d9d;
}

.form-status.sending {
  color: #9ccaff;
}

.detail-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.detail-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 15, 0.7);
  backdrop-filter: blur(12px);
  opacity: 0;
}

.detail-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.detail-panel {
  position: relative;
  width: min(860px, 100%);
  max-height: min(88vh, 980px);
  overflow-y: auto;
  padding: 34px 30px 30px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.98) 0%, rgba(10, 15, 25, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.45);
  transform: translateY(36px) scale(0.94);
  opacity: 0;
}

.detail-modal.product-mode .detail-panel {
  width: min(1360px, 100%);
  padding: 36px;
}

.detail-modal.news-mode .detail-panel {
  width: min(1080px, 100%);
  padding: 34px;
}

.detail-content {
  width: 100%;
}

.detail-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  cursor: pointer;
  font-size: 24px;
  z-index: 10;
}

.detail-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.modal-label {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.08);
  color: #8fefff;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-detail-layout,
.news-detail-layout {
  display: grid;
  grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.product-detail-media,
.news-detail-media {
  position: sticky;
  top: 0;
}

.product-detail-image-box,
.news-detail-image-box {
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-detail-image-box img,
.news-detail-image-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

.product-detail-placeholder,
.news-detail-placeholder {
  min-height: 360px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 15px;
  letter-spacing: 0.05em;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.product-detail-media-copy {
  margin-top: 14px;
  padding: 0 4px;
}

.product-detail-media-subtitle {
  margin: 0 0 10px;
  color: #9ccaff;
  font-size: 16px;
  line-height: 1.7;
  text-align: left;
}

.product-detail-media-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.9;
  text-align: left;
}

.product-detail-main .product-detail-title,
.news-detail-main .news-detail-title {
  margin: 0 0 8px;
  font-size: 38px;
  line-height: 1.1;
}

.product-detail-main .product-detail-subtitle,
.news-detail-main .news-detail-subtitle {
  margin: 0 0 18px;
  color: #9ccaff;
  font-size: 16px;
}

.product-detail-main .product-detail-text,
.news-detail-main .news-detail-text {
  margin: 0 0 26px;
  opacity: 0.84;
  line-height: 1.9;
  font-size: 16px;
}

.spec-table {
  margin-top: 18px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 14, 24, 0.85);
}

.spec-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  align-items: stretch;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

.spec-row:nth-child(odd) {
  background: rgba(255, 255, 255, 0.01);
}

.spec-left {
  padding: 14px 22px;
  font-weight: 600;
  text-align: left;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: #9ccaff;
}

.spec-right {
  padding: 14px 18px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.86);
  white-space: normal;
  word-break: break-word;
}

.spec-right br {
  content: "";
}

footer {
  padding: 28px 20px 40px;
  text-align: center;
  color: rgba(255, 255, 255, 0.64);
  font-size: 14px;
}

@media (max-width: 1100px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .product-detail-layout,
  .news-detail-layout {
    grid-template-columns: 1fr;
  }

  .product-detail-media,
  .news-detail-media {
    position: static;
  }

  .spec-row {
    grid-template-columns: 220px 1fr;
  }
}

@media (max-width: 900px) {
  .site-nav {
    padding: 18px 24px;
    flex-direction: column;
    gap: 14px;
  }

  .site-nav.scrolled {
    padding: 14px 24px;
  }

  .nav-links {
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding-top: 150px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .section-heading h2 {
    font-size: 34px;
  }

  .product-card,
  .news-card {
    flex: 0 0 280px;
  }

  .product-carousel,
  .news,
  .contact,
  .about,
  .features {
    padding-left: 6%;
    padding-right: 6%;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }

  .detail-modal.product-mode .detail-panel,
  .detail-modal.news-mode .detail-panel {
    padding: 28px 22px 24px;
  }

  .product-detail-main .product-detail-title,
  .news-detail-main .news-detail-title {
    font-size: 32px;
  }

  .spec-row {
    grid-template-columns: 180px 1fr;
  }

  .spec-left,
  .spec-right {
    padding: 12px 14px;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 16px;
  }

  .section-heading h2 {
    font-size: 30px;
  }

  .carousel-track {
    padding: 10px 44px 20px;
  }

  .product-card,
  .news-card {
    flex: 0 0 86%;
  }

  .carousel-btn {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }

  .detail-panel {
    padding: 28px 22px 24px;
    border-radius: 22px;
  }

  .product-detail-main .product-detail-title,
  .news-detail-main .news-detail-title {
    font-size: 28px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .product-detail-image-box,
  .product-detail-placeholder,
  .news-detail-image-box,
  .news-detail-placeholder {
    min-height: 260px;
  }

  .spec-row {
    grid-template-columns: 1fr;
  }

  .spec-left {
    justify-content: flex-start;
    text-align: left;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.9s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

#particles-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

/* =========================
Product modal upgrade - final override
========================= */

.dark-table {
  margin-top: 18px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 14, 24, 0.82);
}

.dark-table .spec-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dark-table .spec-row:last-child {
  border-bottom: none;
}

.dark-table .spec-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

.dark-table .spec-left {
  padding: 13px 18px;
  font-weight: 600;
  color: #9ccaff;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  justify-content: flex-start;
}

.dark-table .spec-right {
  padding: 13px 18px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.8;
}

.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.tag-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.22);
  color: #d8f8ff;
  font-size: 14px;
  line-height: 1;
}

.tag-icon {
  font-size: 15px;
  line-height: 1;
}

.product-detail-image-box,
.news-detail-image-box {
  background: rgba(255, 255, 255, 0.04) !important;
}

.product-detail-image-box img,
.news-detail-image-box img {
  background: transparent !important;
}

.spec-section {
  margin-top: 28px;
}

.spec-section h4 {
  margin: 0 0 12px;
  font-size: 20px;
  color: #8fefff;
}

@media (max-width: 900px) {
  .dark-table .spec-row {
    grid-template-columns: 190px 1fr;
  }

  .dark-table .spec-left,
  .dark-table .spec-right {
    padding: 12px 14px;
  }
}

@media (max-width: 640px) {
  .dark-table .spec-row {
    grid-template-columns: 1fr;
  }

  .dark-table .spec-left {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
}

/* =========================
News card advanced version
========================= */

.news-carousel-shell {
  position: relative;
}

.news-track {
  padding-top: 22px;
  padding-bottom: 32px;
}

.news-card {
  --news-rotate-x: 0deg;
  --news-rotate-y: 0deg;
  --news-pointer-x: 50%;
  --news-pointer-y: 50%;
  --news-delay: 0s;
  position: relative;
  overflow: hidden;
  min-height: 500px;
  padding: 0;
  border-radius: 28px;
  background:
    radial-gradient(circle at top, rgba(140, 230, 255, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(20, 28, 46, 0.98) 0%, rgba(9, 14, 25, 0.98) 100%);
  transform: perspective(1400px) rotateX(var(--news-rotate-x)) rotateY(var(--news-rotate-y));
  transform-style: preserve-3d;
  transition:
    transform 0.45s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease;
}

.news-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 27px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  pointer-events: none;
}

.news-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at var(--news-pointer-x) var(--news-pointer-y), rgba(255,255,255,0.16), transparent 26%),
    linear-gradient(135deg, rgba(255,255,255,0.06), transparent 42%);
  mix-blend-mode: screen;
  opacity: 0.65;
  pointer-events: none;
}

.news-card.in-view {
  animation: newsCardRise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--news-delay);
}

.news-card:hover {
  transform: perspective(1400px) rotateX(var(--news-rotate-x)) rotateY(var(--news-rotate-y)) translateY(-12px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(143, 239, 255, 0.14);
  border-color: rgba(143, 239, 255, 0.28);
}

.news-card-glow {
  position: absolute;
  inset: auto -18% -28% auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.2), transparent 68%);
  filter: blur(14px);
  opacity: 0.8;
  pointer-events: none;
}

.news-media {
  position: relative;
  width: calc(100% - 28px);
  height: 238px;
  margin: 14px 14px 0;
  border-radius: 22px;
  overflow: hidden;
}

.news-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 14, 24, 0) 0%, rgba(9, 14, 24, 0.7) 100%);
  pointer-events: none;
}

.news-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
}

.news-media-slot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(16, 34, 62, 0.92), rgba(8, 15, 26, 0.95)),
    rgba(255,255,255,0.03);
  border: 1px dashed rgba(143, 239, 255, 0.24);
  color: rgba(255,255,255,0.6);
}

.slot-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(143, 239, 255, 0.1);
  border: 1px solid rgba(143, 239, 255, 0.22);
  color: #8fefff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.news-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 18px 24px 24px;
}

.news-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.news-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.18);
  color: #8fefff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.18;
}

.news-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  opacity: 0.8;
  line-height: 1.8;
}

.news-date {
  margin-bottom: 0;
  color: rgba(220, 245, 255, 0.8);
  font-size: 13px;
  letter-spacing: 0.03em;
}

.news-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
}

.news-more {
  color: #8fefff;
  font-size: 14px;
  font-weight: 600;
}

.news-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 16px;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.news-card:hover .news-arrow {
  transform: translate(2px, -2px);
  background: rgba(0, 229, 255, 0.12);
  border-color: rgba(0, 229, 255, 0.2);
}

.news-detail-layout-advanced .news-detail-main {
  position: relative;
}

.news-detail-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.news-detail-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.18);
  color: #8fefff;
  font-size: 13px;
}

.news-detail-chip.subdued {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.74);
}

.news-card[data-accent="blue"] .news-card-glow {
  background: radial-gradient(circle, rgba(82, 163, 255, 0.2), transparent 68%);
}

.news-card[data-accent="teal"] .news-card-glow {
  background: radial-gradient(circle, rgba(78, 234, 209, 0.2), transparent 68%);
}

.news-card[data-accent="purple"] .news-card-glow {
  background: radial-gradient(circle, rgba(155, 126, 255, 0.22), transparent 68%);
}

.news-card[data-accent="sky"] .news-card-glow {
  background: radial-gradient(circle, rgba(110, 200, 255, 0.22), transparent 68%);
}

.news-card[data-accent="ice"] .news-card-glow {
  background: radial-gradient(circle, rgba(205, 242, 255, 0.16), transparent 68%);
}

@keyframes newsCardRise {
  0% {
    opacity: 0;
    transform: perspective(1400px) rotateX(10deg) rotateY(-8deg) translateY(42px);
  }
  100% {
    opacity: 1;
    transform: perspective(1400px) rotateX(var(--news-rotate-x)) rotateY(var(--news-rotate-y)) translateY(0);
  }
}

@media (max-width: 900px) {
  .news-card {
    min-height: 470px;
  }

  .news-media {
    height: 210px;
  }

  .news-card h3 {
    font-size: 24px;
  }
}

@media (max-width: 640px) {
  .news-track {
    padding-top: 14px;
  }

  .news-card {
    min-height: 430px;
  }

  .news-media {
    width: calc(100% - 20px);
    height: 190px;
    margin: 10px 10px 0;
    border-radius: 18px;
  }

  .news-card-body {
    padding: 16px 18px 20px;
  }

  .news-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .news-card h3 {
    font-size: 22px;
  }

  .news-card-footer {
    padding-top: 18px;
  }
}