/* ────────────────────────────────────────────────────────────────────────
 * MENTULABS BLOG & RECURSOS CSS
 * ──────────────────────────────────────────────────────────────────────── */

/* --- Recursos Page --- */
.recursos-hero {
  background-color: var(--ml-primary-cream);
  border-bottom: 1px solid rgba(0, 42, 40, 0.07);
}

.recursos-hero-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 56px 120px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

@media (max-width: 768px) {
  .recursos-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 20px;
    gap: 24px;
  }
}

.featured-section {
  background-color: var(--ml-primary-dark);
  padding: 64px 120px;
}

@media (max-width: 768px) {
  .featured-section {
    padding: 40px 20px;
  }
}

.featured-layout {
  display: flex;
  gap: 28px;
  align-items: stretch;
}

@media (max-width: 768px) {
  .featured-layout {
    flex-direction: column;
    gap: 20px;
  }
}

.featured-hero-card {
  position: relative;
  flex: 65;
  border-radius: 24px;
  overflow: hidden;
  min-height: 480px;
}

.featured-hero-card img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.featured-hero-card:hover img.bg {
  transform: scale(1.03);
}

.featured-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--ml-primary-dark), rgba(0, 42, 40, 0.5), transparent);
}

.featured-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  gap: 16px;
}

.featured-hero-content h2 {
  font-family: 'Work_Sans:Bold', sans-serif;
  font-weight: bold;
  color: var(--ml-primary-cream);
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.3px;
  max-width: 480px;
  margin: 0;
}

@media (max-width: 768px) {
  .featured-hero-content {
    padding: 24px;
  }
  .featured-hero-content h2 {
    font-size: 22px;
  }
  .featured-hero-card {
    min-height: 380px;
  }
}

.thumb-list {
  flex: 35;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.thumb-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background 0.3s;
  text-decoration: none;
}

.thumb-card:hover {
  background: rgba(255, 255, 255, 0.12);
}

.thumb-card img {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
}

.thumb-card h3 {
  font-family: 'Work_Sans:SemiBold', sans-serif;
  font-weight: 600;
  color: var(--ml-primary-cream);
  font-size: 14px;
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Category Chips */
.cat-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  font-family: 'Work_Sans:SemiBold', sans-serif;
  font-weight: 600;
  padding: 4px 12px;
  font-size: 12px;
  width: fit-content;
}

.cat-chip.small {
  padding: 3px 8px;
  font-size: 11px;
}

