/* ==========================================================================
   Oxton Education — Articles (público)
   Cores: azul institucional #2f35d8, fundo #f6f7fb, cards #fff, bordas #e5e7eb
   ========================================================================== */

.articles-page,
.article-single-page { background:#f6f7fb; min-height:60vh; }

.articles-page .container,
.article-single-page .container { max-width:1200px; margin:0 auto; padding:0 24px; width:100%; box-sizing:border-box; }

/* ===== HERO ===== */
.articles-hero {
  position:relative; isolation:isolate; overflow:hidden;
  color:#fff; padding:72px 0 60px;
  background:#1e1f6b url("/assets/images/articles-hero.svg") center/cover no-repeat;
}
.articles-hero::before{
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background:linear-gradient(135deg, rgba(15,23,42,.70) 0%, rgba(30,31,107,.55) 50%, rgba(47,53,216,.50) 100%);
}
.articles-hero > .container{ position:relative; z-index:1; }
.articles-hero .eyebrow{
  display:inline-block;font-size:11px;font-weight:700;letter-spacing:.16em;
  text-transform:uppercase;background:rgba(255,255,255,.14);padding:6px 14px;border-radius:999px;
  color:#dbe1ff;margin-bottom:18px;backdrop-filter:blur(4px);
}
.articles-hero h1{
  font-size:clamp(34px,5vw,52px);font-weight:700;letter-spacing:-.02em;
  margin:0 0 14px;line-height:1.05;color:#ffffff !important;
}
.articles-hero p{font-size:17px;color:#e2e8f0;max-width:680px;line-height:1.6;margin:0;}

/* ===== LAYOUT ===== */
.articles-section { padding:48px 0 80px; }
.articles-layout,
.article-single-layout {
  display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:32px; align-items:start;
}

/* ===== TOOLBAR ===== */
.articles-toolbar{
  display:flex;justify-content:space-between;align-items:center;gap:16px;
  margin-bottom:24px;flex-wrap:wrap;
}
.articles-toolbar h2{font-size:22px;font-weight:700;color:#111827;margin:0;letter-spacing:-.01em;}
.articles-toolbar-count{font-size:13px;color:#6b7280;font-weight:600;background:#fff;border:1px solid #e5e7eb;padding:6px 12px;border-radius:999px}

.articles-filter-chip{
  display:inline-flex;align-items:center;gap:10px;background:#eef0ff;color:#2f35d8;
  padding:8px 14px;border-radius:999px;font-size:13px;font-weight:600;margin-bottom:18px;
  border:1px solid #c6cdff;
}
.articles-filter-chip a{
  color:#2f35d8;text-decoration:none;width:20px;height:20px;border-radius:50%;
  display:inline-flex;align-items:center;justify-content:center;background:#fff;font-size:14px;font-weight:700;
}
.articles-filter-chip a:hover{background:#dc2626;color:#fff}

/* ===== GRID + CARDS ===== */
.articles-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;
}
.articles-grid-related{margin-top:16px}

.article-card{
  background:#fff;border:1px solid #e5e7eb;border-radius:18px;overflow:hidden;
  display:flex;flex-direction:column;transition:border-color .2s ease;
  box-shadow:none;
}
.article-card:hover{border-color:#2f35d8;}

.article-card-cover{
  display:block;aspect-ratio:16/8;background:#eef0f6;overflow:hidden;text-decoration:none;max-height:180px;
}
.article-card-cover img{width:100%;height:100%;object-fit:cover;display:block;}

.article-cover-fallback{
  width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#dbe1ff 0%,#eef0ff 60%,#fff 100%);color:#2f35d8;
}
.article-cover-fallback .fallback-mark{font-size:24px;font-weight:700;letter-spacing:.12em}
.article-cover-fallback .fallback-sub{font-size:10px;font-weight:600;letter-spacing:.18em;color:#6b7280;text-transform:uppercase;margin-top:4px}

.article-card-body{padding:16px 18px;display:flex;flex-direction:column;gap:10px;flex:1}
.article-category{
  display:inline-flex;align-items:center;padding:5px 11px;border-radius:999px;
  background:color-mix(in srgb, var(--cat-color, #2f35d8) 12%, white);
  color:var(--cat-color, #2f35d8);font-size:11.5px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;
  align-self:flex-start;
}
.article-card-title{margin:0;font-size:16.5px;font-weight:700;line-height:1.3;letter-spacing:-.01em;color:#111827}
.article-card-title a{color:inherit;text-decoration:none}
.article-card-title a:hover{color:#2f35d8}
.article-card-excerpt{margin:0;font-size:13px;line-height:1.5;color:#6b7280;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

.article-author{display:flex;align-items:center;gap:10px;margin-top:auto;padding-top:12px;border-top:1px solid #f1f3f9}
.article-author img,
.article-author .avatar{width:32px;height:32px;border-radius:50%;object-fit:cover;flex-shrink:0}
.article-author-info{display:flex;flex-direction:column;min-width:0}
.article-author-info a{font-size:13px;font-weight:600;color:#111827;text-decoration:none;display:inline-flex;align-items:center;gap:4px;line-height:1.2}
.article-author-info a:hover{color:#2f35d8}
.article-author-info small{font-size:11px;color:#6b7280}

.article-meta{display:flex;gap:14px;font-size:12px;color:#6b7280;flex-wrap:wrap}

.article-read-more{
  display:inline-flex;align-items:center;gap:6px;font-size:13.5px;font-weight:700;color:#2f35d8;
  text-decoration:none;margin-top:4px;
}
.article-read-more:hover{color:#1f25b3;gap:10px;transition:gap .2s}

/* ===== EMPTY ===== */
.articles-empty{
  background:#fff;border:1px dashed #e5e7eb;border-radius:22px;
  padding:60px 24px;text-align:center;
}
.articles-empty-icon{font-size:42px;margin-bottom:14px;opacity:.6}
.articles-empty h3{margin:0 0 8px;font-size:18px;color:#111827}
.articles-empty p{margin:0 0 20px;color:#6b7280}

/* ===== PAGINATION ===== */
.articles-pagination{
  display:flex;justify-content:center;align-items:center;gap:6px;margin-top:36px;flex-wrap:wrap;
}
.articles-pagination a,
.articles-pagination .current{
  display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:40px;padding:0 14px;
  border-radius:10px;background:#fff;border:1px solid #e5e7eb;color:#111827;font-weight:600;text-decoration:none;
  font-size:14px;
}
.articles-pagination a:hover{border-color:#2f35d8;color:#2f35d8}
.articles-pagination .current{background:#2f35d8;color:#fff;border-color:#2f35d8}

/* ===== SIDEBAR ===== */
.articles-sidebar{position:sticky;top:96px;display:flex;flex-direction:column;gap:18px}
.sidebar-card{
  background:#fff;border:1px solid #e5e7eb;border-radius:22px;padding:22px;
}
.sidebar-card h3{
  margin:0 0 14px;font-size:13px;font-weight:700;color:#111827;
  text-transform:uppercase;letter-spacing:.08em;padding-bottom:10px;border-bottom:1px solid #f1f3f9;
}

.sidebar-search{display:flex;align-items:stretch;border:1px solid #e5e7eb;border-radius:10px;overflow:hidden}
.sidebar-search input{flex:1;border:0;padding:10px 12px;font:inherit;font-size:13.5px;outline:none;background:transparent;color:#111827}
.sidebar-search button{border:0;background:#2f35d8;color:#fff;padding:0 14px;cursor:pointer;display:flex;align-items:center;justify-content:center}
.sidebar-search button:hover{background:#262aa8}

.sidebar-categories{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:2px}
.sidebar-categories li a{
  display:flex;align-items:center;gap:10px;padding:9px 8px;border-radius:8px;text-decoration:none;color:#111827;font-size:14px;
}
.sidebar-categories li a:hover{background:#f6f7fb;color:#2f35d8}
.sidebar-categories .cat-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}
.sidebar-categories .cat-name{flex:1;font-weight:500}
.sidebar-categories .cat-count{
  font-size:11.5px;font-weight:700;background:#eef0ff;color:#2f35d8;padding:2px 8px;border-radius:999px;min-width:24px;text-align:center;
}

.latest-articles{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:12px}
.latest-articles li a{display:flex;gap:12px;align-items:center;text-decoration:none;color:#111827}
.latest-articles li a:hover .latest-title{color:#2f35d8}
.latest-articles img,
.latest-cover-fallback{
  width:56px;height:56px;border-radius:10px;object-fit:cover;flex-shrink:0;background:#eef0f6;
  display:flex;align-items:center;justify-content:center;color:#2f35d8;font-weight:700;font-size:14px;
}
.latest-title{display:block;font-size:13.5px;font-weight:600;line-height:1.35;color:#111827}
.latest-articles small{display:block;font-size:11px;color:#6b7280;margin-top:3px}

.tag-cloud{display:flex;flex-wrap:wrap;gap:6px}
.tag-cloud a{
  display:inline-flex;align-items:center;padding:5px 11px;background:#f6f7fb;border:1px solid #e5e7eb;
  border-radius:999px;font-size:12px;font-weight:500;color:#374151;text-decoration:none;
}
.tag-cloud a:hover{background:#2f35d8;color:#fff;border-color:#2f35d8}

.sidebar-cta{background:linear-gradient(135deg,#2f35d8 0%,#1f25b3 100%);color:#fff;border-color:transparent}
.sidebar-cta h3{color:#fff;border-bottom-color:rgba(255,255,255,.18)}
.sidebar-cta p{font-size:13.5px;color:rgba(255,255,255,.85);line-height:1.55;margin:0 0 14px}
.sidebar-cta-btn{
  display:inline-flex;align-items:center;gap:6px;background:#fff;color:#2f35d8;
  padding:9px 18px;border-radius:10px;font-weight:700;font-size:13.5px;text-decoration:none;
}
.sidebar-cta-btn:hover{transform:translateX(2px);transition:transform .2s}

/* ============================================================
   PÁGINA INDIVIDUAL
   ============================================================ */
.article-single-hero{
  background:#fff;border-bottom:1px solid #e5e7eb;padding:32px 0 36px;
}
.article-single-hero .breadcrumb{
  display:flex;align-items:center;gap:8px;font-size:13px;color:#6b7280;margin-bottom:18px;flex-wrap:wrap;
}
.article-single-hero .breadcrumb a{color:#2f35d8;text-decoration:none}
.article-single-hero .breadcrumb a:hover{text-decoration:underline}
.article-single-hero .breadcrumb span:not(:has(a)){color:#9ca3af}

.article-single-hero h1{
  font-size:clamp(28px,4vw,42px);font-weight:700;line-height:1.15;letter-spacing:-.02em;
  margin:8px 0 14px;color:#111827;max-width:880px;
}
.article-single-excerpt{
  font-size:18px;line-height:1.6;color:#4b5563;max-width:780px;margin:0 0 24px;
}

.article-single-author{display:flex;align-items:center;gap:14px;margin-bottom:14px}
.article-single-author img,
.article-single-author .avatar{width:48px;height:48px;border-radius:50%;object-fit:cover}
.article-single-author a{
  display:inline-flex;align-items:center;gap:5px;color:#111827;font-weight:700;font-size:15px;text-decoration:none;line-height:1.2;
}
.article-single-author a:hover{color:#2f35d8}
.article-single-author small{display:block;font-size:12.5px;color:#6b7280;margin-top:2px}

.article-single-meta{display:flex;gap:18px;font-size:13px;color:#6b7280;flex-wrap:wrap}

.article-single-content-section{padding:40px 0 80px}

.article-single-content{
  background:#fff;border:1px solid #e5e7eb;border-radius:24px;padding:36px;
}
.article-cover{
  width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:18px;margin-bottom:32px;display:block;
}
.article-cover-fallback-big{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#dbe1ff 0%,#eef0ff 60%,#fff 100%);color:#2f35d8;
}
.article-cover-fallback-big .fallback-mark{font-size:48px;font-weight:700;letter-spacing:.14em}
.article-cover-fallback-big .fallback-sub{font-size:14px;font-weight:600;letter-spacing:.2em;color:#6b7280;text-transform:uppercase;margin-top:6px}

.article-content{font-size:17px;line-height:1.8;color:#374151}
.article-content > *:first-child{margin-top:0}
.article-content h2{font-size:26px;font-weight:700;color:#111827;margin:36px 0 14px;letter-spacing:-.01em}
.article-content h3{font-size:22px;font-weight:700;color:#111827;margin:28px 0 12px}
.article-content p{margin:0 0 18px}
.article-content ul,
.article-content ol{margin:0 0 18px;padding-left:24px}
.article-content li{margin-bottom:6px}
.article-content a{color:#2f35d8;text-decoration:underline}
.article-content blockquote{
  border-left:4px solid #2f35d8;background:#f6f7fb;padding:14px 20px;margin:24px 0;font-style:italic;color:#374151;border-radius:0 12px 12px 0;
}
.article-content img{max-width:100%;border-radius:12px;margin:20px 0}
.article-content code{background:#f1f3f9;padding:2px 6px;border-radius:5px;font-size:.92em;font-family:'JetBrains Mono',monospace}
.article-content pre{background:#0f172a;color:#e2e8f0;padding:18px;border-radius:12px;overflow-x:auto;font-size:14px;line-height:1.6}

.article-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:32px;padding-top:24px;border-top:1px solid #f1f3f9;align-items:center}
.article-tags-label{font-size:12px;font-weight:700;color:#6b7280;text-transform:uppercase;letter-spacing:.08em;margin-right:6px}
.article-tags a{
  display:inline-flex;padding:5px 12px;background:#f6f7fb;border:1px solid #e5e7eb;
  border-radius:999px;font-size:12.5px;color:#374151;text-decoration:none;font-weight:500;
}
.article-tags a:hover{background:#2f35d8;color:#fff;border-color:#2f35d8}

.article-share{display:flex;align-items:center;gap:8px;margin-top:24px;padding-top:20px;border-top:1px solid #f1f3f9;flex-wrap:wrap}
.article-share-label{font-size:12px;font-weight:700;color:#6b7280;text-transform:uppercase;letter-spacing:.08em;margin-right:6px}
.article-share a,
.article-share button{
  width:38px;height:38px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;
  background:#f6f7fb;border:1px solid #e5e7eb;color:#111827;text-decoration:none;font-weight:700;cursor:pointer;
  font-family:inherit;font-size:14px;transition:all .2s;
}
.article-share a:hover,
.article-share button:hover{background:#2f35d8;color:#fff;border-color:#2f35d8}

/* ===== AUTHOR BOX ===== */
.article-author-box{
  display:flex;gap:20px;margin-top:32px;padding:24px;background:#f6f7fb;border:1px solid #e5e7eb;border-radius:18px;
}
.article-author-box .author-avatar,
.article-author-box .author-avatar img{
  width:88px;height:88px;border-radius:50%;object-fit:cover;flex-shrink:0;border:3px solid #fff;
}
.article-author-box .author-info{flex:1;min-width:0}
.article-author-box .author-label{font-size:11px;font-weight:700;color:#6b7280;text-transform:uppercase;letter-spacing:.1em}
.article-author-box h3{margin:4px 0 6px;font-size:19px;color:#111827;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.article-author-box h3 a{color:inherit;text-decoration:none}
.article-author-box h3 a:hover{color:#2f35d8}
.article-author-box .author-title{font-size:13.5px;color:#2f35d8;font-weight:600;margin:0 0 8px}
.article-author-box .author-bio{font-size:14px;line-height:1.6;color:#4b5563;margin:0 0 12px}
.article-author-box .author-stats{display:flex;gap:14px;font-size:12.5px;color:#6b7280;margin-bottom:14px;flex-wrap:wrap}
.article-author-box .author-stats strong{color:#111827;font-weight:700}
.article-author-box .author-profile-link{
  display:inline-flex;align-items:center;gap:6px;color:#2f35d8;font-weight:700;font-size:13.5px;text-decoration:none;
}
.article-author-box .author-profile-link:hover{gap:10px;transition:gap .2s}

/* ===== RELATED ===== */
.article-related{margin-top:48px;padding-top:32px;border-top:1px solid #e5e7eb}
.article-related h2{font-size:24px;font-weight:700;color:#111827;margin:0 0 22px;letter-spacing:-.01em}

/* ===== RESPONSIVO ===== */
@media (max-width:1024px){
  .articles-layout,
  .article-single-layout{grid-template-columns:1fr}
  .articles-sidebar{position:static}
}
@media (max-width:720px){
  .articles-grid{grid-template-columns:1fr}
  .articles-hero{padding:48px 0 40px}
  .articles-toolbar{flex-direction:column;align-items:stretch}
  .articles-toolbar-form input{width:100%}
  .article-single-content{padding:22px}
  .article-author-box{flex-direction:column;text-align:center;align-items:center}
  .article-author-box .author-stats{justify-content:center}
}
