
  :root {
    /* ── Paleta derivada de #00009c ── */
    --brand:        #00009c;
    --brand-dark:   #000078;
    --brand-deeper: #00004f;
    --brand-mid:    #3333b8;
    --brand-light:  #e8e8ff;
    --brand-xlight: #f0f0ff;

    /* aliases */
    --blue:         var(--brand);
    --blue-dark:    var(--brand-dark);
    --blue-deeper:  var(--brand-deeper);
    --blue-light:   var(--brand-xlight);
    --blue-mid:     var(--brand-light);

    --navy:         #04041a;
    --charcoal:     #0e0e2c;
    --gray-100:     #f7f7fb;
    --gray-200:     #ededf5;
    --gray-300:     #d8d8ec;
    --gray-400:     #9595b8;
    --gray-500:     #60607a;
    --gray-600:     #3d3d5c;
    --white:        #ffffff;
    --accent-orange: #e85d04;
    --accent-green:  #0d9e6e;
    --accent-rose:   #d63b6e;

    --font-display: 'DM Serif Display', serif;
    --font-body:    'DM Sans', sans-serif;
    --radius: 10px;
    --shadow-sm: 0 1px 3px rgba(0,0,40,0.08), 0 1px 2px rgba(0,0,40,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,40,0.10), 0 2px 4px rgba(0,0,40,0.06);
    --shadow-lg: 0 10px 30px rgba(0,0,40,0.14);
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  body {
    font-family: var(--font-body);
    background: var(--gray-100);
    color: var(--charcoal);
    font-size: 15px;
    line-height: 1.6;
  }

  a { text-decoration: none; color: inherit; }
  img { display: block; width: 100%; height: 100%; object-fit: cover; }

  /* ── PAGE SYSTEM ── */
  .page { display: none; }
  .page.active { display: block; }

  /* ── NAVBAR ── */
  .navbar {
    background: var(--white);
    border-bottom: 1px solid var(--gray-300);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
  }

  .navbar__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 36px;
  }

  .navbar__brand {
    font-weight: 800;
    font-size: 19px;
    color: var(--blue);
    letter-spacing: -0.5px;
    flex-shrink: 0;
    cursor: pointer;
  }

  .navbar__brand span { color: var(--navy); }

  .navbar__nav {
    display: none;
    list-style: none;
    gap: 4px;
  }

  .navbar__nav a {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--gray-600);
    padding: 6px 11px;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    cursor: pointer;
  }

  .navbar__nav a:hover, .navbar__nav a.active {
    background: var(--blue-light);
    color: var(--blue);
  }

  .navbar__right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .navbar__search {
    display: flex;
    align-items: center;
    background: var(--gray-200);
    border: 1.5px solid var(--gray-300);
    border-radius: 20px;
    padding: 6px 14px;
    gap: 8px;
    width: 200px;
    transition: border-color 0.2s, width 0.2s, background 0.2s;
  }

  .navbar__search:focus-within {
    border-color: var(--blue);
    background: white;
    width: 240px;
  }

  .navbar__search input {
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--charcoal);
    outline: none;
    width: 100%;
  }

  .navbar__search input::placeholder { color: var(--gray-400); }

  .icon-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1.5px solid var(--gray-300);
    cursor: pointer;
    color: var(--gray-600);
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    background: transparent;
  }

  .icon-btn:hover { background: var(--blue-light); color: var(--blue); border-color: var(--blue-mid); }

  .btn-enter {
    background: var(--blue);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    padding: 7px 18px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .btn-enter:hover { background: var(--blue-dark); }

  .btn-register-outline {
    font-size: 13px; font-weight: 600; color: var(--brand);
    background: transparent; border: 1.5px solid var(--brand-light);
    padding: 7px 16px; border-radius: 20px; cursor: pointer;
    font-family: var(--font); transition: all 0.15s; white-space: nowrap;
  }
  .btn-register-outline:hover { background: var(--brand-xlight); border-color: var(--brand); }

  /* Paywall */
  .paywall-preview {
    position: relative; overflow: hidden; max-height: 200px;
  }
  .paywall-preview::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 140px;
    background: linear-gradient(to bottom, transparent, white);
    pointer-events: none;
  }
  .paywall-box {
    padding: 28px 24px 24px; text-align: center; background: white;
  }
  .paywall-box__eyebrow {
    display: inline-flex; align-items: center; gap: 5px;
    background: #ecfdf5; color: #059669;
    font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
    padding: 4px 12px; border-radius: 20px; margin-bottom: 14px;
  }
  .paywall-box__title { font-size: 19px; font-weight: 800; color: var(--navy); margin-bottom: 8px; letter-spacing: -.3px; }
  .paywall-box__sub { font-size: 14px; color: var(--gray-500); margin-bottom: 22px; line-height: 1.7; max-width: 400px; margin-left: auto; margin-right: auto; }
  .paywall-box__btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
  .paywall-btn-primary {
    background: var(--brand); color: white; border: none;
    padding: 11px 26px; border-radius: 30px; font-size: 14px; font-weight: 700;
    font-family: var(--font); cursor: pointer; transition: all .15s;
    display: inline-flex; align-items: center; gap: 7px;
  }
  .paywall-btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,156,.25); }
  .paywall-btn-secondary {
    background: white; color: var(--brand);
    border: 1.5px solid var(--brand-light); padding: 11px 26px; border-radius: 30px;
    font-size: 14px; font-weight: 600; font-family: var(--font); cursor: pointer; transition: all .15s;
  }
  .paywall-btn-secondary:hover { background: var(--brand-xlight); border-color: var(--brand); }

  /* ── DESTAQUE BAR ── */
  .destaque-bar {
    background: #fefce8;
    border-bottom: 1px solid #fde68a;
    padding: 10px 0;
  }

  .destaque-bar__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .destaque-badge {
    background: var(--accent-orange);
    color: white;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 3px 8px;
    border-radius: 4px;
    flex-shrink: 0;
  }

  .destaque-text { font-size: 13.5px; color: var(--charcoal); flex: 1; }

  .destaque-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--blue);
    flex-shrink: 0;
    transition: color 0.15s;
  }

  .destaque-link:hover { color: var(--blue-dark); }

  /* ── MAIN LAYOUT ── */
  .main-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
  }

  /* ── HERO ── */
  .hero {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(135deg, #00004f 0%, #00009c 100%);
    min-height: 340px;
    display: flex;
    align-items: flex-end;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.2s;
  }

  .hero:hover { box-shadow: var(--shadow-lg); }

  .hero__img-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #00004f 0%, #00009c 60%);
    overflow: hidden;
  }

  .hero__img-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 20%, rgba(10,20,50,0.82) 100%);
  }

  .hero__content {
    position: relative;
    z-index: 2;
    padding: 28px;
    max-width: 560px;
  }

  /* ── BADGES ── */
  .badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
  }

  .badge--editorial { background: var(--blue); color: white; }
  .badge--reumatologia { background: #ede9fe; color: #7c3aed; }
  .badge--gastro { background: #fff7ed; color: #c2410c; }
  .badge--genetica { background: #ecfdf5; color: #059669; }
  .badge--dermatologia { background: #fff1f2; color: #be123c; }
  .badge--oncologia { background: #fefce8; color: #a16207; }
  .badge--imunologia { background: var(--brand-xlight); color: var(--brand); }
  .badge--patrocinado {
    background: #fff7ed; color: #b45309;
    border: 1px solid #fed7aa;
    display: inline-flex; align-items: center; gap: 4px;
  }
  .badge--patrocinado::before {
    content: '';
    display: inline-block; width: 6px; height: 6px;
    border-radius: 50%; background: #f59e0b;
    flex-shrink: 0;
  }
  .article-card--sponsored {
    position: relative;
  }


  .badge--cursos { background: #fdf4ff; color: #9333ea; }
  .badge--tipo { background: var(--gray-100); color: var(--gray-500); }

  .hero__title {
    font-size: 25px;
    font-weight: 800;
    color: white;
    line-height: 1.3;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
  }

  .hero__meta {
    display: flex;
    align-items: center;
    gap: 18px;
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    font-weight: 500;
  }

  .hero__meta span { display: flex; align-items: center; gap: 5px; }

  /* ── SECTION HEADER ── */
  .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    margin-top: 28px;
  }

  .section-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.2px;
  }

  .ver-todas {
    font-size: 13px;
    font-weight: 600;
    color: var(--blue);
    transition: color 0.15s;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .ver-todas:hover { color: var(--blue-dark); }

  /* ── ARTICLES GRID ── */
  .articles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .article-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-300);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
  }

  .article-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
  }

  .article-card__img {
    height: 165px;
    position: relative;
    overflow: hidden;
  }

  .card-bg-1 { background: linear-gradient(135deg, #e8e8ff, #9999d4); }
  .card-bg-2 { background: linear-gradient(135deg, #e0e0f8, #7777cc); }
  .card-bg-3 { background: linear-gradient(135deg, #d0d0f0, #5555bb); }
  .card-bg-4 { background: linear-gradient(135deg, #c8c8ee, #4444aa); }

  .card-img-art {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .article-card__body { padding: 15px 16px 10px; }
  .article-card__badge { margin-bottom: 8px; }

  .article-card__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.4;
    margin-bottom: 7px;
    letter-spacing: -0.1px;
  }

  .article-card__excerpt {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .article-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px 13px;
    border-top: 1px solid var(--gray-200);
    margin-top: 10px;
  }

  .article-card__date { font-size: 12px; color: var(--gray-400); font-weight: 500; }

  .bookmark-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-400);
    font-size: 15px;
    transition: color 0.15s;
    padding: 4px;
  }

  .bookmark-btn:hover { color: var(--blue); }

  /* ── SIDEBAR ── */
  .sidebar { display: flex; flex-direction: column; gap: 18px; }

  /* Article list items */
  .article-list { display: flex; flex-direction: column; }

  .article-item {
    display: flex;
    gap: 13px;
    padding: 13px 0;
    border-bottom: 1px solid var(--gray-200);
    cursor: pointer;
    transition: opacity 0.15s;
  }

  .article-item:last-child { border-bottom: none; }
  .article-item:hover { opacity: 0.75; }

  .article-item__thumb {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    flex-shrink: 0;
    overflow: hidden;
  }

  .thumb-1 { background: linear-gradient(135deg, #e8e8ff, #9999d4); }
  .thumb-2 { background: linear-gradient(135deg, #fff3e0, #ffb347); }
  .thumb-3 { background: linear-gradient(135deg, #e0f5ee, #6ecfa8); }

  .article-item__info { flex: 1; min-width: 0; }

  .article-item__cat {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--blue);
    margin-bottom: 4px;
  }

  .article-item__title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .article-item__time { font-size: 12px; color: var(--gray-400); font-weight: 500; }

  /* ── WIDGETS ── */
  .widget {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-300);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
  }

  .widget--dark {
    background: var(--navy);
    border-color: transparent;
  }

  .widget__header {
    padding: 14px 18px 13px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.1px;
  }

  .widget--dark .widget__header {
    border-bottom-color: rgba(255,255,255,0.08);
    color: white;
  }

  /* Webinar items */
  .webinar-item {
    padding: 13px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }

  .webinar-item:last-of-type { border-bottom: none; }

  .webinar-date {
    font-size: 11px;
    font-weight: 700;
    color: #8888e0;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
  }

  .webinar-title {
    font-size: 13.5px;
    font-weight: 600;
    color: white;
    line-height: 1.35;
    margin-bottom: 3px;
  }

  .webinar-speaker { font-size: 12px; color: rgba(255,255,255,0.45); }

  .btn-calendar {
    display: block;
    margin: 10px 18px 15px;
    background: var(--blue);
    color: white;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    padding: 10px;
    border-radius: 7px;
    transition: background 0.15s;
    cursor: pointer;
    border: none;
    width: calc(100% - 36px);
    font-family: var(--font-body);
  }

  .btn-calendar:hover { background: var(--blue-dark); }

  /* Mais lidas */
  .mais-lidas-list { padding: 4px 0; }

  .mais-lida-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 18px;
    cursor: pointer;
    transition: background 0.15s;
  }

  .mais-lida-item:hover { background: var(--gray-100); }

  .mais-lida-num {
    font-size: 20px;
    font-weight: 800;
    color: var(--blue-mid);
    line-height: 1;
    flex-shrink: 0;
    width: 28px;
    letter-spacing: -1px;
  }

  .mais-lida-info { flex: 1; }

  .mais-lida-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.4;
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .mais-lida-views { font-size: 12px; color: var(--gray-400); font-weight: 500; }

  /* Especialidades */
  .especialidades-section { padding: 13px 18px 15px; }

  .especialidades-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--gray-400);
    margin-bottom: 10px;
  }

  .especialidades-tags { display: flex; flex-wrap: wrap; gap: 6px; }

  .tag {
    font-size: 12.5px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 16px;
    border: 1.5px solid var(--gray-300);
    color: var(--gray-600);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
  }

  .tag:hover, .tag.active {
    border-color: var(--blue);
    color: var(--blue);
    background: var(--blue-light);
  }

  /* ── VER TODAS PAGE ── */
  #page-todas {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 24px 48px;
  }

  .todas__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--gray-300);
  }

  .todas__back {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--blue);
    cursor: pointer;
    padding: 7px 14px;
    border-radius: 8px;
    border: 1.5px solid var(--blue-mid);
    transition: background 0.15s;
    background: var(--blue-light);
  }

  .todas__back:hover { background: var(--blue-mid); }

  .todas__title {
    font-size: 22px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.4px;
  }

  .todas__count {
    margin-left: auto;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500);
    background: var(--gray-200);
    padding: 5px 12px;
    border-radius: 20px;
  }

  /* Filter bar */
  .todas__filters {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
  }

  .todas__filters-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--gray-500);
    margin-right: 4px;
  }

  .filter-tag {
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1.5px solid var(--gray-300);
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.15s;
    background: white;
  }

  .filter-tag:hover { border-color: var(--blue); color: var(--blue); }
  .filter-tag.active { background: var(--blue); color: white; border-color: var(--blue); }

  /* Search bar */
  .todas__search {
    display: flex;
    align-items: center;
    background: white;
    border: 1.5px solid var(--gray-300);
    border-radius: 8px;
    padding: 9px 16px;
    gap: 10px;
    width: 280px;
    margin-left: auto;
    transition: border-color 0.2s;
  }

  .todas__search:focus-within { border-color: var(--blue); }

  .todas__search input {
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 13.5px;
    color: var(--charcoal);
    outline: none;
    width: 100%;
  }

  .todas__search input::placeholder { color: var(--gray-400); }

  /* Article list page — horizontal cards */
  .todas__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
  }

  .todas__card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--gray-300);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
  }

  .todas__card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
  }

  .todas__card-img {
    height: 150px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
  }

  .todas__card-body {
    padding: 15px 16px 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .todas__card-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.4;
    margin-bottom: 7px;
    letter-spacing: -0.1px;
    flex: 1;
  }

  .todas__card-excerpt {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
  }

  .todas__card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px 13px;
    border-top: 1px solid var(--gray-200);
  }

  .todas__card-date { font-size: 12px; color: var(--gray-400); font-weight: 500; }
  .todas__card-type { font-size: 11px; font-weight: 600; color: var(--gray-500); }

  /* Pagination */
  .todas__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 36px;
  }

  .page-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1.5px solid var(--gray-300);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    background: white;
    transition: all 0.15s;
    font-family: var(--font-body);
  }

  .page-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
  .page-btn.active { background: var(--blue); color: white; border-color: var(--blue); }
  .page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

  /* Empty/loading states */
  .todas__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 24px;
    color: var(--gray-400);
    font-size: 15px;
    font-weight: 500;
  }

  .skeleton {
    background: var(--gray-200);
    border-radius: 4px;
    animation: pulse 1.5s ease infinite;
  }

  /* ── FOOTER ── */
  footer {
    background: var(--navy);
    color: rgba(255,255,255,0.65);
    margin-top: 48px;
  }

  .footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px 32px;
    display: grid;
    grid-template-columns: 220px 1fr 1fr 200px;
    gap: 40px;
  }

  .footer__brand-name {
    font-size: 20px;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
    letter-spacing: -0.4px;
  }

  .footer__brand-name span { color: #8888e0; }

  .footer__brand-desc {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255,255,255,0.45);
    margin-bottom: 16px;
  }

  .footer__social { display: flex; gap: 8px; }

  .footer__social a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: border-color 0.15s, background 0.15s;
  }

  .footer__social a:hover { border-color: var(--brand); background: rgba(0,0,156,0.2); }

  .footer__col-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.35);
    margin-bottom: 14px;
  }

  .footer__links { list-style: none; display: flex; flex-direction: column; gap: 8px; }

  .footer__links a {
    font-size: 13.5px;
    color: rgba(255,255,255,0.55);
    transition: color 0.15s;
  }

  .footer__links a:hover { color: #8888e0; }

  .newsletter-form { display: flex; gap: 8px; margin-top: 4px; }

  .newsletter-input {
    flex: 1;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    color: white;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.2s;
  }

  .newsletter-input::placeholder { color: rgba(255,255,255,0.25); }
  .newsletter-input:focus { border-color: var(--blue); }

  .btn-assinar {
    background: var(--blue);
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background 0.15s;
    white-space: nowrap;
  }

  .btn-assinar:hover { background: var(--blue-dark); }

  .footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 16px 24px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: rgba(255,255,255,0.25);
  }

  /* ── ANIMATIONS ── */
  @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
  @keyframes fadeUp { from{opacity:0;transform:translateY(14px)} to{opacity:1;transform:translateY(0)} }
  @keyframes fadeIn { from{opacity:0} to{opacity:1} }

  .hero { animation: fadeUp 0.45s ease both; }
  .articles-grid { animation: fadeUp 0.45s ease 0.08s both; }
  #page-todas.active, #page-article.active, #page-profile.active { animation: fadeIn 0.3s ease both; }

  /* ── PAGE: ARTIGO INTERNO ── */
  #page-article { background: var(--gray-100); }

  .article-hero {
    background: linear-gradient(135deg, var(--brand-deeper) 0%, var(--brand) 100%);
    padding: 48px 24px 56px;
    position: relative;
    overflow: hidden;
  }
  .article-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 50%, rgba(255,255,255,0.06) 0%, transparent 60%);
  }
  .article-hero__inner {
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
  }
  .article-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    margin-bottom: 20px;
    transition: color 0.15s;
    background: none;
    border: none;
    font-family: var(--font-body);
    padding: 0;
  }
  .article-hero__back:hover { color: white; }
  .article-hero__badge { margin-bottom: 14px; }
  .article-hero__title {
    font-family: var(--font);
    font-size: clamp(22px, 4vw, 34px);
    font-weight: 800;
    color: white;
    line-height: 1.25;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
  }
  .article-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    color: rgba(255,255,255,0.65);
    font-size: 13px;
    font-weight: 500;
  }
  .article-hero__meta span { display: flex; align-items: center; gap: 5px; }

  .article-layout {
    max-width: 1100px;
    margin: 0 auto;
    padding: 36px 24px 60px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    align-items: start;
  }
  .article-body {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--gray-300);
    padding: 36px 40px;
    box-shadow: var(--shadow-sm);
  }
  .article-body__section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand);
    margin-bottom: 8px;
    margin-top: 28px;
  }
  .article-body__section-title:first-child { margin-top: 0; }
  .article-body__text {
    font-size: 15px;
    line-height: 1.75;
    color: var(--gray-600);
    margin-bottom: 20px;
  }
  .article-body__highlight {
    background: var(--brand-xlight);
    border-left: 3px solid var(--brand);
    border-radius: 0 8px 8px 0;
    padding: 14px 18px;
    margin: 20px 0;
    font-size: 14px;
    color: var(--charcoal);
    line-height: 1.65;
  }
  .article-body__takeaways {
    list-style: none;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .article-body__takeaways li {
    display: flex;
    gap: 10px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-600);
  }
  .article-body__takeaways li::before {
    content: '';
    width: 7px;
    height: 7px;
    background: var(--brand);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 7px;
  }
  .article-body__source {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
    font-size: 12.5px;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .article-sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 80px; }

  .article-sidebar__widget {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--gray-300);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
  }
  .article-sidebar__widget-header {
    padding: 13px 16px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 7px;
  }
  .article-sidebar__related-item {
    display: flex;
    gap: 11px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-200);
    cursor: pointer;
    transition: background 0.15s;
  }
  .article-sidebar__related-item:last-child { border-bottom: none; }
  .article-sidebar__related-item:hover { background: var(--gray-100); }
  .article-sidebar__related-thumb {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--brand-light), var(--brand-mid));
  }
  .article-sidebar__related-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .article-share {
    display: flex;
    gap: 8px;
    padding: 14px 16px;
  }
  .article-share__btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 10px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    border: 1.5px solid var(--gray-300);
    color: var(--gray-600);
    cursor: pointer;
    background: white;
    font-family: var(--font-body);
    transition: all 0.15s;
  }
  .article-share__btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-xlight); }

  /* ── PAGE: WEBINARS ── */




  /* ── MOBILE HAMBURGER ── */
  .navbar__hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px;
    margin-left: auto;
  }
  .navbar__hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--charcoal);
    border-radius: 2px;
    transition: all 0.25s;
  }
  .navbar__mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 99;
    padding: 24px;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
  }
  .navbar__mobile-menu.open { display: flex; }
  .navbar__mobile-menu a {
    font-size: 16px;
    font-weight: 600;
    color: var(--charcoal);
    padding: 14px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid var(--gray-200);
  }
  .navbar__mobile-menu a:hover { background: var(--brand-xlight); color: var(--brand); }
  .navbar__mobile-search {
    display: flex;
    align-items: center;
    background: var(--gray-200);
    border: 1.5px solid var(--gray-300);
    border-radius: 10px;
    padding: 10px 16px;
    gap: 10px;
    margin-top: 8px;
  }
  .navbar__mobile-search input {
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--charcoal);
    outline: none;
    width: 100%;
  }

  /* ── RESPONSIVE ── */
  @media (max-width: 900px) {
    .main-layout {
      grid-template-columns: 1fr;
      padding: 16px;
      gap: 20px;
    }
    .sidebar { display: none; }
    .sidebar.show-mobile { display: flex; }
    .articles-grid { grid-template-columns: 1fr; }
    .todas__grid { grid-template-columns: 1fr 1fr; }
    .footer__inner { grid-template-columns: 1fr 1fr; gap: 28px; }
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { display: none; }
    .article-body { padding: 24px 20px; }

  }

  @media (max-width: 640px) {
    .navbar__nav { display: none; }
    .navbar__search { display: none; }
    .navbar__hamburger { display: flex; }
    .icon-btn { display: none; }
    #navbar-auth-btns { display: none !important; }
    .navbar__inner { gap: 0; }
    .todas__grid { grid-template-columns: 1fr; }
    .todas__filters { gap: 6px; }
    .todas__search { width: 100%; margin-left: 0; }
    .footer__inner { grid-template-columns: 1fr; }
    .footer__bottom { padding: 16px; text-align: center; }
    .hero { min-height: 260px; }
    .hero__title { font-size: 19px; }
    .article-hero { padding: 32px 16px 40px; }
    .todas__header { flex-wrap: wrap; }
  }
  /* ── NAVBAR AVATAR ── */
  .navbar__avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--brand);
    color: white;
    font-size: 12px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    border: 2px solid var(--brand-light);
    transition: box-shadow 0.15s;
    letter-spacing: 0.5px;
  }
  .navbar__avatar:hover { box-shadow: 0 0 0 3px var(--brand-light); }

  /* ── AUTH MODAL ── */
  .auth-overlay {
    position: fixed; inset: 0;
    background: rgba(4,4,26,0.6);
    backdrop-filter: blur(4px);
    z-index: 500;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
    opacity: 0; pointer-events: none;
    transition: opacity 0.2s;
  }
  .auth-overlay.open { opacity: 1; pointer-events: all; }

  .auth-modal {
    background: white;
    border-radius: 16px;
    width: 100%; max-width: 440px;
    box-shadow: 0 24px 64px rgba(0,0,40,0.22);
    overflow: hidden;
    transform: translateY(16px);
    transition: transform 0.25s ease;
  }
  .auth-overlay.open .auth-modal { transform: translateY(0); }

  .auth-modal__header {
    padding: 28px 32px 0;
    display: flex; align-items: flex-start; justify-content: space-between;
  }
  .auth-modal__logo { height: 22px; width: auto; }
  .auth-modal__close {
    background: none; border: none; cursor: pointer;
    color: var(--gray-400); padding: 4px;
    transition: color 0.15s;
    display: flex; align-items: center;
  }
  .auth-modal__close:hover { color: var(--charcoal); }

  .auth-modal__body { padding: 20px 32px 32px; }

  .auth-modal__title {
    font-size: 20px; font-weight: 800;
    color: var(--navy); letter-spacing: -0.3px;
    margin-bottom: 4px;
  }
  .auth-modal__subtitle {
    font-size: 13.5px; color: var(--gray-500);
    margin-bottom: 24px; line-height: 1.5;
  }

  .auth-tabs {
    display: flex; gap: 0;
    background: var(--gray-100);
    border-radius: 8px; padding: 3px;
    margin-bottom: 24px;
  }
  .auth-tab {
    flex: 1; text-align: center;
    padding: 8px; font-size: 13.5px; font-weight: 600;
    border-radius: 6px; cursor: pointer;
    color: var(--gray-500);
    transition: all 0.15s;
    border: none; background: none;
    font-family: var(--font-body);
  }
  .auth-tab.active { background: white; color: var(--brand); box-shadow: var(--shadow-sm); }

  .auth-field { margin-bottom: 16px; }
  .auth-field label {
    display: block; font-size: 12.5px; font-weight: 600;
    color: var(--gray-600); margin-bottom: 6px; letter-spacing: 0.1px;
  }
  .auth-input {
    width: 100%;
    border: 1.5px solid var(--gray-300);
    border-radius: 8px;
    padding: 10px 13px;
    font-size: 14px; font-family: var(--font-body);
    color: var(--charcoal);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: white;
  }
  .auth-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0,0,156,0.08); }
  .auth-input.error { border-color: var(--accent-rose); box-shadow: 0 0 0 3px rgba(214,59,110,0.08); }
  .auth-input::placeholder { color: var(--gray-400); }

  .auth-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

  .auth-btn {
    width: 100%; padding: 12px;
    background: var(--brand); color: white;
    border: none; border-radius: 8px;
    font-size: 14px; font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer; margin-top: 8px;
    transition: background 0.15s, transform 0.1s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
  }
  .auth-btn:hover { background: var(--brand-dark); }
  .auth-btn:active { transform: scale(0.98); }
  .auth-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

  .auth-error {
    background: #fef2f2; border: 1px solid #fecaca;
    border-radius: 8px; padding: 10px 13px;
    font-size: 13px; color: #b91c1c;
    margin-bottom: 14px; display: none;
  }
  .auth-error.show { display: block; }

  .auth-success {
    background: #f0fdf4; border: 1px solid #bbf7d0;
    border-radius: 8px; padding: 10px 13px;
    font-size: 13px; color: #166534;
    margin-bottom: 14px; display: none;
  }
  .auth-success.show { display: block; }

  .auth-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 20px 0; color: var(--gray-400); font-size: 12px;
  }
  .auth-divider::before, .auth-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--gray-300);
  }

  .auth-modal__footer {
    padding: 14px 32px;
    background: var(--gray-100);
    border-top: 1px solid var(--gray-200);
    font-size: 12px; color: var(--gray-500);
    text-align: center; line-height: 1.5;
  }
  .auth-modal__footer a { color: var(--brand); font-weight: 600; cursor: pointer; }

  .auth-step { display: none; }
  .auth-step.active { display: block; }

  .auth-password-wrap { position: relative; }
  .auth-password-toggle {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; color: var(--gray-400);
    padding: 4px; display: flex; align-items: center;
  }
  .auth-password-toggle:hover { color: var(--brand); }

  /* ── PROFILE PAGE — professional network style ── */
  #page-profile { background: #f0f0f8; min-height: 100vh; }

  /* ── PROFILE (novo) ── */
  .prof-section { background:white; border-radius:12px; overflow:hidden; box-shadow:0 1px 4px rgba(0,0,30,.06); }
  .prof-sec-btn {
    width:100%; display:flex; align-items:center; justify-content:space-between;
    padding:16px 18px; background:none; border:none; cursor:pointer;
    font-size:14px; font-weight:600; color:var(--ink); font-family:var(--font);
    transition:background .15s;
  }
  .prof-sec-btn:hover { background:var(--gray-50); }
  .prof-sec-icon {
    width:32px; height:32px; border-radius:8px; background:var(--brand-xlight);
    color:var(--brand); display:flex; align-items:center; justify-content:center; flex-shrink:0;
  }
  .prof-sec-chevron { color:var(--gray-300); transition:transform .2s; flex-shrink:0; }
  .prof-sec-body { display:none; padding:0 18px 18px; border-top:1px solid var(--gray-100); }
  .prof-sec-body.open { display:block; }
  .prof-sec-btn.open .prof-sec-chevron { transform:rotate(180deg); }
  .prof-field { display:flex; flex-direction:column; gap:5px; }
  .prof-field label { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; color:var(--gray-400); }
  .prof-field input {
    border:1.5px solid var(--gray-200); border-radius:8px; padding:9px 12px;
    font-size:14px; font-family:var(--font); color:var(--ink); outline:none; transition:border-color .15s;
  }
  .prof-field input:focus { border-color:var(--brand); }
  .prof-empty { font-size:13px; color:var(--gray-300); padding:16px 0; text-align:center; }
  .prof-article-item {
    display:flex; align-items:flex-start; gap:10px; padding:12px 0;
    border-bottom:1px solid var(--gray-100); cursor:pointer;
  }
  .prof-article-item:last-child { border-bottom:none; }
  .prof-article-item__title { font-size:13.5px; font-weight:600; color:var(--ink); line-height:1.4; flex:1; }
  .prof-article-item__date { font-size:11px; color:var(--gray-400); margin-top:3px; }
  .prof-notif-row {
    display:flex; align-items:center; justify-content:space-between; gap:12px;
    padding:14px 0; border-bottom:1px solid var(--gray-100); cursor:pointer;
  }
  .prof-notif-row:last-child { border-bottom:none; }
  .prof-toggle {
    width:40px; height:22px; appearance:none; background:var(--gray-200); border-radius:11px;
    position:relative; cursor:pointer; flex-shrink:0; transition:background .2s;
  }
  .prof-toggle:checked { background:var(--brand); }
  .prof-toggle::after {
    content:''; position:absolute; width:18px; height:18px; border-radius:50%;
    background:white; top:2px; left:2px; transition:transform .2s;
    box-shadow:0 1px 3px rgba(0,0,0,.2);
  }
  .prof-toggle:checked::after { transform:translateX(18px); }

  
  /* ── PROFILE DESKTOP ── */
  @media (min-width: 768px) {
    #page-profile > div:nth-child(2) {
      max-width: 680px;
      margin: -28px auto 0;
      border-radius: 14px;
      box-shadow: 0 4px 20px rgba(0,0,30,.10);
    }
    #page-profile > div:nth-child(3) {
      max-width: 680px;
      margin: 0 auto;
    }
    .prof-section {
      border-radius: 12px;
      overflow: hidden;
    }
  }
