@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

/* RESET */
body.blog-mode {
  margin: 0;
  padding: 0;
  background: #1e1e21;
  color: #e0e0e0;
  font: 400 15px/1.5 "Montserrat", sans-serif;
  min-height: 100vh;
  overflow: visible !important;
}

/* CONTAINER */
.cl-container,
.cl-wrapper {
  width: 1120px;
  max-width: 92vw;
  margin: 0 auto;
}

/* HEADER */
.cl-header .cl-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
}

.cl-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

/* MENU NAV */
.cl-nav {
  display: flex;
  align-items: center;
  gap: 0;
  transition: none;
}
.cl-nav a {
  color: #e0e0e0;
  margin-left: 38px;
  text-decoration: none;
  font-size: 15px;
  font-family: "Montserrat", sans-serif;
}
.cl-nav a:hover {
  color: white;
}

/* HAMBURGER BUTTON (ESCONDIDO NO DESKTOP) */
.cl-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1101;
  margin-left: 8px;
}
.cl-hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  margin: 5px 0;
  background: white;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Animação do hamburguer virando X (ALINHADO) */
.cl-hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.cl-hamburger.active span:nth-child(2) {
  opacity: 0;
}
.cl-hamburger.active span:nth-child(3) {
  transform: translateY(-18px) rotate(-45deg);
}

/* GRID DE POSTS */
.cl-wrapper {
  margin-top: 70px;
}

.cl-post {
  display: grid;
  grid-template-columns: 260px 1fr 180px;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.cl-thumb {
  width: 260px;
  height: 170px;
  overflow: hidden;
  border-radius: 3px;
}
.cl-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s;
}
.cl-thumb:hover img {
  transform: scale(1.07);
}

.cl-title {
  font: 700 28px/1.25 "Montserrat", sans-serif;
  margin: 0;
  display: flex;
  align-items: center;
  min-height: 170px;
}
.cl-title a {
  text-decoration: none;
  color: white;
  font-family: "Montserrat", sans-serif;
}
.cl-title a:hover {
  text-decoration: underline;
}

/* meta */
.cl-meta {
  position: relative;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cl-cat {
  display: block;
  font-weight: 600;
  letter-spacing: 2px;
  font-size: 12px;
  font-family: "Montserrat", sans-serif;
}
.cl-date {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #bbbbbb;
  font-family: "Montserrat", sans-serif;
}
.cl-bar {
  position: absolute;
  right: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: white;
}

/* CORES POR CATEGORIA */
.cl-modern-colors .cl-title a,
.cl-modern-colors .cl-cat,
.cl-modern-colors .cl-bar {
  color: white;
  background: white;
}
.cl-earth-and-fire .cl-title a,
.cl-earth-and-fire .cl-cat,
.cl-earth-and-fire .cl-bar {
  color: #ff9d23;
  background: #ff9d23;
}
.cl-default .cl-title a,
.cl-default .cl-cat,
.cl-default .cl-bar {
  color: #8af6ff;
  background: #8af6ff;
}

/* PAGINAÇÃO */
.cl-pagination {
  text-align: center;
  margin: 40px 0 0 0;
}
.cl-pagination .page-numbers {
  display: inline-block;
  margin: 0 8px;
  color: white;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  padding: 2px 10px;
  border-radius: 4px;
  transition: background 0.15s;
}
.cl-pagination .current,
.cl-pagination .page-numbers:hover {
  background: #1c2c2c;
  color: #fff;
}

/* FOOTER PADRÃO */
.cl-footer {
  margin-top: 30px;
  padding: 45px 0;
  background: #232328;
}
.cl-footer .cl-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
}
.cl-footer small {
  font-size: 12px;
  font-family: "Montserrat", sans-serif;
}
.cl-social {
  display: flex;
  gap: 20px;
}
.cl-social a {
  color: white;
  text-decoration: none;
  font-size: 1.45rem;
  font-family: "Montserrat", sans-serif;
  display: inline-flex;
  align-items: center;
}
.cl-social a:hover {
  text-decoration: underline;
  color: white;
}

/* ========== FOOTER MOBILE SOCIAL ICONS (SOMENTE MOBILE) ========== */
.cl-footer-social-mobile {
  display: none;
}

@media (max-width: 900px) {
  .cl-meta {
  margin-right: 1rem;
  }
}

