/* =========================================
   VOICES AT KTSA + BLOGS - Layout 2 columnas
   Video izquierda | Blogs derecha
   ========================================= */

/* =========================================
   KTSA BLOGS PAGE - Estilos para página de blog
   ========================================= */

/* Hero Section */
.blog-hero {
  width: 100%;
  height: 280px;
  background: url('../images/images/abstract_heroimage.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  position: relative;
  margin-top: 0;
  min-width: 320px;
}

.blog-hero-overlay {
  text-align: left;
  max-width: 1200px;
  width: 100%;
  padding: 0 60px;
  margin: 0 auto;
  color: #ffffff;
}

.blog-hero-title {
  font-family: "KPMG Sans Bold", Arial, sans-serif;
  font-size: 48px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.blog-hero-subtitle {
  font-size: clamp(14px, 1.3vw, 18px);
  line-height: 1.7;
  margin: 0;
  font-weight: 400;
  opacity: 0.95;
  max-width: min(700px, 85%);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.01em;
}

.blog-hero-subtitle br {
  display: block;
}

/* Blog Container - Desktop (por defecto) */
.blog-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 60px;
}

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 60px;
  align-items: start;
}

/* Main Article */
.blog-main {
  background: #ffffff;
  border-radius: 12px;
  padding: 48px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.blog-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--brand-blue);
  margin: 0 0 32px;
  line-height: 1.3;
}

.blog-content {
  color: var(--text);
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.8;
}

.blog-featured-image {
  width: 100%;
  height: auto;
  border-radius: 0;
  margin-bottom: 32px;
  object-fit: cover;
}

.blog-content p {
  margin: 0 0 24px;
}

/* Author Info */
.blog-author {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  margin-top: 48px;
  padding: 32px 28px;
  border: 3px solid #ffffff;
  background: #0047AB;
  border-radius: 0;
  box-shadow: 0 4px 12px rgba(0, 71, 171, 0.15), inset 0 0 0 8px #0047AB, inset 0 0 0 9px #ffffff;
}

.author-photo-circle {
  width: 100px;
  height: 100px;
  background: #ffffff;
  border-radius: 50%;
  flex-shrink: 0;
  border: 3px solid #ffffff;
  object-fit: cover;
  object-position: center;
}

.author-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #ffffff;
}

.author-name {
  font-family: "KPMG Sans Bold", Arial, sans-serif;
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.author-title {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
  opacity: 0.95;
}

.author-company {
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 12px 0;
  line-height: 1.3;
  opacity: 0.9;
}

.author-social {
  display: flex;
  gap: 12px;
  align-items: center;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 2px solid #ffffff;
  border-radius: 50%;
  color: #ffffff;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  background: #ffffff;
  color: #0047AB;
  transform: scale(1.1);
}

.social-icon svg {
  stroke: currentColor;
}

.author-label {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 600;
}

.author-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #0047AB;
  border-radius: 50%;
  color: #ffffff;
  transition: all 0.3s ease;
  text-decoration: none;
}

.author-linkedin:hover {
  background: #0077b5;
  transform: scale(1.1);
}

/* Sidebar - Desktop */
.blog-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.sidebar-title {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--brand-blue);
  margin: 0 0 20px;
}

/* Publication Date */
.publish-date {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 600;
}

.date-icon {
  color: var(--brand-blue);
  flex-shrink: 0;
}

/* Share Buttons */
.share-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.share-btn {
  appearance: none;
  border: none;
  background: #0047AB;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  max-width: 48px;
  max-height: 48px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #ffffff;
  padding: 0;
  overflow: hidden;
}

.share-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 71, 171, 0.3);
  background: #003380;
}

.share-linkedin:hover {
  background: #0077b5;
}

.share-twitter:hover {
  background: #1da1f2;
}

.share-facebook:hover {
  background: #1877f2;
}

.share-email:hover {
  background: #003380;
}

