/*
Theme Name: Luna Blog
Author: Webtagger
Version: 1.0
*/

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&display=swap");

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Montserrat", Arial, sans-serif;
  background: #efefef;
  color: #000;
  font-weight: 300;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* HEADER IGUAL AO SITE */

.site-header {
  width: 100%;
  background: #ffffff;
  border-top: 3px solid #2d2d2d;
  border-bottom: 1px solid #ededed;
  position: relative;
  z-index: 10;
}

.site-header-inner {
  width: 100%;
  min-height: 98px;
  padding: 16px 48px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo img {
  width: 135px;
  height: auto;
  display: block;
}

.site-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
}

.language-flags {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1;
}

.flag-separator {
  width: 1px;
  height: 14px;
  background: #444;
  opacity: 0.6;
}

.site-menu {
  display: flex;
  align-items: center;
  gap: 34px;
}

.site-menu a {
  font-size: 15px;
  letter-spacing: 2.5px;
  color: #000;
  font-weight: 400;
  text-transform: uppercase;
}

.site-menu a:hover {
  color: #f5a12b;
}

/* BLOG EM CARDS IGUAL À SEÇÃO DE CURSOS */

.blog-cursos-wrap {
  background: #efefef;
  padding: 70px 20px 90px;
}

.blog-cursos-container {
  max-width: 1110px;
  margin: 0 auto;
}

.blog-cursos-title {
  text-align: center;
  color: #f5a12b;
  font-size: 48px;
  line-height: 1.1;
  margin: 0 0 40px;
  font-weight: 300;
}

.blog-cursos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-card {
  background: #fff;
  border: 1px solid #d4d4d4;
  min-height: 585px;
  display: flex;
  flex-direction: column;
}

.blog-card-image {
  display: block;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: #ddd;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-content {
  padding: 38px 28px 42px;
  text-align: center;
  color: #000;
  flex: 1;
}

.blog-card-title {
  margin: 0 0 6px;
  font-size: 25px;
  line-height: 1.15;
  font-weight: 300;
}

.blog-card-title a {
  color: #f5a12b;
}

.blog-card-type {
  font-size: 17px;
  margin-bottom: 28px;
  color: #000;
}

.blog-card-excerpt {
  font-size: 17px;
  line-height: 1.45;
  color: #000;
  margin: 0 0 24px;
}

.blog-card-button {
  display: inline-block;
  background: #ffc367;
  border: 1px solid #f5a12b;
  color: #000;
  padding: 12px 36px;
  font-size: 16px;
  text-decoration: none;
}

.blog-card-button:hover {
  background: #f5a12b;
}

/* SINGLE POST */

.blog-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 70px 20px 90px;
  background: #efefef;
  color: #000;
}

.blog-container h1 {
  color: #f5a12b;
  font-size: 46px;
  line-height: 1.15;
  font-weight: 300;
  text-align: center;
  margin: 0 0 35px;
}

.blog-container img {
  display: block;
  margin: 0 auto 35px;
}

.blog-container p {
  font-size: 18px;
  line-height: 1.8;
}

/* FOOTER IGUAL AO SITE */

.site-footer {
  background: #ffffff;
  border-top: 1px solid #eeeeee;
  position: relative;
  padding: 80px 48px;
}

.site-footer-inner {
  max-width: 1110px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  color: #000;
  font-size: 17px;
  font-weight: 300;
}

.footer-copy a {
  color: #000;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-socials a {
  color: #000;
  font-size: 22px;
}

.footer-socials a:hover {
  color: #f5a12b;
}

.scroll-top {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  background: #ffc367;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

/* RESPONSIVO */

@media (max-width: 991px) {
  .site-header-inner {
    padding: 18px 24px;
    flex-direction: column;
    gap: 20px;
  }

  .site-header-right {
    align-items: center;
  }

  .site-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px 26px;
  }

  .blog-cursos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-cursos-title {
    font-size: 38px;
  }

  .site-footer-inner {
    flex-direction: column;
    gap: 25px;
    text-align: center;
  }
}

