/* ============================================
   NS Group — Design System
   Tumma teollisuusteema
   ============================================ */

/* --- Custom Properties --- */
:root {
  --bg:          #0a0e1a;
  --bg-card:     rgba(15, 23, 42, 0.9);
  --bg-section:  #0f1525;
  --bg-input:    rgba(15, 23, 42, 0.6);
  --border:      rgba(148, 163, 184, 0.2);
  --border-hover:rgba(148, 163, 184, 0.4);
  --text:        #e2e8f0;
  --text-muted:  rgba(226, 232, 240, 0.6);
  --accent:      #36A9E1;
  --accent-hover:#2d8fc0;
  --accent-glow: rgba(54, 169, 225, 0.15);
  --steel:       #29235C;
  --green:       #22c55e;
  --green-hover: #16a34a;
  --white:       #ffffff;
  --shadow:      0 18px 60px rgba(0, 0, 0, 0.45);
  --shadow-sm:   0 4px 20px rgba(0, 0, 0, 0.3);
  --radius:      12px;
  --radius-lg:   20px;
  --transition:  all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --container:   1140px;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-hover); }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

.section-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.section-title { margin-bottom: 1rem; }

.section-desc {
  color: var(--text-muted);
  max-width: 700px;
  font-size: 1.05rem;
}

/* --- Layout --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-section);
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo svg {
  height: 28px;
  width: auto;
  transition: var(--transition);
}

.navbar-logo svg .cls-1 {
  fill: var(--white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--white);
}

.lang-switch {
  display: flex;
  gap: 0.25rem;
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 1px solid var(--border);
}

.lang-switch a {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  color: var(--text-muted);
}

.lang-switch a.active {
  color: var(--white);
  background: rgba(54, 169, 225, 0.2);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 14, 26, 0.4) 0%,
    rgba(10, 14, 26, 0.6) 50%,
    rgba(10, 14, 26, 0.95) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 2rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(54, 169, 225, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-green {
  background: var(--green);
  color: var(--white);
}

.btn-green:hover {
  background: var(--green-hover);
  color: var(--white);
  transform: translateY(-2px);
}

/* --- Key Figures (hero bottom) --- */
.key-figures {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 2rem 0;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.key-figure {
  text-align: center;
}

.key-figure-value {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.key-figure-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Cards Grid --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.cards-grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent);
  font-size: 1.4rem;
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Company Cards --- */
.card.company-card {
  text-align: center;
  padding: 2rem 1.5rem 0;
  display: flex;
  flex-direction: column;
}
.card.company-card p {
  flex: 1;
  margin-bottom: 1rem;
}

.card .company-card-logo {
  height: auto !important;
  width: auto !important;
  max-height: 36px;
  max-width: 220px;
  object-fit: contain;
  margin: 0 auto 1.5rem;
  opacity: 0.9;
}

.card.company-card .company-card-location {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  margin-top: auto;
  padding: 0.75rem 1.5rem;
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  margin-bottom: 0;
  border-top: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  background: rgba(54, 169, 225, 0.06);
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

/* --- Case Study Cards --- */
.case-card {
  overflow: hidden;
  padding: 0;
}

.case-card-image {
  height: 200px;
  background: linear-gradient(135deg, var(--bg-section), rgba(54, 169, 225, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}

.case-card-body {
  padding: 1.25rem;
}
.case-card-body h3 {
  font-size: 1rem;
}

.case-card-tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-glow);
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

/* --- Certifications --- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}

.cert-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
}

.cert-badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}

.cert-card h4 { margin-bottom: 0.5rem; }
.cert-card p { color: var(--text-muted); font-size: 0.85rem; }

/* --- Timeline --- */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 2.5rem auto 0;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--border));
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.65rem;
  top: 0.3rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
}