/* Copy Link Button */
.share-copy {
  position: relative;
}

.share-copy:hover {
  background: #FD349C;
}

.copy-feedback {
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  background: #10b981;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.share-copy.copied .copy-feedback {
  opacity: 1;
}

/* Related Articles */
.related-articles {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.related-article {
  display: flex;
  gap: 12px;
  text-decoration: none;
  padding: 12px;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.related-article:hover {
  background: var(--gray-50);
}

.related-thumbnail {
  width: 160px;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  display: block;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.related-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.related-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-date {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Dropdown menu for navigation */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 0 0 8px 8px;
  z-index: 1000;
  padding: 8px 0;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  display: block;
  padding: 12px 20px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s ease;
  font-size: 14px;
}

.dropdown-content a:hover {
  background: var(--gray-50);
  color: var(--brand-blue);
}

/* Responsive - Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  .blog-hero {
    height: 240px;
  }
  
  .blog-hero-overlay {
    padding: 0 40px;
  }
  
  .blog-hero-title {
    font-size: 40px;
  }
  
  .blog-hero-subtitle {
    max-width: min(700px, 90%);
  }
  
  .blog-container {
    padding: 60px 40px;
  }
  
  .blog-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .blog-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .sidebar-card {
    padding: 24px;
  }
  
  .blog-main {
    padding: 36px;
  }
  
  .blog-title {
    font-size: 32px;
  }
  
  .blog-content {
    font-size: 17px;
  }
}

/* Responsive - Móvil (hasta 768px) */
@media (max-width: 768px) {
  .blog-hero {
    height: 200px;
    margin-top: 50px;
  }
  
  .blog-hero-overlay {
    padding: 0 24px;
  }
  
  .blog-hero-title {
    font-size: 32px;
    margin-bottom: 8px;
  }
  
  .blog-hero-subtitle {
    max-width: 90%;
    line-height: 1.6;
  }

  .blog-hero-subtitle br {
    display: none;
  }
  
  .blog-container {
    padding: 40px 24px;
  }
  
  .blog-sidebar {
    grid-template-columns: 1fr;
  }
  
  .blog-main {
    padding: 28px 20px;
  }
  
  .blog-title {
    font-size: 26px;
    margin-bottom: 24px;
  }
  
  .blog-content {
    font-size: 16px;
    line-height: 1.7;
  }
  
  .blog-featured-image {
    margin-bottom: 24px;
  }
  
  .sidebar-card {
    padding: 20px;
  }
  
  .sidebar-title {
    font-size: 22px;
    margin-bottom: 16px;
  }
  
  .share-buttons {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  
  .share-btn {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    aspect-ratio: 1 / 1 !important;
    flex-shrink: 0 !important;
  }
  
  .related-thumbnail {
    width: 130px;
    height: 90px;
  }
  
  .related-title {
    font-size: 15px;
  }

  /* Author card responsive - Tablet */
  .blog-author {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
    gap: 20px;
  }

  .author-photo-circle {
    width: 90px;
    height: 90px;
  }

  .author-details {
    align-items: center;
  }

  .author-name {
    font-size: 20px;
  }

  .author-title {
    font-size: 15px;
  }

  .author-company {
    font-size: 14px;
  }

  .author-social {
    justify-content: center;
  }

  .social-icon {
    width: 38px;
    height: 38px;
  }

  .social-icon svg {
    width: 16px;
    height: 16px;
  }
}

/* Responsive - Móvil pequeño (hasta 480px) */
@media (max-width: 480px) {
  .blog-hero {
    height: 180px;
  }
  
  .blog-hero-overlay {
    padding: 0 20px;
  }
  
  .blog-hero-title {
    font-size: 28px;
  }
  
  .blog-hero-subtitle {
    max-width: 95%;
  }

  .blog-hero-subtitle br {
    display: none;
  }
  
  .blog-container {
    padding: 32px 16px;
  }
  
  .blog-main {
    padding: 24px 16px;
  }
  
  .blog-title {
    font-size: 24px;
  }
  
  .blog-content {
    font-size: 15px;
  }
  
  .sidebar-card {
    padding: 16px;
  }
  
  .related-thumbnail {
    width: 120px;
    height: 85px;
  }

  .sidebar-title {
    font-size: 20px;
  }

  .related-title {
    font-size: 14px;
  }

  /* Author card responsive - Móvil */
  .blog-author {
    padding: 20px 16px;
    gap: 16px;
  }

  .author-photo-circle {
    width: 80px;
    height: 80px;
    border: 2px solid #ffffff;
  }

  .author-name {
    font-size: 18px;
  }

  .author-title {
    font-size: 14px;
  }

  .author-company {
    font-size: 13px;
    margin-bottom: 8px;
  }

  .author-social {
    gap: 10px;
    flex-wrap: wrap;
  }

  .social-icon {
    width: 36px;
    height: 36px;
  }

  .social-icon svg {
    width: 15px;
    height: 15px;
  }
}

.ktsa-voices-blogs {
  width: 100%;
  background: #ffffff;
  padding: 48px 0 60px;
}

.voices-blogs-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Encabezado */
.voices-header {
  text-align: left;
  margin-bottom: 32px;
}

.voices-title {
  font-family: 'KPMG Sans Bold', Arial, Helvetica, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 12px;
  font-size: clamp(36px, 6.5vw, 56px);
}

.t-blue {
  color: #1f5dbb;
}

.t-pink {
  color: #ff4fa3;
}

.voices-subtitle {
  color: #4b4b4b;
  font-size: 16px;
  margin: 0;
  max-width: 800px;
}

/* Grid principal: 2 columnas */
.voices-blogs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
  margin-top: 32px;
}

/* Columna izquierda: Video */
.voices-video-column {
  background: #f6f7fa;
  border-radius: 0;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.column-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px;
  color: #1f5dbb;
  margin: 0 0 12px;
}

.voices-video {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 0;
  background: #e9edf3;
  margin-bottom: 12px;
}

.voices-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
}

.video-description {
  color: #4b4b4b;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* Columna derecha: Blogs */
.blogs-column {
  background: #f6f7fa;
  border-radius: 0;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.blogs-description {
  color: #4b4b4b;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 20px;
}

/* Carrusel de blogs compacto */
/* Carrusel de blogs */
.blogs-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.blogs-carousel {
  flex: 1;
  overflow: hidden;
}

.blogs-track {
  display: flex;
  gap: 16px;
  transition: transform 0.4s ease;
}

/* Tiles de blog */
.blog-tile {
  background: #ffffff;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 340px;
  flex-shrink: 0;
  cursor: pointer;
  width: calc((100% - 16px) / 2);
  min-width: calc((100% - 16px) / 2);
}

.blog-tile:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.blog-tile-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
  pointer-events: none;
  display: block;
}

.blog-tile-content {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex: 1;
  background: #0047AB;
  text-align: center;
}

.blog-tile-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.4;
  width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-tile-date {
  font-size: 12px;
  color: #ffffff;
  font-weight: 500;
  margin: 0;
  margin-top: auto;
  opacity: 0.9;
}

.blog-tile-link {
  color: #ffffff !important;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  margin-top: 4px;
}

.blog-tile-link svg {
  stroke: #ffffff !important;
  vertical-align: middle;
  margin-left: 4px;
}

.blog-tile-link:hover {
  text-decoration: underline;
}

/* Botones de navegación */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #1f5dbb;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  z-index: 15;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.carousel-btn span {
  font-size: 20px;
  color: #1f5dbb;
  font-weight: 700;
}

.carousel-btn svg {
  width: 24px;
  height: 24px;
  stroke: #1f5dbb;
  stroke-width: 2;
  fill: none;
}

.carousel-btn:hover {
  background: #1f5dbb;
  transform: translateY(-50%) scale(1.1);
  border-color: #1f5dbb;
  box-shadow: 0 4px 12px rgba(31, 93, 187, 0.3);
}

.carousel-btn:hover span {
  color: #ffffff;
}

.carousel-btn:hover svg {
  stroke: #ffffff;
}

.carousel-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.carousel-btn:disabled:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-50%) scale(1);
}

