.newArticle-hero {
  background-color: #003366;
  padding: 200px 20px 120px;
  text-align: center;
  color: white;
  position: relative;
  clip-path: ellipse(100% 80% at 50% 20%);
  z-index: 1;
}

.newArticle-content p,
.newArticle-content li {
  text-align: justify;
  text-justify: inter-word;
  max-width: 800px;
  margin: 20px auto 1em auto;
  padding: 0 20px;
  font-size: 16px;
  line-height: 1.7;
  color: #3d4459;
}

.newArticle-title {
  font-size: 43px;
  font-weight: 600;
  margin-bottom: 10px;
  max-width: 650px;
  margin: auto;
}

.newArticle-meta {
  font-size: 16px;
  color: white;
  margin-bottom: 0;
}

.newArticle-floating-image {
  margin-top: -80px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.newArticle-image-wrapper {
  max-width: 600px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.newArticle-image-wrapper img {
  width: 100%;
  display: block;
  border-radius: 16px;
}

.newArticle-separator {
  margin: 40px auto;
  width: 80%;
  border: 0;
  border-top: 1px solid #ddd;
}

.newArticle-icons-wrapper {
  display: flex;
  gap: 25px;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  padding: 25px 0;
  width: fit-content;
  margin: auto;
  width: 1000px;
  flex-direction: row-reverse;
}

.newArticle-share-icons {
  display: flex;
  justify-content: flex-end;
  padding: 0 10%;
  margin: 40px 0 10px;
}

.newArticle-icons-wrapper a {
  color: #697586;
  transition: color 0.2s ease;
}

.newArticle-icons-wrapper a:hover {
  color: #0077cc;
}

.newArticle-nav {
  display: flex;
  justify-content: space-between;
  max-width: 900px;
  margin: 60px 550px;
  padding: 20px 0;
  /*border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;*/
  gap: 20px;
}

.newArticle-nav a {
  display: flex;
  flex-direction: column;
  color: #2b2b2b;
  text-decoration: none;
  width: 48%;
  transition: color 0.3s ease;
  font-size: 16px;
}

.newArticle-nav a:hover {
  color: #0077cc;
}

.newArticle-nav span {
  color: #0077cc;
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.newArticle-link-content {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
}

.newArticle-link-content p {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  font-size: 18px;
  color: #3d4459;
}

.arrow-icon {
  min-width: 12px;
  min-height: 12px;
  height: 20px;
  width: 20px;
  display: block;
}

.newArticle-divider {
  width: 1px;
  background-color: #ddd;
  margin: 0 20px;
}

.newArticle-related {
  max-width: 1200px;
  margin: 60px 525px;
  padding: 0 20px;
}

.newArticle-related-title {
  font-size: 24px;
  margin-bottom: 30px;
  color: #0066cb;
}

.newArticle-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

.newArticle-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 550px;
  width: 360px;
  margin-left: 20px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.newArticle-card:hover {
  transform: translateY(-5px);
}

.newArticle-card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.newArticle-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.newArticle-card-category {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #0066cb;
  color: white;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
}

.newArticle-card-body {
  padding: 20px;
}

.newArticle-card-body h3 {
  font-size: 18px;
  color: #0066cb;
  margin-bottom: 10px;
  text-align: center;
}

.newArticle-card-body p {
  font-size: 14px;
  color: #444;
  line-height: 1.5;
  text-align: center;
}

.newArticle-card-footer {
  font-size: 13px;
  color: #888;
  border-top: 1px solid #eee;
  padding: 10px 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.newArticle-content h3 {
  max-width: 800px;
  margin: 60px auto 20px;
  padding: 0 20px;
  font-size: 24px;
  font-weight: bold;
  color: #003366;
}

.newArticle-content ol,
.newArticle-content ul {
  max-width: 800px;
  margin: 20px auto 40px;
  padding: 0 40px;
  font-size: 16px;
  line-height: 1.7;
  color: #3d4459;
  list-style-position: inside;
}

.newArticle-content strong {
  font-weight: 700;
  color: #003366;
}

.newArticle-content h2 {
  max-width: 800px;
  margin: 60px auto 30px;
  padding: 0 20px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  color: #002244;
  text-align: center;
}

.newArticle-content b {
  font-weight: 700;
  color: #1a1a1a;
}

.newArticle-content h1 {
  max-width: 900px;
  margin: 100px auto 40px;
  padding: 0 20px;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.3;
  color: #001933;
  text-align: center;
}

.newArticle-content br {
  display: block;
  margin-bottom: 10px;
  content: "";
}

/* TITULAR CON CLASE PERSONALIZADA */
.newArticle-content h2.cmsmasters_post_title {
  max-width: 900px;
  margin: 100px auto 40px;
  padding: 0 20px;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.3;
  color: #001933;
  text-align: center;
}

/* SUBSECCIONES SECUNDARIAS (h4) */
.newArticle-content h4 {
  max-width: 800px;
  margin: 50px auto 20px;
  padding: 0 20px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: #003366;
}

.newArticle-content ol li {
  margin-bottom: 20px;
}

.newArticle-content u {
  text-decoration: underline;
  font-weight: 600;
}

.newArticle-content p strong {
  font-weight: 700;
  color: #003366;
}

.newArticle-content p b li{
  font-weight: 700;
  color: #003366;
}
.newArticle-content{
  position: relative;
  overflow-x: hidden;  
}

.newArticle-content .newArticle-table-wrap{
  width: min(100%, 1000px);  
  margin: 1.25rem 1rem;       
  box-sizing: border-box;
  border-radius: 16px;
  padding: 14px;
  overflow-x: auto;           
  -webkit-overflow-scrolling: touch;
}

.newArticle-content .newArticle-table-wrap > table{
  width: 100%;
  max-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
}

.newArticle-content .newArticle-table-wrap > table{
  width: 100%;
  max-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
  table-layout: auto;      
}

@media (max-width: 768px){
  .newArticle-content .newArticle-table-wrap{
      margin: 1.25rem 0;       
  }
}
@media (min-width: 1024px) {
    .newArticle-content .newArticle-table-wrap {
        margin: 1.25rem 28%;
    }
}

.newArticle-content .newArticle-table-wrap{ align-self: center; }

.newArticle-content .newArticle-table-wrap > table > caption{
  caption-side: top; padding:10px 14px 6px; font-weight:600; color:#0f172a;
}
.newArticle-content .newArticle-table-wrap thead th{
  background:#f8fafc; color:#0f172a; font-weight:700; text-align:left;
  padding:12px 16px; border-bottom:1px solid #e9eef5; white-space:nowrap;
}
.newArticle-content .newArticle-table-wrap tbody td{
  padding:12px 16px; border-bottom:1px solid #eef2f7; color:#0f172a;
}
.newArticle-content .newArticle-table-wrap tbody tr:nth-child(even){ background:#fbfdff; }
.newArticle-content .newArticle-table-wrap tbody tr:hover{ background:#eef6ff; }
.newArticle-content .newArticle-table-wrap thead tr th:first-child{ border-top-left-radius:12px; }
.newArticle-content .newArticle-table-wrap thead tr th:last-child{ border-top-right-radius:12px; }
.newArticle-content .newArticle-table-wrap tbody tr:last-child td:first-child{ border-bottom-left-radius:12px; }
.newArticle-content .newArticle-table-wrap tbody tr:last-child td:last-child{ border-bottom-right-radius:12px; }
.newArticle-table-notes{ font-size:.9rem; color:#334155; margin-top:.5rem; }
.newArticle-content .newArticle-table-wrap thead th,
.newArticle-content .newArticle-table-wrap tbody td {
    text-align: center;
}

@media (max-width: 1024px) {
  .newArticle-title {
    font-size: 36px;
  }

  .newArticle-icons-wrapper {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  .newArticle-nav {
    margin: 60px auto;
    padding: 20px;
    flex-direction: column;
    align-items: center;
  }

  .newArticle-nav a {
    width: 100%;
  }

  .newArticle-related {
    margin: 60px auto;
    padding: 0 20px;
  }

  .newArticle-card {
    width: 100%;
    margin-left: 0;
  }

  .newArticle-cards {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .newArticle-title {
    font-size: 30px;
  }

  .newArticle-meta {
    font-size: 14px;
  }

  .newArticle-related-title {
    font-size: 20px;
  }

  .newArticle-card-body h3 {
    font-size: 16px;
  }

  .newArticle-card-body p {
    font-size: 13px;
  }

  .newArticle-nav span {
    font-size: 12px;
  }

  .newArticle-link-content p {
    font-size: 16px;
  }

  .newArticle-content h1,
  .newArticle-content h2,
  .newArticle-content h3 {
    font-size: 22px;
  }

  .newArticle-icons-wrapper {
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .newArticle-hero {
    padding: 120px 15px 80px;
    clip-path: none;
  }

  .newArticle-title {
    font-size: 26px;
  }

  .newArticle-image-wrapper {
    max-width: 90%;
  }

  .newArticle-content p,
  .newArticle-content ol,
  .newArticle-content ul {
    padding: 0 15px;
    font-size: 15px;
  }

  .newArticle-card {
    width: 100%;
  }

  .newArticle-card-body h3,
  .newArticle-card-body p {
    text-align: left;
  }

  .newArticle-nav {
    margin: 40px auto;
  }

  .newArticle-nav a {
    font-size: 14px;
  }

  .arrow-icon {
    width: 16px;
    height: 16px;
  }
}
