/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #000000;
  --dark: #111111;
  --gray-dark: #333333;
  --gray: #666666;
  --gray-light: #999999;
  --gray-bg: #f5f5f5;
  --white: #ffffff;
  --accent: #c0392b;
  --accent-dark: #962d22;
  --accent-light: #e74c3c;
  --border: #e0e0e0;
  --tag-startups: #27ae60;
  --tag-tech: #2980b9;
  --tag-saude: #8e44ad;
  --tag-industrias: #e67e22;
  --tag-brasil: #16a085;
  --tag-mundo: #2c3e50;
  --tag-servicos: #d35400;
  --tag-sociedade: #7f8c8d;
  --tag-cultura: #c0392b;
  --tag-futebol: #27ae60;
  --font-main: 'Inter', 'Segoe UI', Arial, sans-serif;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.08);
  --shadow: 0 2px 12px rgba(0,0,0,.12);
  --shadow-lg: 0 4px 24px rgba(0,0,0,.16);
  --shadow-card: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-card-hover: 0 4px 16px rgba(0,0,0,.12);
  --transition: all .2s ease;
  --radius: 6px;
  --radius-lg: 10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--gray-bg);
  color: var(--dark);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
a:hover { color: var(--accent); }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ===== TICKER ===== */
.ticker-bar {
  background: var(--accent);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-bar .ticker-label {
  display: inline-block;
  background: var(--accent-dark);
  padding: 0 14px;
  margin-right: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: 11px;
}
.ticker-track {
  display: inline-block;
  animation: ticker 75s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-track span {
  margin-right: 40px;
  cursor: pointer;
}
.ticker-track span::before { content: '▸ '; }
@keyframes ticker {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* ===== HEADER ===== */
.site-header {
  background: var(--black);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  position: relative;
}
.header-top .logo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-top .logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
}
.header-top .logo-text {
  font-size: 26px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}
.header-top .logo-text span { color: var(--accent); }

.header-actions {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 10px;
  align-items: center;
}
.btn-subscribe {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  cursor: pointer;
  transition: background .2s;
}
.btn-subscribe:hover { background: var(--accent-dark); }

/* ===== NAVIGATION ===== */
.main-nav {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,.08);
}
.main-nav .nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.main-nav .nav-inner::-webkit-scrollbar { display: none; }

.main-nav a {
  color: rgba(255,255,255,.8);
  font-size: 13px;
  font-weight: 600;
  padding: 13px 10px;
  white-space: nowrap;
  transition: color .2s, border-bottom .2s;
  border-bottom: 3px solid transparent;
  display: block;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
  border-bottom-color: var(--accent);
}

/* ===== NAV MORE DROPDOWN ===== */
.nav-more-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
}
.nav-more-btn {
  color: rgba(255,255,255,.8);
  font-size: 13px;
  font-weight: 600;
  padding: 13px 10px;
  white-space: nowrap;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: color .2s, border-bottom-color .2s;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-main);
}
.nav-more-btn:hover,
.nav-more-btn.active {
  color: var(--white);
  border-bottom-color: var(--accent);
}
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 1px);
  right: 0;
  background: #1c1c1c;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  min-width: 180px;
  z-index: 500;
  padding: 6px 0;
}
.nav-dropdown.open { display: block; }
.nav-dropdown a {
  display: block;
  color: rgba(255,255,255,.75);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
  border-bottom: none !important;
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.nav-dropdown a:hover,
.nav-dropdown a.active {
  color: var(--white);
  background: rgba(255,255,255,.07);
  border-bottom-color: transparent !important;
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: .3s;
  border-radius: 2px;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== AD BANNER ===== */
.ad-banner-top {
  background: var(--white);
  text-align: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.ad-placeholder {
  background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
  border: 2px dashed #bbb;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  cursor: pointer;
  transition: background .2s;
}
.ad-placeholder:hover { background: linear-gradient(135deg, #ddd 0%, #c8c8c8 100%); }
.ad-placeholder .ad-icon { font-size: 22px; margin-bottom: 4px; }
.ad-banner-top .ad-placeholder { height: 90px; max-width: 728px; margin: 0 auto; }

/* ===== MAIN LAYOUT ===== */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  padding: 28px 0;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ===== SECTION HEADER (InfoMoney style) ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: none;
  border-left: 4px solid var(--accent);
  padding: 0 0 0 12px;
}
.section-header h2 {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--dark);
}
.section-header a {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.section-header a:hover { color: var(--accent-dark); }

/* ===== HERO ===== */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  margin-bottom: 36px;
}
.hero-main {
  grid-column: 1;
  grid-row: 1 / 3;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #222;
}
.hero-main img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}
.hero-main .hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.6) 60%, transparent 100%);
  padding: 28px 22px 22px;
}
.hero-main .tag { margin-bottom: 8px; }
.hero-main .hero-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 8px;
  font-family: var(--font-serif);
}
.hero-main .hero-summary {
  font-size: 14px;
  color: rgba(255,255,255,.8);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-main .meta { margin-top: 10px; }

.hero-secondary {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.hero-secondary img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.hero-secondary .card-body {
  padding: 14px 16px 16px;
  flex: 1;
}
.hero-secondary .card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--dark);
  font-family: var(--font-serif);
}
.hero-secondary .card-title:hover { color: var(--accent); }

