/* CRN Page Specific Styling */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;700;900&display=swap');

.crn-container {
  padding: 3rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.75;
  color: #1d1d1f;
  background-color: #f9fbff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  font-family: 'Barlow', sans-serif;
  margin-top: 75px;
}

.crn-container h1 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #e0e4f0;
  padding-bottom: 0.5rem;
  font-weight: 600;
}

.crn-container h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  font-weight: 600;
}

.crn-container h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  color: #000000;
  font-weight: 600; /* Now overrides previous 600 */
}

.crn-container ul,
.crn-container ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.crn-container ul li,
.crn-container ol li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.crn-container a {
  color: #0062cc;
  text-decoration: underline;
  font-weight: 500;
}

.crn-table ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.75rem 1.5rem;
  list-style: none;
  padding: 1rem 1.5rem;
  margin: 1rem 0;
  background-color: #ffffff;
  border: 1px solid #d4d9e2;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #222;
}

.crn-fitting-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.crn-fitting-table th,
.crn-fitting-table td {
  border: 1px solid #c8d0e0;
  padding: 0.75rem 1rem;
  text-align: left;
  background-color: #fff;
}

.crn-fitting-table thead th {
  background-color: #eaf1f8;
  color: #003d80;
  font-weight: 600;
}

.crn-container strong {
  color: #000;
  font-weight: 600;
}

[data-en][data-zh] {
  transition: all 0.3s ease;
}

@media screen and (max-width: 600px) {
  .crn-container {
    padding: 1.5rem 1rem;
  }

  .crn-table ul {
    grid-template-columns: 1fr;
  }

  .crn-fitting-table th,
  .crn-fitting-table td {
    padding: 0.5rem;
  }
}

@media screen and (max-width: 768px) {
  .crn-container {
    padding: 1.5rem 1rem;
    font-size: 0.95rem;
    margin-top: 320px; /* prevent navbar overlap */
  }

  .crn-container h1 {
    font-size: 1.5rem;
    text-align: center;
  }

  .crn-container h2 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
  }

  .crn-container h3 {
    font-size: 1.1rem;
    margin-top: 1rem;
  }

  .crn-table ul {
    grid-template-columns: 1fr;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .crn-fitting-table th,
  .crn-fitting-table td {
    font-size: 0.85rem;
    padding: 0.5rem;
  }

  footer .contact {
    padding: 1rem;
    font-size: 0.9rem;
  }

  footer p {
    padding: 0 1rem;
    font-size: 0.85rem;
  }
}
