/* ================================================================
   Academic Resources — UDABot (node template)
   Estilos para node--academic_resources.html.twig
   ================================================================ */

/* ── Página contenedor ─────────────────────────────────────────── */
.ar-page {
  background: #ffffff;
}

/* ── Base de secciones ─────────────────────────────────────────── */
.ar-section {
  padding: 5rem 0;
}

/* ── Tipografía compartida ─────────────────────────────────────── */
.ar-heading {
  font-family: 'Google Sans Flex', Arial, Helvetica, sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 500;
  line-height: 1.2;
  color: #0d1b2a;
  margin-bottom: 1.5rem;
}

.ar-body {
  font-family: 'Google Sans Flex', Arial, Helvetica, sans-serif;
  font-size: 1.2rem;
  font-weight: 100;
  line-height: 1.8;
  color: #000000;
}

.ar-body p {
  margin-bottom: 0.85rem;
}

/* ================================================================
   Sección 1 · Documentos descargables
   ================================================================ */
.ar-section--docs {
  background: #ffffff;
}

/* Grid de tarjetas */
.ar-docs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin-top: 0.25rem;
}

/* Tarjeta individual */
.ar-doc-card {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 0.65rem;
  flex: 1 1 140px;
  max-width: 175px;
}

/* Miniatura del documento */
.ar-doc-thumbnail {
  width: 100%;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  overflow: hidden;
  background: #f8f9fa;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ar-doc-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ar-doc-label {
  font-family: 'Google Sans Flex', Arial, Helvetica, sans-serif;
  font-size: 0.98rem;
  font-weight: 400;
  text-align: left;
  color: #333333;
  margin: 0;
  line-height: 1.8;
  width: 100%;
}

.ar-doc-btn {
  font-size: 0.85rem;
  padding: 0.4rem 1.3rem;
}

/* ================================================================
   Sección 2 · Materia optativa (banner)
   ================================================================ */
.ar-section--banner {
  background-color: #0078bd;
  position: relative;
}

.ar-banner-title {
  font-family: 'Google Sans Flex', Arial, Helvetica, sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 500;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 0;
}

.ar-banner-body {
  font-family: 'Google Sans Flex', Arial, Helvetica, sans-serif;
  font-size: 1.2rem;
  font-weight: 100;
  line-height: 1.2;
  color: #ffffff;
  column-count: 2;
  column-gap: 2.5rem;
}

.ar-banner-body p {
  margin-bottom: 0.8rem;
}

/* ================================================================
   Sección 3 · Papers y links de estudiantes
   ================================================================ */
.ar-section--papers {
  background: #ffffff;
}

/* Fila de portadas de papers */
.ar-papers-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
  align-items: flex-start;
}

.ar-paper-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
  flex: 1 1 110px;
}

.ar-paper-cover-wrap {
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  aspect-ratio: 3 / 4;
}

.ar-paper-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ar-paper-btn {
  font-size: 0.85rem;
  padding: 0.4rem 1.3rem;
}

/* Imagen robot decorativa */
.ar-robot-col {
  align-items: flex-end;
  justify-content: center;
}

.ar-robot-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Lista de links de trabajos de estudiantes */
.ar-links-list {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ar-links-item {

  padding: 0.65rem 0;
}

.ar-links-item:first-child {
  padding-top: 0;
}

.ar-links-item:last-child {
  border-bottom: none;
}

.ar-link {
  font-family: 'Google Sans Flex', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #000000;
  text-decoration: none;
  line-height: 1.45;
  display: block;
  transition: color 0.2s ease;
}

.ar-link:hover {
  color: #004f80;
  text-decoration: underline;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .ar-section {
    padding: 3.5rem 0;
  }

  .ar-banner-body {
    column-count: 1;
  }

  .ar-docs-grid {
    justify-content: center;
  }

  .ar-papers-row {
    justify-content: center;
  }

  .ar-banner-title {
    margin-bottom: 1rem;
  }
}

@media (max-width: 575.98px) {
  .ar-section {
    padding: 2.5rem 0;
  }

  .ar-heading {
    font-size: 1.25rem;
  }

  .ar-doc-card,
  .ar-paper-card {
    max-width: 145px;
  }
}
