* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #fafafa;
  font-family: "Inter", sans-serif;
  color: #222;
  margin: 0;
  text-align: justify;
  line-height: 1.7;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: white;
  border-bottom: 1px solid #e5e7eb;
}

.logo {
  font-size: 28px;
  color: #1f2937;
  font-family: "Rye", serif;
  font-weight: 900;
  font-style: normal;
}

#logo-link {
  text-decoration: none;
  color: #1f2937;
}

#menuBtn {
  background-color: transparent;
  border: none;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 70%;
  height: 100%;
  background: white;
  padding: 2rem;
  transition: 0.3s;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.mobile-menu a {
  display: block;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

.mobile-menu.open {
  left: 0;
}

ul {
  margin-left: 8%;
}

.hero {
  text-align: center;
  padding: 4rem 1rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.btn {
  background: #2563eb;
  color: white;
  padding: 0.8rem 1.6rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
}

.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

#categories-link {
  color:rgb(62, 62, 215);
  text-decoration: none;
}
.card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.content {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem 1.5rem;
}

.content > h1 {
  font-size: 32px;
  color: #111827;
  line-height: 1.6;
}
.content > h2 {
  font-size: 24px;
  color: #2563eb;
  margin-bottom: 1rem;
}
.content > h3 {
  font-size: 20px;
  color: #2563eb;
}
.content > p {
  color: #1f2937;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.content > img {
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
}

.latest-articles {
  margin-top: 4rem;
}

.latest-articles h2 {
  margin-bottom: 2rem;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.article-card {
  background: #ffffff;
  padding: 1.8rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.article-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.article-card p {
  font-size: 0.95rem;
  color: #4b5563;
}

.site-footer {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  margin-top: 5rem;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.site-footer h4 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.site-footer p {
  font-size: 0.95rem;
  color: #4b5563;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: #2563eb;
  font-size: 0.95rem;
}

.footer-bottom {
  text-align: center;
  padding: 1.2rem;
  font-size: 0.85rem;
  color: #6b7280;
  border-top: 1px solid #e5e7eb;
}

.article-container {
  display: flex;
  justify-content: center;
  padding: 40px 16px;
  background-color: #ffffff;
}

.article-content {
  max-width: 800px;
  width: 100%;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: #1a1a1a;
  line-height: 1.7;
}

.article-content h1 {
  font-size: 2.2rem;
  line-height: 1.3;
  margin-bottom: 20px;
}

.article-content h2 {
  font-size: 1.6rem;
  margin-top: 40px;
  margin-bottom: 12px;
}

.article-content h3 {
  font-size: 1.2rem;
  margin-top: 24px;
  margin-bottom: 6px;
  color: #333;
}

.article-content p {
  font-size: 1rem;
  margin-bottom: 16px;
}

.article-intro {
  font-size: 1.05rem;
  color: #444;
}

.article-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 24px 0;
}

.article-content a {
  color: #0066cc;
  text-decoration: underline;
}

.article-content a:hover {
  text-decoration: none;
}

/**/
/* OVERLAY */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9998;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* MENU */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 260px;
  height: 100vh;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  padding: 1.2rem 1rem;
  gap: 0.4rem;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -6px 0 24px rgba(0, 0, 0, 0.15);
  z-index: 9999;
}

.mobile-menu.active {
  right: 0;
}

/* LINKS */
.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  text-decoration: none;
  color: #111827;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 12px;
  transition: background 0.25s ease, color 0.25s ease;
}

/* HOVER */
.mobile-menu a:hover {
  background: #f3f4f6;
}

/* ITEM ATIVO */
.mobile-menu a.active {
  background: #eef2ff;
  color: #2563eb;
  font-weight: 600;
}

.mobile-menu a.active .material-symbols-outlined {
  color: #2563eb;
}

/* ICONES */
.material-symbols-outlined {
  font-size: 22px;
  color: #6b7280;
  transition: color 0.25s ease;
}

/* ANIMAÇÃO SUAVE DO MENU */
.mobile-menu {
  transition: left 0.35s ease-out;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .article-content h1 {
    font-size: 1.8rem;
  }

  .article-content h2 {
    font-size: 1.4rem;
  }
}

.desktop-nav {
  display: none;
}

@media (min-width: 768px) {
  #menuBtn {
    display: none;
  }

  .mobile-menu,
  .menu-overlay {
    display: none;
  }

  .header {
    padding: 1rem 2.5rem;
  }

  .desktop-nav {
    display: flex;
    justify-content: center;
    gap: 1.8rem;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.8rem 1rem;
  }

  .desktop-nav a {
    text-decoration: none;
    font-weight: 500;
    color: #1f2937;
  }

  .content {
    max-width: 1000px;
  }
}

@media (min-width: 1024px) {
  .header {
    max-width: 1200px;
    margin: 0 auto;
  }

  .desktop-nav {
    max-width: 1200px;
    margin: 0 auto;
    justify-content: space-between;
  }

  .hero h1 {
    font-size: 3.2rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .content {
    max-width: 1200px;
  }
}

@media (min-width: 1440px) {
  body {
    font-size: 18px;
  }

  .content,
  .footer-container,
  .desktop-nav,
  .header {
    max-width: 1400px;
  }

  .hero {
    padding: 6rem 2rem;
  }
}

/* ===== ACTIVE LINK (GLOBAL) ===== */
.desktop-nav a.active,
.mobile-menu a.active {
  color: #2563eb;
  font-weight: 600;
  position: relative;
}

/* underline elegante no desktop */
.desktop-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: #2563eb;
  border-radius: 2px;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #111827;
  text-align: left;
}

@media (min-width: 768px) {
  .article-container {
    padding: 60px 24px;
  }

  .article-content {
    max-width: 900px;
    font-size: 1.05rem;
  }

  .article-content h1 {
    font-size: 2.6rem;
  }

  .article-content h2 {
    font-size: 1.75rem;
  }

  .article-content h3 {
    font-size: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .article-container {
    display: flex;
    justify-content: center;
    padding: 80px 32px;
  }

  .article-content {
    max-width: 780px;
    font-size: 1.1rem;
  }

  .article-content h1 {
    font-size: 3rem;
    line-height: 1.25;
  }

  .article-content h2 {
    font-size: 1.9rem;
  }

  .article-content h3 {
    font-size: 1.3rem;
  }

  .article-image {
    margin: 36px 0;
  }
}

@media (min-width: 1440px) {
  .article-container {
    padding: 100px 32px;
  }

  .article-content {
    max-width: 820px;
    font-size: 1.15rem;
  }

  .article-content h1 {
    font-size: 3.2rem;
  }
}

/* ===== CATEGORY / CATALOG PAGES ===== */
.content > .article-content {
  max-width: 800px;
}

@media (min-width: 768px) {
  .content > .article-content {
    max-width: 900px;
  }
}

@media (min-width: 1024px) {
  .content > .article-content {
    max-width: 1000px;
  }
}