/* ===== TAG ===== */
.tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  padding: 3px 8px;
  border-radius: 3px;
  background: var(--accent);
  color: var(--white);
  margin-bottom: 6px;
}
.tag.startups  { background: var(--tag-startups); }
.tag.tecnologia { background: var(--tag-tech); }
.tag.saude     { background: var(--tag-saude); }
.tag.industrias { background: var(--tag-industrias); }
.tag.brasil    { background: var(--tag-brasil); }
.tag.mundo     { background: var(--tag-mundo); }
.tag.servicos  { background: var(--tag-servicos); }
.tag.sociedade { background: var(--tag-sociedade); }
.tag.cultura   { background: var(--tag-cultura); }
.tag.futebol   { background: var(--tag-futebol); }

/* ===== META ===== */
.meta {
  font-size: 12px;
  color: var(--gray-light);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.meta .author { font-weight: 600; color: var(--gray); }
.meta .dot::before { content: '·'; }

/* ===== NEWS GRID ===== */
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 36px;
}

/* ===== CARD ===== */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  border-top: 3px solid transparent;
}
.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card .card-body {
  padding: 14px 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card .card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--dark);
  margin-bottom: 8px;
  font-family: var(--font-main);
  flex: 1;
}
.card .card-title:hover { color: var(--accent); }
.card .card-summary {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card border-top by tag category */
.card:has(.tag.startups):hover  { border-top-color: var(--tag-startups); }
.card:has(.tag.tecnologia):hover { border-top-color: var(--tag-tech); }
.card:has(.tag.saude):hover     { border-top-color: var(--tag-saude); }
.card:has(.tag.industrias):hover { border-top-color: var(--tag-industrias); }
.card:has(.tag.brasil):hover    { border-top-color: var(--tag-brasil); }
.card:has(.tag.mundo):hover     { border-top-color: var(--tag-mundo); }
.card:has(.tag.servicos):hover  { border-top-color: var(--tag-servicos); }
.card:has(.tag.sociedade):hover { border-top-color: var(--tag-sociedade); }
.card:has(.tag.cultura):hover   { border-top-color: var(--tag-cultura); }
.card:has(.tag.futebol):hover   { border-top-color: var(--tag-futebol); }

/* ===== CARD HORIZONTAL ===== */
.card-h {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  gap: 0;
  transition: var(--transition);
}
.card-h:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-1px);
}
.card-h img {
  width: 130px;
  min-width: 130px;
  height: 100%;
  object-fit: cover;
}
.card-h .card-body {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card-h .card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--dark);
  font-family: var(--font-serif);
  margin-bottom: 6px;
}
.card-h .card-title:hover { color: var(--accent); }