@media (max-width: 650px) {
  .site-logo img {
    width: 120px;
  }

  .site-menu {
    gap: 14px;
  }

  .site-menu a {
    font-size: 13px;
    letter-spacing: 1.5px;
  }

  .blog-cursos-grid {
    grid-template-columns: 1fr;
  }

  .blog-card {
    min-height: auto;
  }

  .blog-cursos-title,
  .blog-container h1 {
    font-size: 34px;
  }

  .site-footer {
    padding: 55px 20px 80px;
  }

  .scroll-top {
    right: 50%;
    top: auto;
    bottom: 24px;
    transform: translateX(50%);
  }
}

.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 36px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 32px;
  height: 2px;
  background: #000;
  margin: 7px auto;
  transition: 0.3s;
}

@media (max-width: 991px) {
  .site-header {
    position: relative;
  }

  .site-header-inner {
    min-height: 82px;
    padding: 14px 22px;
    flex-direction: row;
    justify-content: space-between;
  }

  .site-logo img {
    width: 112px;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .site-header-right {
    display: none;
    width: 100%;
    position: absolute;
    top: 82px;
    left: 0;
    background: #fff;
    border-top: 1px solid #ededed;
    box-shadow: 0 14px 30px rgba(0,0,0,0.08);
    padding: 22px 24px 28px;
  }

  .site-header.menu-open .site-header-right {
    display: block;
  }

  .site-menu {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .site-menu a {
    width: 100%;
    padding: 15px 0;
    text-align: center;
    font-size: 14px;
    letter-spacing: 2px;
    border-bottom: 1px solid #eee;
  }

  .site-menu a:last-child {
    border-bottom: 0;
  }

  .site-header.menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .site-header.menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .blog-cursos-wrap {
    padding: 45px 18px 65px;
  }

  .blog-cursos-title {
    font-size: 36px;
    margin-bottom: 30px;
  }

  .blog-cursos-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .blog-card {
    min-height: auto;
  }

  .blog-card-image {
    height: 250px;
  }

  .blog-card-content {
    padding: 30px 24px 34px;
  }

  .blog-card-title {
    font-size: 24px;
  }

  .blog-card-excerpt {
    font-size: 16px;
  }

  .site-footer {
    padding: 45px 20px 80px;
  }

  .site-footer-inner {
    flex-direction: column;
    gap: 22px;
    text-align: center;
  }

  .footer-copy {
    font-size: 14px;
    line-height: 1.5;
  }

  .footer-socials a {
    font-size: 23px;
  }

  .scroll-top {
    right: 50%;
    top: auto;
    bottom: 22px;
    transform: translateX(50%);
  }
}

/* BLOG  */

.blog-page-wrap {
  background: #efefef;
  padding: 70px 20px 90px;
}

.blog-page-container {
  max-width: 1110px;
  margin: 0 auto;
}

.blog-page-header {
  text-align: center;
  margin-bottom: 45px;
}

.blog-page-subtitle {
  display: block;
  color: #000;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.blog-page-description {
  max-width: 680px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.6;
}

/* POST DESTAQUE */

.featured-post {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  background: #fff;
  border: 1px solid #d4d4d4;
  margin-bottom: 50px;
}

.featured-post-image {
  display: block;
  min-height: 430px;
  overflow: hidden;
}

.featured-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-post-content {
  padding: 55px 45px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-label {
  color: #f5a12b;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.featured-post h2 {
  font-size: 36px;
  line-height: 1.15;
  font-weight: 300;
  margin: 0 0 22px;
  color: #f5a12b;
}

.featured-post p {
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 28px;
}

/* CARDS 100% ALINHADOS */

.blog-cursos-grid {
  align-items: stretch;
}

.blog-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card-image {
  flex: 0 0 250px;
}

.blog-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-title {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-title a {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-excerpt {
  min-height: 78px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 28px;
}

.blog-card-footer {
  margin-top: auto;
}

/* PAGINAÇÃO */

.blog-pagination {
  margin-top: 55px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-pagination .page-numbers {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #d4d4d4;
  background: #fff;
  color: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
  background: #ffc367;
  border-color: #f5a12b;
}

/* SINGLE POST MELHORADO */

.single-blog-wrap {
  background: #efefef;
  padding: 70px 20px 90px;
}

.single-blog-container {
  max-width: 1110px;
  margin: 0 auto;
}

.single-post {
    background: transparent !important;
    border: none !important;
    padding: 20px !important;
}

.single-post-header {
  text-align: center;
  margin-bottom: 40px;
}

.single-back {
  display: inline-block;
  margin-bottom: 25px;
  color: #f5a12b;
  font-size: 15px;
}

.single-post-header h1 {
  color: #f5a12b;
  font-size: 48px;
  line-height: 1.15;
  font-weight: 300;
  margin: 0 0 15px;
}

.single-meta {
  font-size: 15px;
  color: #555;
}

/* CARROSSEL */

.single-carousel {
  position: relative;
  overflow: hidden;
  margin-bottom: 45px;
  background: #eee;
}

.single-carousel-track {
  display: flex;
  transition: transform 0.35s ease;
}

.single-carousel-slide {
  min-width: 100%;
  height: 520px;
}

.single-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: #ffc367;
  color: #000;
  width: 44px;
  height: 44px;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.carousel-prev {
  left: 18px;
}

.carousel-next {
  right: 18px;
}

.single-post-content {
  max-width: 820px;
  margin: 0 auto;
}

.single-post-content p {
  font-size: 19px;
  line-height: 1.85;
  margin-bottom: 26px;
}

.single-post-content h2,
.single-post-content h3 {
  color: #f5a12b;
  font-weight: 300;
  margin-top: 45px;
}

/* RELACIONADOS */

.related-posts {
  margin-top: 65px;
}

.related-posts h2 {
  text-align: center;
  color: #f5a12b;
  font-size: 38px;
  font-weight: 300;
  margin-bottom: 35px;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* MOBILE */

@media (max-width: 991px) {
  .featured-post {
    grid-template-columns: 1fr;
  }

  .featured-post-image {
    min-height: 310px;
  }

  .featured-post-content {
    padding: 38px 28px;
    text-align: center;
  }

  .featured-post h2 {
    font-size: 30px;
  }

  .related-posts-grid {
    grid-template-columns: 1fr;
  }

  .single-post {
    padding: 35px 24px;
  }

  .single-post-header h1 {
    font-size: 34px;
  }

  .single-carousel-slide {
    height: 310px;
  }
}

@media (max-width: 650px) {
  .blog-page-wrap,
  .single-blog-wrap {
    padding: 45px 18px 65px;
  }

  .blog-page-description {
    font-size: 16px;
  }

  .featured-post-image {
    min-height: 250px;
  }

  .featured-post-content {
    padding: 32px 24px;
  }

  .featured-post h2 {
    font-size: 27px;
  }

  .blog-card-title {
    min-height: auto;
  }

  .blog-card-excerpt {
    min-height: auto;
  }

  .single-post {
    padding: 28px 18px;
  }

  .single-carousel-slide {
    height: 250px;
  }

  .carousel-btn {
    width: 38px;
    height: 38px;
    font-size: 27px;
  }

  .single-post-content p {
    font-size: 17px;
    line-height: 1.75;
  }
}

/* CONTEÚDO INTERNO DO POST */

.single-post-content {
  max-width: 820px;
  margin: 0 auto;
  color: #1d1d1d;
}

.single-post-content p {
  font-size: 19px;
  line-height: 1.9;
  margin: 0 0 26px;
  font-weight: 300;
}

.single-post-content h2 {
  color: #f5a12b;
  font-size: 34px;
  line-height: 1.25;
  font-weight: 300;
  margin: 55px 0 22px;
  text-align: center;
}

.single-post-content h3 {
  color: #f5a12b;
  font-size: 26px;
  line-height: 1.3;
  font-weight: 300;
  margin: 42px 0 18px;
}

.single-post-content ul,
.single-post-content ol {
  max-width: 620px;
  margin: 28px auto 36px;
  padding: 0;
  list-style: none;
}

.single-post-content li {
  position: relative;
  font-size: 19px;
  line-height: 1.75;
  margin-bottom: 14px;
  padding-left: 32px;
}

.single-post-content li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0;
  color: #f5a12b;
  font-size: 17px;
}

.single-post-content blockquote {
  background: #fff8ed;
  border-left: 4px solid #ffc367;
  margin: 45px auto;
  padding: 32px 36px;
  font-size: 24px;
  line-height: 1.55;
  color: #1d1d1d;
  text-align: center;
}

.single-post-content blockquote p {
  margin: 0;
  font-size: 24px;
  line-height: 1.55;
}

.single-post-content strong {
  font-weight: 500;
  color: #000;
}

.single-post-content em {
  color: #6b4a22;
}

.single-post-content hr {
  border: 0;
  width: 90px;
  height: 1px;
  background: #ffc367;
  margin: 46px auto;
}

.single-post-content a {
  color: #f5a12b;
  border-bottom: 1px solid rgba(245, 161, 43, 0.45);
}

.single-post-content a:hover {
  color: #000;
  border-color: #000;
}

@media (max-width: 650px) {
  .single-post-content p {
    font-size: 17px;
    line-height: 1.75;
  }

  .single-post-content h2 {
    font-size: 28px;
    margin: 42px 0 18px;
  }

  .single-post-content h3 {
    font-size: 23px;
  }

  .single-post-content li {
    font-size: 17px;
  }

  .single-post-content blockquote,
  .single-post-content blockquote p {
    font-size: 20px;
  }

  .single-post-content blockquote {
    padding: 26px 24px;
  }
}
.blog-card-content {
  text-align: left;
}

.blog-card-title {
  min-height: 58px;
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.2;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
}

.blog-card-title a {
  text-align: left;
  -webkit-line-clamp: 2;
}

.blog-card-excerpt {
  text-align: left;
}

.blog-card-footer {
  text-align: left;
}

.featured-post-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

.featured-post-image img {
    width: 100% !important;
    height: 400px !important;
    object-fit: cover !important;
}

.blog-card-image img {
    width: 100% !important;
    height: 250px !important;
    object-fit: cover !important;
}

.blog-card-image {
    height: 250px !important;
    background: none !important;
}

.single-blog-container {
    max-width: 700px !important;
    margin: 0 auto !important;
    padding: 60px 20px !important;
}

.single-post-content {
    padding: 0 !important;
}

.single-post-header {
    padding-bottom: 20px !important;
}

.language-switcher {
    font-size: 1.2rem !important;
}

.fi {
    width: 0.9em !important;
}

.featured-post {
    align-items: stretch !important;
}

.featured-post-image {
    align-self: stretch !important;
}

.featured-post-image img {
    height: 100% !important;
    object-fit: cover !important;
}

.single-post-content h1,
.single-post-content h2,
.single-post-content h3 {
    text-align: left !important;
}

.related-posts {
    max-width: 1110px !important;
    width: 100% !important;
    margin: 40px auto 0 !important;
    padding: 0 20px !important;
}

.blog-page-wrap {
    padding: 70px 20px 90px;
}

.blog-page-wrap {
    padding: 30px 20px 90px !important;
}

.single-blog-wrap {
    padding-top: 0px !important;
}

.single-blog-container {
    padding-top: 10px !important;
}

.single-blog-wrap {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

.single-blog-wrap {
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
}

html, body {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.single-post-header {
    margin-bottom: 5px !important;
}

.single-post-content img,
.single-post-content iframe,
.single-post-content video {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto 26px !important;
}

.single-post-content iframe {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9 !important;
    display: block !important;
    margin: 0 auto 26px !important;
}

.single-post-content img,
.single-post-content iframe,
.single-post-content video {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
}

.single-post-content {
    overflow-x: hidden !important;
    word-break: break-word !important;
}

.single-post-content h3 {
    margin-top: 0px !important;
}

.single-post-content {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.single-blog-container {
    padding-bottom: 0 !important;
}

.single-post-content h2 {
    margin-top: 10px !important;
}

.single-blog-wrap {
    padding-top: 0 !important;
}

.single-post-header {
    padding-top: 20px !important;
}