.carousel-prev {
  left: -24px;
}

.carousel-next {
  right: -24px;
}

/* Duplicate .blog-tile-link block removed — styles defined at L912 */

/* Responsive para carrusel */
@media (max-width: 1024px) {
  .carousel-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }
  
  .carousel-btn svg {
    width: 20px;
    height: 20px;
  }
  
  .carousel-prev {
    left: -20px;
  }
  
  .carousel-next {
    right: -20px;
  }
}

@media (max-width: 768px) {
  .blog-tile {
    min-width: 100%;
    height: 320px;
  }
  
  .blog-tile-image {
    height: 180px;
  }
  
  .blog-tile-title {
    font-size: 14px;
  }
  
  .carousel-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }
  
  .carousel-btn svg {
    width: 18px;
    height: 18px;
  }
  
  .carousel-prev {
    left: -10px;
  }
  
  .carousel-next {
    right: -10px;
  }
}

@media (max-width: 480px) {
  .carousel-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
  }
  
  .carousel-btn svg {
    width: 16px;
    height: 16px;
  }
  
  .carousel-prev {
    left: -5px;
  }
  
  .carousel-next {
    right: -5px;
  }
  
  .blogs-carousel-wrapper {
    padding: 0 10px;
  }
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 1024px) {
  .voices-header {
    text-align: center !important;
  }

  .voices-subtitle {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .voices-blogs-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }

  /* Forzar visibilidad de títulos de columna en mobile */
  .voices-video-column .column-title,
  .testimonials-column .column-title {
    display: block !important;
    text-align: center !important;
    width: 100%;
  }

  .voices-video-column,
  .blogs-column {
    padding: 20px;
    align-items: stretch;
  }

  .voices-video-column .video-description,
  .voices-video-column .video-description-mobile {
    text-align: center;
    width: 100%;
  }

  .voices-video {
    width: 100%;
  }

  .testimonials-column {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100%;
  }

  .testimonials-column .column-title,
  .testimonials-column .testimonials-description {
    text-align: center !important;
    width: 100%;
  }

  .testimonials-carousel-wrapper {
    width: 100% !important;
    box-sizing: border-box;
    margin: 0 auto !important;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .ktsa-voices-blogs {
    padding: 32px 0 40px;
  }

  .voices-blogs-wrap {
    padding: 0 16px;
  }

  .voices-header {
    text-align: center !important;
    margin-bottom: 24px;
  }

  .voices-subtitle {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .voices-blogs-grid {
    gap: 20px;
  }

  /* Forzar visibilidad de títulos de columna en mobile */
  .voices-video-column .column-title,
  .testimonials-column .column-title {
    display: block !important;
    text-align: center !important;
    width: 100%;
  }

  .voices-video-column,
  .blogs-column {
    padding: 16px;
    align-items: stretch;
  }

  .voices-video {
    width: 100%;
  }

  .testimonials-column {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100%;
  }

  .testimonials-column .column-title,
  .testimonials-column .testimonials-description {
    text-align: center !important;
    width: 100%;
  }

  .testimonials-carousel-wrapper {
    width: 100% !important;
    box-sizing: border-box;
    margin: 0 auto !important;
  }

  .column-title {
    font-size: 20px;
    margin-bottom: 12px;
  }
}

/* Landscape mobile */
@media (max-width: 896px) and (orientation: landscape) {
  .voices-video {
    padding-bottom: 40%;
  }
}