.cat-edtech { background: #e8f0fb; color: #2773bf; }
.cat-evidencia { background: #e6f2e8; color: #246c2d; }
.cat-politica { background: #f0eaf9; color: #673e91; }
.cat-etica { background: #fff3e8; color: #b36000; }
.cat-innovacion { background: #e8f6f5; color: #00635c; }

/* Article Grid */
.article-grid-section {
  background: var(--ml-primary-cream);
  padding: 72px 120px;
}

@media (max-width: 768px) {
  .article-grid-section {
    padding: 40px 20px;
  }
}

.article-filter-row {
  margin-bottom: 40px;
}

.article-filter-select {
  padding: 10px 40px 10px 16px;
  border-radius: 9999px;
  border: 1px solid rgba(0, 42, 40, 0.2);
  background-color: white;
  font-family: 'Work_Sans:SemiBold', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--ml-primary-dark);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23002a28' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
}

.article-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 42, 40, 0.07);
  box-shadow: 0 2px 12px rgba(0, 42, 40, 0.05);
  transition: box-shadow 0.3s;
  text-decoration: none;
  cursor: pointer;
}

.article-card:hover {
  box-shadow: 0 8px 28px rgba(0, 42, 40, 0.12);
}

.article-card-img {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  overflow: hidden;
}

.article-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.article-card:hover .article-card-img img {
  transform: scale(1.03);
}

.article-card-img .chip-container {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}

.article-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.article-card-body h3 {
  font-family: 'Work_Sans:SemiBold', sans-serif;
  font-weight: 600;
  color: var(--ml-primary-dark);
  font-size: 17px;
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-body p.excerpt {
  font-family: 'Work_Sans:Regular', sans-serif;
  color: var(--ml-primary-dark);
  opacity: 0.7;
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-author-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 42, 40, 0.07);
}

.article-author-row img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.article-author-text p.name {
  font-family: 'Work_Sans:Medium', sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: var(--ml-primary-dark);
  margin: 0 0 2px 0;
}

.article-author-text p.meta {
  font-family: 'Work_Sans:Regular', sans-serif;
  font-size: 11px;
  color: var(--ml-primary-dark);
  opacity: 0.6;
  margin: 0;
}


/* --- Blog Detail Page --- */
.post-layout {
  display: flex;
  max-width: 1440px;
  margin: 0 auto;
  padding: 56px 120px 120px 120px;
  gap: 80px;
  align-items: flex-start;
}

@media (max-width: 1024px) {
  .post-layout {
    flex-direction: column;
    padding: 40px 20px;
    gap: 40px;
  }
}

.post-main {
  flex: 70;
  min-width: 0;
}

.post-sidebar {
  flex: 30;
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (max-width: 1024px) {
  .post-sidebar {
    position: static;
    width: 100%;
  }
}

.post-header {
  margin-bottom: 40px;
}

.post-header h1 {
  font-family: 'Work_Sans:Bold', sans-serif;
  font-weight: bold;
  font-size: 44px;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--ml-primary-dark);
  margin: 20px 0;
}

@media (max-width: 768px) {
  .post-header h1 {
    font-size: 32px;
  }
}

.post-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid rgba(0, 42, 40, 0.07);
  border-bottom: 1px solid rgba(0, 42, 40, 0.07);
  padding: 16px 0;
}

.post-meta-row img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.post-meta-text p.name {
  font-family: 'Work_Sans:SemiBold', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--ml-primary-dark);
  margin: 0 0 2px 0;
}

.post-meta-text p.meta {
  font-family: 'Work_Sans:Regular', sans-serif;
  font-size: 13px;
  color: var(--ml-primary-dark);
  opacity: 0.6;
  margin: 0;
}

.post-hero-image {
  width: 100%;
  height: auto;
  border-radius: 24px;
  margin-bottom: 48px;
}

.post-content {
  font-family: 'Work_Sans:Regular', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ml-primary-dark);
}

.post-content p {
  margin-bottom: 24px;
}

.post-content h2 {
  font-family: 'Work_Sans:Bold', sans-serif;
  font-weight: bold;
  font-size: 28px;
  color: var(--ml-primary-dark);
  margin: 48px 0 20px 0;
}

.post-content h3 {
  font-family: 'Work_Sans:SemiBold', sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--ml-primary-dark);
  margin: 32px 0 16px 0;
}

.post-content img {
  width: 100%;
  border-radius: 16px;
  margin: 32px 0;
}

.post-content ul {
  padding-left: 24px;
  margin-bottom: 24px;
}

.post-content li {
  margin-bottom: 10px;
}

.post-content blockquote {
  border-left: 4px solid var(--ml-primary-orange);
  padding-left: 24px;
  margin: 40px 0;
  font-style: italic;
  font-size: 20px;
  color: rgba(0, 42, 40, 0.85);
}

.toc-card {
  background: white;
  border-radius: 20px;
  border: 1px solid rgba(0, 42, 40, 0.07);
  padding: 24px;
}

.toc-card h3 {
  font-family: 'Work_Sans:SemiBold', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--ml-primary-dark);
  margin: 0 0 16px 0;
}

.toc-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-card li {
  margin-bottom: 12px;
}

.toc-card a {
  text-decoration: none;
  color: rgba(0, 42, 40, 0.6);
  font-size: 14px;
  transition: color 0.2s;
}

.toc-card a:hover {
  color: var(--ml-primary-blue);
}