/* Esconde .cl-social no mobile, mostra .cl-footer-social-mobile em linha */
@media (max-width: 700px) {
  body {
    padding: 0 8px;
  }
  .cl-footer-social-mobile {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
    margin-top: 8px;
    width: 100%;
  }
  .cl-footer-social-mobile a {
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.2s;
  }
  .cl-footer-social-mobile a:hover {
    color: white;
  }
  .cl-social {
    display: none !important;
  }
  .cl-footer .cl-container {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .cl-footer small {
    text-align: center;
    font-size: 13px;
  }
}

/* ========== SINGLE POST BLOG ========== */
.single-blog-wrapper {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  margin-top: 70px;
  width: 1120px;
  max-width: 92vw;
  margin-left: auto;
  margin-right: auto;
}

.single-blog-main {
  flex: 2;
  /* ==== CORREÇÃO DE TAMANHO IGUAL TWENTY ==== */
  max-width: 1000px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.single-blog-title {
  font-family: "Montserrat", sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 5px;
  margin-top: 20px;
  color: #e0e0e0;
  text-align: left;
  max-width: 95%;
}

.single-blog-date {
  margin-bottom: 50px;
  color: #bbbbbb;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  text-align: left;
}

/* Limita largura real do conteúdo, textos e imagens dentro do post */
.single-blog-content {
  font-size: 1.23rem;
  line-height: 1.55;
  font-family: "Montserrat", sans-serif;
  color: #e0e0e0;
  text-align: left;

  width: 100%;
  max-width: 980px;
  margin-right: auto;
  overflow-x: auto;
  box-sizing: border-box;
  word-break: break-word;
}
.single-blog-content img,
.single-blog-content table,
.single-blog-content pre,
.single-blog-content code,
.single-blog-content iframe {
  max-width: 100%;
  height: auto;
  box-sizing: border-box;
  display: block;
  margin: 1.2em 0;
}

/* SIDEBAR */
.single-blog-sidebar {
  flex: 1;
  max-width: 180px;
  margin-top: 40px;
  align-items: flex-end;
  text-align: right;
}
.single-blog-sidebar-section {
  margin-bottom: 44px;
  margin-left: 10px;
}
.single-blog-sidebar-title {
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
  color: #c9c9c9;
  font-weight: 600;
}
.single-blog-sidebar-post {
  margin-bottom: 22px;
}
.single-blog-sidebar-post-title {
  color: #fff;
  font-size: 18px;
  font-family: "Montserrat", sans-serif;
  text-decoration: none;
  transition: color 0.2s;
  display: inline-block;
}
.single-blog-sidebar-post-title:hover {
  color: white;
  text-decoration: underline;
}
.single-blog-sidebar-post-date {
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  color: #b3b3b3;
  margin-top: 3px;
}
.single-blog-sidebar-author-desc {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #e0e0e0;
}

/* RESPONSIVO SINGLE */
@media (max-width: 1100px) {
  body {
    padding: 0 8px;
  }
  .single-blog-wrapper {
    flex-direction: column;
    gap: 0;
    width: 98vw;
    max-width: 100vw;
    margin-top: 32px;
    align-items: stretch;
  }
  .single-blog-main,
  .single-blog-sidebar {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .single-blog-main,
  .single-blog-content {
    max-width: 92vw;
    padding-left: 0;
    padding-right: 0;
  }
  .single-blog-sidebar {
    margin-top: 32px;
    padding-left: 0;
    padding-right: 0;
  }
}



/* MOBILE: margem para título/data/wrapper do post, mas NÃO para o conteúdo do post */
@media (max-width: 650px) {
  body {
    padding: 0 8px;
  }
  .single-blog-wrapper {
    margin-top: 20px;
    margin-left: 6px;
    margin-right: 0;
  }
  .single-blog-title,
  .single-blog-date {
    margin-left: 10px;
    margin-right: 0;
    max-width: 95%;
  }
  .single-blog-title {
    font-size: 1.5rem;
    margin-top: 10px;
    margin-bottom: 8px;
  }
  .single-blog-content {
    font-size: 1rem;
    line-height: 1.5;
    max-width: 92vw;
    padding: 13px 8px;
    margin-left: 0; /* SEM MARGEM, só padding interno */
    margin-right: 0;
  }
  .single-blog-date {
    margin-bottom: 30px;
    font-size: 0.97rem;
  }
  .single-blog-sidebar {
    margin-top: 28px;
  }
  .single-blog-sidebar-section {
    margin-bottom: 30px;
    margin-left: 10px;
  }
  .single-blog-sidebar-title {
    font-size: 13px;
    margin-bottom: 9px;
  }
  .single-blog-sidebar-post-title {
    font-size: 15px;
  }
  .single-blog-sidebar-post-date {
    font-size: 12px;
  }
  .single-blog-sidebar-author-desc {
    font-size: 14px;
  }
}

/* Pequenos ajustes para evitar esticar/quebrar */
.single-blog-main,
.single-blog-sidebar {
  box-sizing: border-box;
}

/* RESPONSIVO HOME E BLOG */
@media (max-width: 900px) {
  body {
    padding: 0 8px;
  }
  .cl-post {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .cl-thumb {
    width: 100%;
    height: 200px;
  }
  .cl-meta {
    min-height: auto;
  }
  .cl-bar {
    height: 50px;
  }
  .cl-title {
    min-height: auto;
  }
}

/* ===== MENU HAMBURGER MOBILE ===== */
@media (max-width: 900px) {
  .cl-hamburger {
    display: flex;
  }
  .cl-nav {
    position: fixed;
    top: 0;
    right: -100vw;
    width: 220px;
    height: 100vh;
    background: #18181b;
    box-shadow: -2px 0 20px 0 rgba(0, 0, 0, 0.08);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: 70px 20px 20px 28px;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1100;
    margin: 0;
  }
  .cl-nav.open {
    right: 0;
  }
  .cl-nav a {
    margin: 0 0 22px 0;
    font-size: 18px;
    width: 100%;
    display: block;
    color: white;
  }
}