/* ===== LIST CARDS ===== */
.list-cards { display: flex; flex-direction: column; gap: 16px; }

/* ===== CATEGORY SECTION ===== */
.category-section {
  margin-bottom: 40px;
}
.category-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

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

/* Sticky sidebar ad */
.sidebar-sticky {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.widget-header {
  background: var(--dark);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  padding: 10px 16px;
}
.widget-body { padding: 16px; }

/* Ad sidebar */
.ad-sidebar .ad-placeholder { height: 250px; }
.ad-sidebar-sm .ad-placeholder { height: 160px; }

/* Newsletter widget */
.newsletter-widget .widget-header { background: var(--accent); }
.newsletter-widget .nl-desc {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 14px;
  line-height: 1.5;
}
.newsletter-widget input[type="email"] {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 12px;
  font-size: 13px;
  margin-bottom: 8px;
  outline: none;
  transition: border-color .2s;
  font-family: var(--font-main);
}
.newsletter-widget input[type="email"]:focus { border-color: var(--accent); }
.newsletter-widget .btn-nl {
  width: 100%;
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 10px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  cursor: pointer;
  transition: background .2s;
}
.newsletter-widget .btn-nl:hover { background: var(--accent-dark); }
.newsletter-widget .nl-privacy {
  font-size: 11px;
  color: var(--gray-light);
  margin-top: 8px;
  text-align: center;
}

/* Trending widget */
.trending-list { display: flex; flex-direction: column; gap: 0; }
.trending-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.trending-item:last-child { border-bottom: none; padding-bottom: 0; }
.trending-num {
  font-size: 22px;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
  min-width: 28px;
}
.trending-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--dark);
}
.trending-title:hover { color: var(--accent); }

/* ===== NEWSLETTER SECTION ===== */
.newsletter-section {
  background: linear-gradient(135deg, var(--dark) 0%, #1a1a2e 100%);
  padding: 48px 0;
  margin: 40px 0;
}
.newsletter-section .nl-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 0 24px;
}
.newsletter-section h2 {
  color: var(--white);
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 10px;
}
.newsletter-section p {
  color: rgba(255,255,255,.7);
  font-size: 15px;
  margin-bottom: 24px;
}
.nl-form {
  display: flex;
  gap: 10px;
}
.nl-form input[type="email"] {
  flex: 1;
  padding: 13px 16px;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  outline: none;
  font-family: var(--font-main);
}
.nl-form button {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
}
.nl-form button:hover { background: var(--accent-light); }

/* ===== AD BANNER MID ===== */
.ad-banner-mid {
  background: var(--white);
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  margin: 8px 0 36px;
}
.ad-banner-mid .ad-placeholder { height: 90px; max-width: 970px; margin: 0 auto; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 48px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-brand .logo-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-brand .logo-text span { color: var(--accent); }
.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 280px;
}
.social-links { display: flex; gap: 10px; }
.social-links a {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.8);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: background .2s, color .2s;
}
.social-links a:hover { background: var(--accent); color: var(--white); }

.footer-col h4 {
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  transition: color .2s;
}
.footer-col ul a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 40px;
  padding: 18px 24px;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,.4);
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--white); }
.footer-bottom-links { display: flex; gap: 20px; }

/* ===== CATEGORY PAGE ===== */
.page-hero {
  background: var(--dark);
  color: var(--white);
  padding: 36px 0;
  margin-bottom: 32px;
}
.page-hero .breadcrumb {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  margin-bottom: 10px;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,.5); }
.page-hero .breadcrumb a:hover { color: var(--white); }
.page-hero h1 {
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}
.page-hero .tag { margin-top: 12px; }

