/**
 * Dvtnews Public Styles
 */

/* ============================================================
   SINGLE NEWS LAYOUT
   ============================================================ */
.dvtnews-single {
  padding: 40px 0;
  overflow-x: hidden;
}

.dvtnews-container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.dvtnews-content img,
.dvtnews-content iframe,
.dvtnews-content figure,
.dvtnews-content table {
  max-width: 100%;
  height: auto;
}

.dvtnews-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.dvtnews-main {
  flex: 1;
  min-width: 0;
}

.dvtnews-toc-left .dvtnews-toc {
  order: -1;
}

.dvtnews-toc-none {
  justify-content: center;
}

.dvtnews-toc-none .dvtnews-main {
  max-width: 780px;
  flex: none;
}

/* ============================================================
   ARTICLE STYLES
   ============================================================ */
.dvtnews-header {
  margin-bottom: 24px;
}

.dvtnews-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.dvtnews-category {
  display: inline-block;
  background: var(--dvtnews-accent, #B6D656);
  color: #042A36;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dvtnews-title {
  font-size: 36px;
  font-weight: 800;
  color: #042A36;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  font-family: "Montserrat", Sans-serif;
}

.dvtnews-meta {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.dvtnews-featured-image {
  margin-bottom: 28px;
  border-radius: 8px;
  overflow: hidden;
}

.dvtnews-thumb {
  width: 100%;
  height: auto;
  display: block;
}

.dvtnews-content {
  font-size: 17px;
  line-height: 1.7;
  color: #333;
}

.dvtnews-content h2 {
  font-size: 28px;
  font-weight: 700;
  color: #042A36;
  margin: 36px 0 16px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-family: "Montserrat", Sans-serif;
}

.dvtnews-content h3 {
  font-size: 22px;
  font-weight: 600;
  color: #042A36;
  margin: 28px 0 12px;
  line-height: 1.3;
  font-family: "Montserrat", Sans-serif;
}

.dvtnews-content h4 {
  font-size: 18px;
  font-weight: 600;
  color: #042A36;
  margin: 24px 0 10px;
  line-height: 1.4;
  font-family: "Montserrat", Sans-serif;
}

.dvtnews-content p {
  margin-bottom: 18px;
}

.dvtnews-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 24px 0;
}

.dvtnews-content a {
  color: var(--dvtnews-accent, #B6D656);
  text-decoration: underline;
}

/* ============================================================
   TABLE OF CONTENTS (ASIDE)
   ============================================================ */
.dvtnews-toc {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 20px;
}

.dvtnews-toc-inner {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
}

.dvtnews-toc-title {
  font-size: 16px;
  font-weight: 700;
  color: #042A36;
  margin: 0 0 16px;
  font-family: "Montserrat", Sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dvtnews-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dvtnews-toc-item {
  margin-bottom: 4px;
}

.dvtnews-toc-item a {
  display: block;
  padding: 6px 10px;
  font-size: 14px;
  color: #555;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
  line-height: 1.4;
  border-left: 3px solid transparent;
}

.dvtnews-toc-item a:hover {
  color: #042A36;
  background: #e9ecef;
  border-left-color: var(--dvtnews-accent, #B6D656);
}

.dvtnews-toc-item a.active {
  color: #042A36;
  background: #e9ecef;
  border-left-color: var(--dvtnews-accent, #B6D656);
  font-weight: 600;
}

.dvtnews-toc-level-3 a {
  padding-left: 24px;
  font-size: 13px;
}

.dvtnews-toc-level-4 a {
  padding-left: 38px;
  font-size: 12px;
}

/* TOC toggle button (mobile) */
.dvtnews-toc-toggle {
  display: none;
  width: 100%;
  background: none;
  border: none;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 700;
  color: #042A36;
  cursor: pointer;
  font-family: "Montserrat", Sans-serif;
  text-align: left;
  align-items: center;
  justify-content: space-between;
}

.dvtnews-toc-toggle-icon {
  width: 12px;
  height: 12px;
  display: inline-block;
  border-right: 2px solid #042A36;
  border-bottom: 2px solid #042A36;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  margin-left: 8px;
}

.dvtnews-toc-toggle[aria-expanded="false"] .dvtnews-toc-toggle-icon {
  transform: rotate(-45deg);
}

/* ============================================================
   CALL TO ACTION
   ============================================================ */
.dvtnews-cta {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 2px solid #e9ecef;
  text-align: center;
}

.dvtnews-cta-button {
  display: inline-block;
  background: var(--dvtnews-accent, #B6D656);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: "Montserrat", Sans-serif;
  letter-spacing: 0.5px;
}

.dvtnews-cta-button:hover {
  background: var(--dvtnews-accent, #B6D656);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  filter: brightness(0.88);
}

/* ============================================================
   SUBTITULO & META BAR
   ============================================================ */
.dvtnews-subtitulo {
  font-size: 18px;
  font-weight: 400;
  color: #666;
  line-height: 1.4;
  margin: -8px 0 16px;
  font-family: "Montserrat", Sans-serif;
}

.dvtnews-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: #666;
  font-weight: 500;
  align-items: center;
}

.dvtnews-meta-fuente {
  color: #888;
  font-style: italic;
}

/* ============================================================
   VIDEO EMBED
   ============================================================ */
.dvtnews-video-embed {
  margin-bottom: 28px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.dvtnews-video-embed iframe,
.dvtnews-video-embed embed,
.dvtnews-video-embed object {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

/* ============================================================
   FOOTER META (social + curso)
   ============================================================ */
.dvtnews-footer-meta {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e9ecef;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.dvtnews-social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.dvtnews-social-label {
  font-size: 14px;
  font-weight: 600;
  color: #042A36;
}

.dvtnews-social-icons {
  display: flex;
  gap: 8px;
}

.dvtnews-social-icon {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.dvtnews-social-icon:hover {
  transform: translateY(-1px);
}

.dvtnews-social-instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
}

.dvtnews-social-facebook {
  background: #1877F2;
  color: #fff;
}

.dvtnews-curso-button {
  display: inline-block;
  background: #042A36;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: "Montserrat", Sans-serif;
}

.dvtnews-curso-button:hover {
  background: #0a3d4f;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(4,42,54,0.2);
}

/* ============================================================
   SHORTCODE CARD ENHANCEMENTS
   ============================================================ */
.card-secundario--subtitulo {
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
  line-height: 1.3;
}

.dvtnews-card-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.dvtnews-card-fuente {
  font-size: 11px;
  color: #888;
  font-style: italic;
}

.dvtnews-card-video-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
}

.card-secundario--image {
  position: relative;
}

/* Category shortcode enhancements */
.dvtnews-cat-img-wrap {
  position: relative;
}

.dvtnews-cat-subtitulo {
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  font-style: italic;
}

.dvtnews-cat-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
}

.dvtnews-cat-fuente {
  color: rgba(255,255,255,0.6);
  font-style: italic;
}

.dvtnews-cat-curso-link {
  display: inline-block;
  margin-left: 10px;
  padding: 6px 16px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 4px;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.2s;
}

.dvtnews-cat-curso-link:hover {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.dvtnews-btt {
  position: fixed;
  bottom: 30px;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background-color: var(--dvtnews-accent, #B6D656);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.dvtnews-btt.dvtnews-btt-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dvtnews-btt:hover {
  filter: brightness(0.88);
}

.dvtnews-btt-right {
  bottom: 6rem;
  right: 30px;
  left: auto;
}

.dvtnews-btt-left {
  bottom: 6rem;
  left: 30px;
  right: auto;
}

.dvtnews-btt-center {
  bottom: 6rem;
  left: 50%;
  right: auto;
  transform: translateX(-50%) translateY(12px);
}

.dvtnews-btt-center.dvtnews-btt-visible {
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   WHATSAPP BANNER
   ============================================================ */
.dvtnews-wapp-banner {
  position: fixed;
  left: 0;
  top: 50%;
  z-index: 998;
  transform: translateY(-50%);
}

.dvtnews-wapp-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  padding: 14px 8px;
  border-radius: 0 8px 8px 0;
  font-size: 11px;
  font-weight: 600;
  font-family: "Montserrat", Sans-serif;
  line-height: 1.2;
  transition: background 0.3s ease, padding 0.3s ease;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.15);
}

.dvtnews-wapp-link:hover {
  background: #1ebe57;
  color: #fff;
}

.dvtnews-wapp-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 1px;
  font-size: 10px;
  text-transform: uppercase;
}

@media (max-width: 575px) {
  .dvtnews-wapp-link {
    padding: 10px 6px;
    font-size: 10px;
  }

  .dvtnews-wapp-text {
    font-size: 9px;
  }
}

/* ============================================================
   RECENT POSTS
   ============================================================ */
.dvtnews-recent {
  background: #f8f9fa;
  padding: 48px 0;
  border-top: 1px solid #e9ecef;
  margin-top: 48px;
}

.dvtnews-recent-title {
  font-size: 24px;
  font-weight: 800;
  color: #042A36;
  font-family: "Montserrat", Sans-serif;
  margin: 0 0 28px;
  letter-spacing: -0.02em;
}

.dvtnews-recent-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.dvtnews-recent-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.dvtnews-recent-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

.dvtnews-recent-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.dvtnews-recent-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dvtnews-recent-body {
  padding: 14px 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dvtnews-recent-heading {
  font-size: 15px;
  font-weight: 700;
  color: #042A36;
  font-family: "Montserrat", Sans-serif;
  margin: 0;
  line-height: 1.35;
}

.dvtnews-recent-date {
  font-size: 12px;
  color: #888;
  font-weight: 500;
}

@media (max-width: 1199px) {
  .dvtnews-recent-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .dvtnews-recent-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .dvtnews-recent-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1199px) {
  .dvtnews-toc {
    width: 240px;
  }
}

@media (max-width: 991px) {
  .dvtnews-layout {
    flex-direction: column;
    gap: 24px;
  }

  .dvtnews-layout.dvtnews-toc-left {
    flex-direction: column;
  }

  .dvtnews-main {
    width: 100%;
    max-width: 100%;
  }

  .dvtnews-toc-left .dvtnews-toc {
    order: -1;
  }

  .dvtnews-layout.dvtnews-toc-none {
    justify-content: stretch;
  }

  .dvtnews-toc-none .dvtnews-main {
    max-width: none;
    flex: 1;
  }

  .dvtnews-toc {
    width: 100%;
    max-width: 100%;
    position: static;
    order: -1;
    box-sizing: border-box;
  }

  .dvtnews-toc-inner {
    box-sizing: border-box;
  }

  .dvtnews-toc-toggle {
    display: flex;
  }

  .dvtnews-toc-title {
    display: none;
  }

  .dvtnews-toc-content {
    display: block;
  }

  .dvtnews-toc-toggle[aria-expanded="false"] + .dvtnews-toc-content {
    display: none;
  }

  .dvtnews-title {
    font-size: 28px;
  }

  .dvtnews-subtitulo {
    font-size: 16px;
  }

  .dvtnews-content h2 {
    font-size: 24px;
  }

  .dvtnews-content h3 {
    font-size: 20px;
  }

  .dvtnews-footer-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 575px) {
  .dvtnews-single {
    padding: 20px 0;
  }

  .dvtnews-container {
    padding: 0 16px;
  }

  .dvtnews-title {
    font-size: 24px;
  }

  .dvtnews-content {
    font-size: 16px;
  }

  .dvtnews-content h2 {
    font-size: 22px;
  }

  .dvtnews-content h3 {
    font-size: 18px;
  }

  .dvtnews-cta-button {
    width: 100%;
    text-align: center;
  }
}