* {
  box-sizing: border-box;
}

:root {
  --scrollbar-space: calc(100vw - 100%);
}

html {
  scroll-behavior: smooth;
}

body {
  width: auto;
  margin: 0;
  padding: 0;
  color: #18211d;
  background: #f6fbfb;
  font-family: Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: #006ec8;
}

a:hover,
a:focus {
  color: #018b49;
}

.barra {
  position: fixed;
  top: 0;
  width: 100%;
  height: 36px;
  background: linear-gradient(#018b49 50%, #019bfd 50%);
  padding-top: 3px;
  padding-left: 2px;
  box-shadow: 0 3px 5px grey;
  z-index: 10;
}

.titulo {
  position: fixed;
  top: 0;
  left: 32px;
  width: calc(100% - 70px);
  height: 32px;
  z-index: 11;
  text-align: center;
  font-size: 30px;
  line-height: 32px;
  font-weight: 800;
  color: red;
  -webkit-text-stroke-width: 1.5px;
  -webkit-text-stroke-color: #4e4c4c;
  -webkit-text-fill-color: red;
  pointer-events: none;
}

.logo {
  position: fixed;
  top: 2px;
  left: 3px;
  z-index: 12;
}

.logo img {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 3px;
}

#navicon {
  position: fixed;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  background: linear-gradient(#018b49 50%, #019bfd 50%);
  position: fixed;
  top: 0;
  right: var(--scrollbar-space);
  z-index: 13;
  width: 38px;
  height: 32px;
}

.hamburger {
  width: 31px;
  position: relative;
  display: inline-block;
  height: 28px;
  background: #fff;
  cursor: pointer;
  border-radius: 7px;
  z-index: 14;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.hamburger span {
  width: 23px;
  background: #990000;
  display: block;
  position: absolute;
  right: 4px;
  height: 5px;
  border-radius: 2px;
  transition: 0.25s ease;
}

.hamburger span:nth-child(1) {
  top: 4px;
}

.hamburger span:nth-child(2) {
  top: 12px;
}

.hamburger span:nth-child(3) {
  top: 20px;
}

.sidebar {
  width: min(70%, 360px);
  max-width: 92vw;
  height: calc(100vh - 36px);
  position: fixed;
  top: 36px;
  right: var(--scrollbar-space);
  z-index: 12;
  background: #63c2fe;
  border-left: 1px solid #018b49;
  visibility: hidden;
  opacity: 0;
  transform: translateX(16px);
  transition: 0.25s ease;
  overflow-y: auto;
}

.menu-overlay {
  position: fixed;
  inset: 36px var(--scrollbar-space) 0 0;
  z-index: 11;
  display: none;
  background: transparent;
  cursor: default;
}

#navicon:checked ~ .sidebar {
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
}

#navicon:checked ~ .menu-overlay {
  display: block;
}

#navicon:checked ~ .nav-toggle > .hamburger span {
  top: 12px;
}

#navicon:checked ~ .nav-toggle > .hamburger span:nth-child(1),
#navicon:checked ~ .nav-toggle > .hamburger span:nth-child(2) {
  transform: rotate(45deg);
}

#navicon:checked ~ .nav-toggle > .hamburger span:nth-child(3) {
  transform: rotate(-45deg);
}

.menu {
  width: 100%;
  color: #fff;
  border: 1px solid #000;
  margin-top: 0;
}

.menu ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  background-color: #fff;
}

.menu li {
  position: relative;
  border-bottom: 1px solid #d8f1ff;
}

.menu li a {
  color: #990000;
  text-decoration: none;
  padding: 9px 10px;
  display: block;
  font-size: 18px;
  font-weight: 700;
}

.menu li a:hover,
.menu li a:focus {
  background-color: #019bfd;
  color: #fff;
}

main {
  padding-top: 36px;
}

.container {
  width: min(1120px, calc(100% - 24px));
  margin: 0 auto;
}