.category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 36px;
}
.load-more {
  text-align: center;
  margin: 20px 0 40px;
}
.btn-load {
  background: var(--white);
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 11px 32px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-load:hover { background: var(--accent); color: var(--white); }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--dark);
  color: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 9999;
  transform: translateY(80px);
  opacity: 0;
  transition: transform .35s cubic-bezier(.22,1,.36,1), opacity .35s;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast .toast-icon { font-size: 18px; }

/* ===== RESPONSIVE — 1100px ===== */
@media (max-width: 1100px) {
  .main-layout { grid-template-columns: 1fr 280px; }
  .category-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

/* ===== RESPONSIVE — 860px ===== */
@media (max-width: 860px) {
  .main-layout { grid-template-columns: 1fr; }
  .sidebar-sticky { position: static; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-main { grid-row: auto; }
  .hero-main img { height: 280px; }
  .news-grid { grid-template-columns: 1fr; }
  .category-row { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .hamburger { display: block; }
  .main-nav .nav-inner { justify-content: flex-start; }
  .nl-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== MOBILE NAV ===== */
@media (max-width: 860px) {
  .main-nav {
    display: none;
    background: #111;
    border-top: none;
  }
  .main-nav.nav-mobile-open {
    display: block;
  }
  .main-nav.nav-mobile-open .nav-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 0;
    gap: 0;
    max-height: 70vh;
    overflow-y: auto;
  }
  .main-nav.nav-mobile-open .nav-inner a {
    font-size: 14px;
    padding: 13px 20px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    border-bottom-color: rgba(255,255,255,.06);
    width: 100%;
  }
  /* Mobile: expand dropdown inline, hide the Mais button */
  .main-nav.nav-mobile-open .nav-more-wrap {
    flex-direction: column;
    width: 100%;
  }
  .main-nav.nav-mobile-open .nav-more-btn {
    display: none;
  }
  .main-nav.nav-mobile-open .nav-dropdown {
    display: block;
    position: static;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    min-width: 0;
    padding: 0;
  }
  .main-nav.nav-mobile-open .nav-dropdown a {
    font-size: 14px;
    padding: 13px 20px;
    border-bottom: 1px solid rgba(255,255,255,.06) !important;
    background: transparent;
  }
  .main-nav.nav-mobile-open .nav-dropdown a:hover,
  .main-nav.nav-mobile-open .nav-dropdown a.active {
    background: rgba(255,255,255,.04);
  }
}

/* ===== RESPONSIVE — 560px ===== */
@media (max-width: 560px) {
  .header-top { padding: 10px 16px; }
  .header-top .logo img { height: 40px; }
  .logo-text { font-size: 20px; }
  .header-actions { display: none; }
  .container { padding: 0 16px; }
  .main-layout { padding: 16px; gap: 16px; }
  .hero-grid { display: flex; flex-direction: column; }
  .hero-main img { height: 220px; }
  .hero-main .hero-title { font-size: 18px; }
  .category-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .card img { height: 180px; }
  .two-col-wrap { grid-template-columns: 1fr !important; }
  .card-h img { width: 100px; min-width: 100px; }
  .nl-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .ad-banner-top, .ad-banner-mid { display: none; }
  .back-to-top { bottom: 90px; right: 16px; }
}

/* ===== RSS FEED — loading states & animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rss-card { animation: fadeInUp .35s ease both; }
.rss-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 24px;
  color: var(--gray);
  font-size: 14px;
  grid-column: 1 / -1;
  width: 100%;
}
.rss-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 24px;
  color: var(--gray-light);
  font-size: 14px;
  width: 100%;
}
.spinner {
  width: 22px;
  height: 22px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== REAL BANNER ADS ===== */
.ad-banner-top a img,
.ad-banner-mid a img { display: block; margin: 0 auto; max-width: 100%; height: auto; }
.ad-banner-top a,
.ad-banner-mid a { display: block; text-align: center; }

/* ===== READING PROGRESS ===== */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  z-index: 10001;
  transition: width .1s linear;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 90px;
  right: 28px;
  background: var(--accent);
  color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .3s, transform .3s;
  z-index: 999;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--accent-dark); }

@media (max-width: 860px) {
  .back-to-top { bottom: 70px; right: 16px; }
}

/* ===== MOBILE BOTTOM NAV ===== */
.mobile-bottom-nav {
  display: none;
}
@media (max-width: 860px) {
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #111;
    border-top: 1px solid rgba(255,255,255,.1);
    z-index: 8000;
    padding: 0;
    height: 56px;
  }
  .mobile-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.5);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
    gap: 3px;
    text-decoration: none;
    transition: color .2s;
    padding: 8px 0;
  }
  .mobile-bottom-nav a.active,
  .mobile-bottom-nav a:hover { color: var(--accent); }
  .mobile-bottom-nav a svg,
  .mobile-bottom-nav a .nav-icon { font-size: 18px; line-height: 1; }
  body { padding-bottom: 56px; }
}