.timeline-year {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.timeline-text {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- Values --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.value-item {
  padding: 1.5rem;
  border-left: 3px solid var(--accent);
}

.value-item h4 { margin-bottom: 0.5rem; }
.value-item p { color: var(--text-muted); font-size: 0.9rem; }

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2.5rem;
}

.contact-companies {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.contact-company h4 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.contact-company p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 0.25rem;
}

.contact-company a {
  font-size: 0.85rem;
}

/* --- Form --- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
  color: var(--green);
  font-weight: 600;
}

/* --- Invoice Info --- */
.invoice-info {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.invoice-info h4 {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.invoice-table {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.invoice-table dt {
  float: left;
  clear: left;
  width: 55%;
  font-weight: 500;
}

.invoice-table dd {
  margin-left: 55%;
  margin-bottom: 0.25rem;
  font-family: ui-monospace, SFMono-Regular, monospace;
}

/* --- Footer --- */
.footer {
  background: #060810;
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 350px;
}

.footer-logo svg {
  height: 24px;
}

.footer-logo svg .cls-1 {
  fill: var(--text-muted);
}

.footer h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.footer-links {
  list-style: none;
}

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive: Tablet --- */
@media (max-width: 968px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 26, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 999;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    font-size: 1.3rem;
  }

  .lang-switch {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    margin-top: 1rem;
  }

  .nav-toggle { display: flex; z-index: 1001; }

  .key-figures {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-companies {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Responsive: Mobile --- */
@media (max-width: 600px) {
  section { padding: 3.5rem 0; }

  .container { padding: 0 1.25rem; }

  .hero {
    min-height: 100svh;
    padding: 4.5rem 0 1.5rem;
  }

  .hero-content {
    padding: 0 1.25rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
  }

  .key-figures {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: auto;
    padding: 1.5rem 1.25rem;
    width: 100%;
  }

  .key-figure-value {
    font-size: 1.5rem;
  }

  .key-figure-label {
    font-size: 0.7rem;
  }

  .cards-grid,
  .cards-grid-4 {
    grid-template-columns: 1fr;
  }

  .cert-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Privacy Policy Page --- */
.privacy-content {
  max-width: 780px;
}

.privacy-content h2 {
  font-size: 1.25rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.privacy-content h3 {
  font-size: 1.05rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.privacy-content p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.8;
}

.privacy-content ul {
  color: var(--text-muted);
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.privacy-content ul li {
  margin-bottom: 0.35rem;
  line-height: 1.7;
}

.privacy-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.privacy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem;
}

.privacy-table th,
.privacy-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid var(--border);
}

.privacy-table th {
  background: var(--bg-card);
  color: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.privacy-table td {
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.4);
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(10, 14, 26, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 1.25rem 2rem;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1;
  min-width: 280px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.cookie-banner-text a {
  color: var(--accent);
}

.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.cookie-btn-accept {
  background: var(--accent);
  color: var(--white);
}

.cookie-btn-accept:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.cookie-btn-necessary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.cookie-btn-necessary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Cookie settings button in footer */
.cookie-settings-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: var(--transition);
}

.cookie-settings-btn:hover {
  color: var(--accent);
}

@media (max-width: 600px) {
  .cookie-banner {
    padding: 1rem 1.25rem;
  }
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .cookie-banner-actions {
    justify-content: stretch;
  }
  .cookie-btn {
    flex: 1;
    text-align: center;
  }
}

/* --- News / Blog --- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.news-card a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-card-image {
  height: 220px;
  background: linear-gradient(135deg, var(--bg-section), rgba(54, 169, 225, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
}

.news-card-date {
  color: var(--text-muted);
}

.news-card-tag {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--accent-glow);
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.news-card:hover h3 {
  color: var(--accent);
}

.news-card-excerpt {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
}

.news-card-readmore {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 1rem;
  transition: gap 0.2s ease;
}

.news-card:hover .news-card-readmore {
  gap: 0.6rem;
}

/* News block — full-width listing item with background image */
.news-list {
  margin-top: 2.5rem;
}

.news-block {
  display: block;
  position: relative;
  min-height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
  transition: var(--transition);
  background: var(--bg-card);
}

.news-block:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.news-block-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}

.news-block-content {
  position: relative;
  z-index: 1;
  padding: 2.5rem;
  max-width: 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 280px;
}

.news-block-content .news-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
}

.news-block-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.news-block:hover h3 {
  color: var(--accent);
}

.news-block-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.news-block .news-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 1rem;
  transition: gap 0.2s ease;
}

.news-block:hover .news-card-link {
  gap: 0.6rem;
}

/* News listing page header */
.news-header {
  padding-top: 7rem;
  padding-bottom: 0;
}

/* Article page */
.article-hero {
  padding-top: 7rem;
  padding-bottom: 2rem;
  max-width: 780px;
}

.article-hero .news-card-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
}

.article-hero h1 {
  margin-top: 1rem;
  margin-bottom: 0.75rem;
}

.article-date {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.article-content {
  max-width: 780px;
  padding-bottom: 3rem;
}

.article-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.8;
  font-size: 1.05rem;
}

.article-content h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-content h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.article-content ul,
.article-content ol {
  color: var(--text-muted);
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.article-content img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.article-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  color: var(--text);
  background: var(--accent-glow);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}

.article-nav {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

/* More news link */
.news-more {
  text-align: center;
  margin-top: 2.5rem;
}

@media (max-width: 768px) {
  .news-block-content {
    max-width: 100%;
    padding: 1.5rem;
    min-height: 220px;
  }
  .news-block-bg {
    opacity: 0.2;
  }
  .news-block-content h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 600px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
  .news-card-image {
    height: 180px;
  }
}