.hero {
  padding: 12px 0 16px;
  background: linear-gradient(180deg, #eafafa 0%, #fff 100%);
  border-bottom: 1px solid #b7e3e3;
  text-align: center;
}

h1 {
  margin: 0 auto 8px;
  color: #035f35;
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
  line-height: 1.16;
}

h2 {
  margin: 0 auto 14px;
  color: #044d7d;
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  line-height: 1.25;
}

.hero p,
.seo-block p,
.faq p {
  max-width: 880px;
  margin: 10px auto;
  font-size: 1rem;
}

.ad-slot {
  clear: both;
  display: block;
  width: min(1120px, calc(100% - 24px));
  min-height: 120px;
  margin: 16px auto;
  padding: 8px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #d4eeee;
  text-align: center;
}

.section-heading {
  width: min(1120px, calc(100% - 24px));
  margin: 18px auto 10px;
}

.section-heading h2 {
  margin: 0;
  padding: 12px;
  border: 1px solid #990000;
  border-radius: 8px;
  background: linear-gradient(#018b49 50%, #019bfd 50%);
  color: red;
  text-align: center;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-weight: 800;
  -webkit-text-stroke-width: 0.45px;
  -webkit-text-stroke-color: #fff;
  -webkit-text-fill-color: red;
  box-shadow: 0 4px 5px rgba(0, 0, 0, 0.25);
}

.card-grid {
  width: min(1180px, calc(100% - 20px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.card {
  overflow: hidden;
  border: 1px solid #018b49;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.card-title {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-bottom: 1px solid #018b49;
  background: #0078bd;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 1.06rem;
  line-height: 1.2;
  font-weight: 800;
}

.card-link:hover .card-title,
.card-link:focus .card-title {
  background: #007a45;
  color: #fff;
}

.card img {
  display: block;
  width: 100%;
  aspect-ratio: 380 / 220;
  height: auto;
  object-fit: cover;
  background: #def1f1;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.card-link:hover img,
.card-link:focus img {
  opacity: 0.82;
  transform: scale(1.045);
}

.seo-block,
.faq,
.links-section {
  padding: 18px 0;
}

.seo-block {
  background: #fff;
  border-top: 1px solid #d4eeee;
  border-bottom: 1px solid #d4eeee;
  text-align: center;
}

.faq {
  background: #edfafa;
}

.faq details {
  max-width: 880px;
  margin: 10px auto;
  border: 1px solid #b7e3e3;
  border-radius: 6px;
  background: #fff;
}

.faq summary {
  cursor: pointer;
  padding: 11px 14px;
  color: #035f35;
  font-weight: 800;
}

.faq details p {
  padding: 0 14px 14px;
  text-align: left;
}

.links-section {
  background: #fff;
  text-align: center;
}

.article-page main {
  background: #f6fbfb;
}

.article-shell {
  padding-bottom: 8px;
}

.article-hero {
  padding: 14px 0 18px;
  background: linear-gradient(180deg, #eafafa 0%, #fff 100%);
  border-bottom: 1px solid #b7e3e3;
  text-align: center;
}

.breadcrumb {
  margin: 0 auto 10px;
  color: #4a625d;
  font-size: 0.9rem;
}

.breadcrumb a {
  font-weight: 800;
  text-decoration: none;
}

.article-intro {
  max-width: 860px;
  margin: 0 auto 14px;
  color: #0d3f63;
  font-size: 1.05rem;
  font-weight: 700;
}

.article-image {
  width: min(380px, 100%);
  margin: 16px auto 0;
}

.article-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 380 / 220;
  object-fit: cover;
  border: 1px solid #018b49;
  border-radius: 6px;
  box-shadow: 6px 6px 5px rgba(30, 30, 30, 0.28);
}

.article-content {
  width: min(880px, calc(100% - 24px));
  margin: 16px auto;
  padding: 18px;
  border: 1px solid #d4eeee;
  border-radius: 6px;
  background: #fff;
  color: #1d2926;
}

.article-content p {
  margin: 0 0 14px;
  font-size: 1rem;
}

.article-content h2,
.article-content h3 {
  margin: 22px 0 12px;
  color: #035f35;
  text-align: left;
}

.article-content h2 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}

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

.article-list {
  margin: 0 0 16px;
  padding-left: 22px;
}

.article-list li {
  margin: 4px 0;
}

.article-content blockquote {
  margin: 18px 0;
  padding: 16px 18px;
  border-left: 5px solid #018b49;
  background: #eefafa;
  color: #193c35;
  font-weight: 700;
}

.share-box {
  padding: 18px 0;
  background: #edfafa;
  border-top: 1px solid #d4eeee;
  border-bottom: 1px solid #d4eeee;
  text-align: center;
}

.share-box h2 {
  margin-bottom: 8px;
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.share-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border: 1px solid #b7e3e3;
  border-radius: 6px;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.share-buttons a:hover,
.share-buttons a:focus {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16);
}

.share-buttons img {
  width: 50px;
  height: 50px;
  display: block;
}

.related-grid {
  margin-bottom: 18px;
}

.tags,
.partners {
  font-size: 0.92rem;
  color: #044d7d;
}

.tags a,
.partners a {
  text-decoration: none;
  font-weight: 700;
}

.tags a:hover,
.partners a:hover {
  color: #f00;
  text-decoration: underline;
}

footer {
  width: 100%;
  margin-top: 12px;
  padding: 18px 10px 24px;
  background: #066F3D;
  color: #fff;
  text-align: center;
  font-size: 0.85rem;
}

@media (max-width: 590px) {
  .titulo {
    font-size: 25px;
    line-height: 32px;
  }

  .sidebar {
    width: 82%;
  }

  .menu li a {
    font-size: 17px;
    padding: 10px;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .card-title {
    min-height: 54px;
    font-size: 1rem;
  }
}

@media (min-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1220px) {
  .card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