/* ===== VAGAS DE EMPREGO ===== */
.job-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: var(--transition);
  border-left: 4px solid transparent;
}
.job-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-left-color: var(--accent);
  transform: translateX(2px);
}
.job-icon {
  width: 52px; height: 52px; min-width: 52px;
  background: var(--gray-bg);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.job-info { flex: 1; }
.job-title { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 4px; line-height: 1.3; }
.job-company { font-size: 13px; color: var(--gray); margin-bottom: 8px; }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.job-badge {
  font-size: 11px; font-weight: 600; padding: 3px 10px;
  border-radius: 20px; background: var(--gray-bg); color: var(--gray-dark);
}
.job-badge.full-time { background: #e8f5e9; color: #2e7d32; }
.job-badge.location  { background: #e3f2fd; color: #1565c0; }
.job-badge.salary    { background: #fff3e0; color: #e65100; }
.job-cta {
  background: var(--accent); color: var(--white);
  padding: 8px 16px; border-radius: var(--radius);
  font-size: 13px; font-weight: 700; text-decoration: none;
  white-space: nowrap; align-self: center;
  transition: background .2s;
}
.job-cta:hover { background: var(--accent-dark); color: var(--white); }
.jobs-list { display: flex; flex-direction: column; gap: 16px; }
.jobs-filter {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 24px;
}
.filter-btn {
  padding: 8px 18px; border-radius: 20px;
  border: 2px solid var(--border); background: var(--white);
  font-size: 13px; font-weight: 600; cursor: pointer;
  color: var(--gray-dark); transition: var(--transition);
  font-family: var(--font-main);
}
.filter-btn.active, .filter-btn:hover {
  background: var(--accent); border-color: var(--accent); color: var(--white);
}
@media (max-width: 560px) {
  .job-card { flex-direction: column; gap: 12px; }
  .job-cta { align-self: flex-start; }
}

/* Vagas hero stats */
.vagas-stats {
  display: flex;
  gap: 32px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.vagas-stat {
  text-align: center;
}
.vagas-stat-num {
  font-size: 32px;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.vagas-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: 4px;
}

/* Vagas CTA box */
.vagas-cta-box {
  background: linear-gradient(135deg, var(--dark) 0%, #1a1a2e 100%);
  border-radius: var(--radius-lg);
  padding: 28px;
  color: var(--white);
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.vagas-cta-box h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.vagas-cta-box p { font-size: 14px; color: rgba(255,255,255,.7); }
.vagas-cta-box .btn-cta {
  background: #25D366; color: var(--white);
  padding: 12px 24px; border-radius: var(--radius);
  font-size: 14px; font-weight: 700;
  white-space: nowrap; text-decoration: none;
  transition: background .2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.vagas-cta-box .btn-cta:hover { background: #1ebe5a; color: var(--white); }

/* ===== PREVISÃO DO TEMPO ===== */
.weather-hero {
  background: linear-gradient(135deg, #1565C0 0%, #0D47A1 50%, #1a237e 100%);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: #fff;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.weather-hero::before {
  content: '';
  position: absolute; top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
}
.weather-city { font-size: 14px; font-weight: 600; opacity: .8; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 1px; }
.weather-temp { font-size: 80px; font-weight: 900; line-height: 1; margin-bottom: 8px; }
.weather-desc { font-size: 18px; font-weight: 500; opacity: .9; text-transform: capitalize; }
.weather-details { display: flex; gap: 24px; margin-top: 20px; flex-wrap: wrap; }
.weather-detail { font-size: 13px; opacity: .8; }
.weather-detail strong { display: block; font-size: 18px; font-weight: 700; opacity: 1; }
.forecast-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
  margin-bottom: 24px;
}
.forecast-card {
  background: var(--white); border-radius: var(--radius);
  padding: 16px 12px; text-align: center;
  box-shadow: var(--shadow-card);
}
.forecast-day { font-size: 12px; font-weight: 700; color: var(--gray); text-transform: uppercase; margin-bottom: 8px; }
.forecast-icon { font-size: 28px; margin-bottom: 8px; }
.forecast-max { font-size: 18px; font-weight: 800; color: var(--dark); }
.forecast-min { font-size: 13px; color: var(--gray-light); }
.weather-loading { text-align: center; padding: 60px 24px; color: var(--gray); font-size: 16px; }
.weather-cities-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  margin-top: 24px;
}
.weather-city-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 20px; box-shadow: var(--shadow-card);
  display: flex; align-items: center; gap: 16px;
  transition: var(--transition);
}
.weather-city-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.weather-city-card .city-icon { font-size: 36px; }
.weather-city-card .city-name { font-size: 15px; font-weight: 700; color: var(--dark); }
.weather-city-card .city-link { font-size: 12px; color: var(--accent); font-weight: 600; }
@media (max-width: 560px) {
  .weather-temp { font-size: 56px; }
  .forecast-grid { grid-template-columns: repeat(3, 1fr); }
  .weather-hero { padding: 24px 20px; }
  .weather-cities-grid { grid-template-columns: 1fr; }
}

/* ===== NOTÍCIAS LOCAIS ===== */
.city-tabs {
  display: flex; gap: 0; border-bottom: 2px solid var(--border);
  margin-bottom: 24px; overflow-x: auto; scrollbar-width: none;
}
.city-tabs::-webkit-scrollbar { display: none; }
.city-tab {
  padding: 12px 20px; font-size: 14px; font-weight: 700;
  color: var(--gray); border-bottom: 3px solid transparent;
  cursor: pointer; white-space: nowrap; transition: var(--transition);
  background: none; border-top: none; border-left: none; border-right: none;
  font-family: var(--font-main);
}
.city-tab.active, .city-tab:hover { color: var(--accent); border-bottom-color: var(--accent); }
.city-panel { display: none; }
.city-panel.active { display: block; }

/* ===== BREADCRUMB (global) ===== */
.breadcrumb {
  font-size: 12px; color: var(--gray-light);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--gray-light); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span::before { content: '›'; margin-right: 6px; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — COMPLETE OVERHAUL
   Breakpoints: 1100 · 860 · 640 · 480 · 380
   These rules are appended last so they override earlier rules
   at the same specificity.
═══════════════════════════════════════════════════════════════ */

/* ── Global: prevent horizontal scroll & text overflow ───── */
html { overflow-x: hidden; }
body { overflow-x: hidden; overflow-wrap: break-word; word-break: break-word; }

/* ── Prevent flex/grid children from overflowing ─────────── */
.content-col,
.card-body,
.card-h .card-body,
.job-info,
.hero-content,
.footer-brand { min-width: 0; }

/* ── Fluid typography — scales with viewport ──────────────── */
.hero-main .hero-title  { font-size: clamp(16px, 4vw, 22px); }
.card .card-title       { font-size: clamp(14px, 3.5vw, 16px); }
.page-hero h1           { font-size: clamp(20px, 5.5vw, 32px); }
.section-header h2      { font-size: clamp(13px, 2.8vw, 16px); }
.newsletter-section h2  { font-size: clamp(18px, 5vw, 26px); }

/* ── Touch targets: minimum 40-44px ──────────────────────── */
.hamburger              { min-width: 44px; min-height: 44px; }
.btn-nl, .btn-load      { min-height: 44px; display: flex; align-items: center; justify-content: center; }
.btn-subscribe          { min-height: 40px; display: inline-flex; align-items: center; }
.filter-btn, .city-tab  { min-height: 40px; }

/* ── Images: always constrained ───────────────────────────── */
img { max-width: 100%; height: auto; }

/* ═══════════════════════════════════════════════════════════
   1100px — Wide tablet / small laptop
═══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .main-layout  { grid-template-columns: 1fr 260px; gap: 22px; }
  .footer-grid  { grid-template-columns: 1.5fr 1fr 1fr; gap: 28px; }
  .category-row { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   860px — Tablet portrait
═══════════════════════════════════════════════════════════ */
@media (max-width: 860px) {

  /* Layout: single column, sidebar below */
  .main-layout {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 24px;
  }

  /* Sidebar: 2-column grid when below content */
  .sidebar-sticky {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
  }

  /* Hero */
  .hero-grid          { grid-template-columns: 1fr; }
  .hero-main          { grid-row: auto; }
  .hero-main img      { height: 300px; }
  .hero-secondary img { height: 130px; }

  /* Content grids: keep 2 cols on tablet (better use of space) */
  .news-grid      { grid-template-columns: 1fr 1fr; }
  .category-row   { grid-template-columns: 1fr 1fr; }
  .category-grid  { grid-template-columns: 1fr 1fr; }

  /* Footer */
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-col h4 { display: block; }

  /* Nav: hamburger + dropdown */
  .hamburger    { display: block; }
  .main-nav     { display: none; border-top: none; background: #111; }
  .main-nav.nav-mobile-open { display: block; }
  .main-nav.nav-mobile-open .nav-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 0;
    gap: 0;
    max-height: 70vh;
    overflow-y: auto;
  }
  .main-nav.nav-mobile-open .nav-inner a {
    font-size: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    width: 100%;
    border-bottom-color: rgba(255,255,255,.06);
  }
  .main-nav .nav-inner { justify-content: flex-start; }

  /* Forms */
  .nl-form { flex-direction: column; }

  /* Misc */
  .back-to-top { bottom: 70px; right: 16px; }

  /* Mobile bottom nav */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #111;
    border-top: 1px solid rgba(255,255,255,.1);
    z-index: 8000;
    height: 56px;
  }
  .mobile-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.5);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
    gap: 3px;
    padding: 8px 0;
    text-decoration: none;
    transition: color .2s;
  }
  .mobile-bottom-nav a.active,
  .mobile-bottom-nav a:hover { color: var(--accent); }
  .mobile-bottom-nav a .nav-icon { font-size: 18px; line-height: 1; }
  body { padding-bottom: 56px; }
}

/* ═══════════════════════════════════════════════════════════
   640px — Large phone / phablet
═══════════════════════════════════════════════════════════ */
@media (max-width: 640px) {

  /* Header */
  .header-top     { padding: 10px 16px; }
  .logo-text      { font-size: 21px; }
  .header-actions { display: none; }

  /* Container & layout */
  .container   { padding: 0 16px; }
  .main-layout { padding: 16px; gap: 18px; }

  /* Card-H: STACK vertically (no more cramped side image) */
  .card-h           { flex-direction: column; }
  .card-h img       { width: 100%; min-width: unset; height: 175px; object-fit: cover; }
  .card-h .card-body { justify-content: flex-start; }

  /* ALL multi-col grids collapse to 1 column */
  .hero-grid     { display: flex; flex-direction: column; }
  .news-grid     { grid-template-columns: 1fr; }
  .category-row  { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr; }
  .two-col-wrap  { grid-template-columns: 1fr !important; }
  .footer-grid   { grid-template-columns: 1fr; }
  .sidebar-sticky { grid-template-columns: 1fr; }

  /* Hero images */
  .hero-main img          { height: 250px; }
  .hero-main .hero-title  { font-size: 18px; }
  .hero-secondary img     { height: 120px; }

  /* Cards */
  .card img        { height: 185px; }
  .card .card-body { padding: 12px 14px 16px; }

  /* Sections */
  .category-section { margin-bottom: 28px; }
  .section-header   { flex-wrap: wrap; gap: 4px; margin-bottom: 14px; }

  /* Footer */
  .footer-bottom       { flex-direction: column; gap: 8px; text-align: center; padding: 16px; }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; gap: 12px; }
  .footer-brand p      { max-width: 100%; }

  /* Newsletter */
  .newsletter-section { padding: 36px 0; }

  /* Weather: 3 cols on large phone */
  .forecast-grid       { grid-template-columns: repeat(3, 1fr); }
  .weather-temp        { font-size: 54px; }
  .weather-hero        { padding: 24px 18px; }
  .weather-cities-grid { grid-template-columns: 1fr; }

  /* Job cards */
  .job-card { flex-direction: column; gap: 12px; }
  .job-cta  { align-self: flex-start; width: 100%; text-align: center; }

  /* Banners */
  .ad-banner-top, .ad-banner-mid { display: none; }

  /* Back to top */
  .back-to-top { bottom: 70px; right: 12px; }
}

/* ═══════════════════════════════════════════════════════════
   480px — Standard phone
═══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .hero-main img           { height: 220px; }
  .hero-main .hero-title   { font-size: 17px; }
  .hero-main .hero-summary { -webkit-line-clamp: 2; }
  .hero-secondary img      { height: 110px; }

  .card img        { height: 170px; }
  .card-h img      { height: 165px; }
  .card .card-body { padding: 12px 14px; }

  .page-hero h1    { font-size: 22px; }
  .page-hero       { padding: 26px 0; }
  .section-header h2 { font-size: 14px; }

  .weather-temp    { font-size: 48px; }
  .forecast-grid   { grid-template-columns: repeat(2, 1fr); }

  .nl-form input[type="email"] { font-size: 14px; padding: 12px 14px; }
  .nl-form button  { font-size: 14px; padding: 12px 16px; }
}

/* ═══════════════════════════════════════════════════════════
   380px — Small phones (iPhone SE, Galaxy A, older Androids)
═══════════════════════════════════════════════════════════ */
@media (max-width: 380px) {
  .logo-text    { font-size: 17px; }
  .header-top   { padding: 8px 14px; }
  .hamburger    { left: 14px; }
  .container    { padding: 0 12px; }
  .main-layout  { padding: 12px; gap: 12px; }

  .hero-main img           { height: 195px; }
  .hero-main .hero-title   { font-size: 15px; }
  .hero-main .hero-summary { display: none; }

  .card img            { height: 155px; }
  .card-h img          { height: 150px; }
  .card .card-body     { padding: 10px 12px 14px; }
  .card .card-title    { font-size: 14px; }

  .section-header h2   { font-size: 13px; }
  .section-header      { margin-bottom: 12px; }

  .forecast-grid       { grid-template-columns: repeat(2, 1fr); }
  .weather-temp        { font-size: 42px; }
  .weather-hero        { padding: 18px 14px; }
  .weather-detail strong { font-size: 14px; }

  .newsletter-section h2 { font-size: 19px; }
  .newsletter-section    { padding: 28px 0; }

  .footer-bottom   { padding: 12px; font-size: 11px; }
  .footer-grid     { gap: 20px; }

  .trending-num    { font-size: 18px; }
  .trending-title  { font-size: 12px; }

  .page-hero h1    { font-size: 20px; }
  .page-hero       { padding: 22px 0; }

  .back-to-top     { bottom: 70px; right: 10px; width: 36px; height: 36px; font-size: 16px; }
}
