/* Estilos Carousel Categorias */
.categories-carousel {
  position: relative;
  margin-bottom: 60px;
  text-align: center;
}

.categories-heading {
  margin-top: 0px;
  margin-bottom: 40px;
  font-family: Fredoka, sans-serif;
  color: #425eb1;
  text-align: center;	
}

.categories-container {
  /*display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;*/
  max-width: 1100px;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 40px;
  /*
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;*/
}

.div-block {
  display: -ms-grid;
  display: grid;
  width: 95%;
  margin-bottom: 40px;
  margin-left: auto;
  margin-right: auto;
  grid-auto-columns: 1fr;
  grid-auto-rows: 13em;
  grid-column-gap: 20px;
  grid-row-gap: 20px;
  -ms-grid-columns: 1fr 1fr 1fr;
  grid-template-columns: 1fr 1fr 1fr;
  -ms-grid-rows: 13em;
  grid-template-rows: 13em;
}

.category-thumb {
  position: relative;
  overflow: hidden;
  width: 20em;
  height: 12em;
  border-radius: 20px;
}

.category-thumb.lenguaje-comunicacion, .category-thumb.construindo-significados {
  background-image: linear-gradient(225deg, #cc0031, #ed0a56);
}

.category-thumb.desarrollo-personal, .category-thumb.aprendendo-a-viver-em-sociedade {
  background-image: linear-gradient(225deg, #f50, #ff7200);
}

.category-thumb.logica-matematica, .category-thumb.com-os-numeros-em-mente {
  background-image: linear-gradient(180deg, #0098ed, #00c9ff);
}

.category-thumb.creatividad, .category-thumb.aprendendo-a-criar {
  background-image: linear-gradient(225deg, #8900e2, #f0f);
}

.category-thumb.aprendizaje-social, .category-thumb.explorando-o-mundo {
  background-image: linear-gradient(225deg, #ff8500, #fada14);
}

.category-thumb.desarrollo-fisico-salud, .category-thumb.entrando-em-acao {
  background-image: linear-gradient(225deg, #0bad60, #07ed64);
  background-image: -webkit-gradient(linear, left top, left bottom, from(#0bad60), to(#07ed64));
}

.category-thumb-text {
  position: absolute;
  left: 0%;
  top: auto;
  right: 0%;
  bottom: 0%;
  z-index: 4;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  height: 50%;
  margin-top: auto;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-align-self: center;
  -ms-flex-item-align: center;
  align-self: center;
  font-family: Fredoka, sans-serif;
  color: #fff;
  font-size: 1.7em;
  line-height: 1.2em;
  font-weight: 700;
	text-align: center;
  padding: 0px 24px;
}

.category-thumb-img {
  position: absolute;
  left: auto;
  top: 0%;
  right: 0%;
  bottom: 0%;
  z-index: 1;
  max-width: 100%;
  height:100%;
  border-radius: 15px;
}

.category-icon {
  position: absolute;
  left: 6%;
  top: 0%;
  right: auto;
  bottom: auto;
  z-index: 3;
  display: block;
  width: 60px;
  margin-top: 20px;
  margin-right: auto;
  margin-left: auto;
}

.shader {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  background-image: -webkit-gradient(linear, left top, left bottom, from(transparent), to(rgba(0, 0, 0, 0.3)));
  background-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.3));
}

.category-button {
	position: relative;
	width: 250px;
	margin-top: 20px;
	margin-bottom: 0px;
	padding: 15px;
	border-radius: 30px;
	background-color: #1881c5;
	font-family: Fredoka, sans-serif;
	color: #fff;
	font-size: 19px;
	font-weight: 700;
	text-align: center;
}

.category-button:hover {
	background-color: #45a0db;
}

.category-button:active {
	background-color: #186aa0;
}

/* Fin estilos Carousel Categorias */

/* Grid 3-col portrait — shared by puzzles + coloring vertical layout */
.books-block-3col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 17em 17em;
  grid-column-gap: 20px;
  grid-row-gap: 20px;
  width: 95%;
  margin: 0 auto 40px;
  justify-items: center;
}

/* Estilos Carousel Books */
.books-carousel {
  position: relative;
  margin-bottom: 60px;
}

.books-container {
  max-width: 95%;
  margin-right: auto;
  margin-bottom: 40px;
  margin-left: auto;

}

.books-block {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 20% 20% 20% 20% 20%;
  grid-template-columns: 20% 20% 20% 20% 20%;
  -ms-grid-rows: 17em;
  grid-template-rows: 17em;
  justify-items: center;
  margin-bottom: 0px;
}

.book-thumb {
  position: relative;
  overflow: hidden;
  width: 11.5em;
  height: 17em;
  border-radius: 20px;
  background-image: linear-gradient(225deg, #ed0a56, #cc0031);
}

.book-thumb-text {
  position: absolute;
  left: 0%;
  top: auto;
  right: 0%;
  bottom: 0%;
  z-index: 4;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  height: 50%;
  margin-top: auto;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-align-self: center;
  -ms-flex-item-align: center;
  align-self: center;
  font-family: Fredoka, sans-serif;
  color: #fff;
  font-size: 1.5em;
  line-height: 1.5em;
  font-weight: 700;
	text-align: center;
}

.book-thumb-img {
  position: absolute;
  left: auto;
  top: 0%;
  right: 0%;
  bottom: 0%;
  z-index: 1;
  max-width: 100%;
  height:100%;
}

/* Fin estilos Carousel Books */



@media screen and (min-width: 1920px) {

  .categories-container {
    max-width: 1100px;
  }
  
  .div-block {
    margin-top: 0px;
    margin-bottom: 0px;
    grid-row-gap: 40px;
    -ms-grid-rows: auto auto;
    grid-template-rows: auto auto;
  }

}

@media screen and (max-width: 991px) {
  .books-block-3col {
    grid-template-rows: 16em 16em;
  }
}

@media screen and (max-width: 767px) {
  .books-block-3col {
    grid-template-columns: 33% 33% 33%;
    grid-template-rows: 11em 11em;
  }
}

@media screen and (max-width: 479px) {
  .books-block-3col {
    grid-template-columns: 50% 50%;
    grid-template-rows: 13em 13em 13em;
  }
}

@media screen and (max-width: 991px) {

  .categories-carousel {
    margin-bottom: 0px;
  }

  .categories-heading {
    margin-top: 0px;
    margin-bottom: 20px;
    font-size: 2em;
  }

  .categories-container {
    width: 95%;
    max-width: none;
    margin-right: auto;
    margin-left: auto;
  }

  .div-block {
    width: 100%;
    grid-auto-rows: 10em;
    grid-template-rows: 10em;
  }

  .category-thumb {
    width: 100%;
    height: 100%;
    border-radius: 15px;
  }

  .category-thumb-text {
    padding: 8px 16px;
    font-size: 1.3em;
  }

  .category-icon {
    width: 40px;
	  margin-top: 10px;
  }
  
  .category-button {
		width: 220px;
		margin-top: 30px;
		margin-bottom: 0px;
		padding-top: 15px;
		padding-bottom: 15px;
		-webkit-transition: all 150ms ease;
		transition: all 150ms ease;
	}
  .books-block {
    grid-template-rows: 16em ;
  }
  .book-thumb {
    width: 9.5em;
    height: 16em;;
  }

  .book-thumb-text {
    display:none;
  }
}

@media screen and (max-width: 767px) {

  .categories-heading {
    font-size: 1.5em;
  }

  .category-icon {
    width: 2.7em;
    margin-top: 1.2em;
  }
  .div-block {
    width: 100%;
    /*height: 39em;*/
    grid-column-gap: 10px;
    grid-row-gap: 20px;
    -ms-grid-columns: 0.5fr 0.5fr;
    grid-template-columns: 0.5fr 0.5fr;
    -ms-grid-rows: auto auto auto;
    grid-template-rows: auto auto auto;
  }
  .category-thumb-text {
    padding-right: 16px;
    padding-left: 16px;
    font-size: 1.4em;
  }
  .categories-container {
    width: 95%;
    max-width: none;
  }
  .category-thumb {
    width: 265px;
    height: 165px;
  }

  .button {
		width: 200px;
		padding-top: 12px;
		padding-bottom: 12px;
		font-size: 1.3em;
	}
}

@media screen and (max-width: 479px) {

  .categories-carousel {
    width: 95vw;
    margin-right: auto;
    margin-left: auto;
  }
  .categories-container {
    position: relative;
    width: 100%;
    max-width: none;
    margin-right: auto;
    margin-left: auto;
  }
  .categories-heading {
    margin-bottom: 20px;
    font-size: 1.3em;
    line-height: 1.6em;
  }
  .category-icon {
    width: 2.5em;
    margin-top: 0.5em;
  }
  .div-block {
    position: relative;
    display: -ms-grid;
    display: grid;
    width: 100%;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-grid-row-align: auto;
    align-self: auto;
    -webkit-box-flex: 0;
    -webkit-flex: 0 auto;
    -ms-flex: 0 auto;
    flex: 0 auto;
    grid-auto-columns: 1fr;
    grid-column-gap: 16px;
    grid-row-gap: 16px;
    -ms-grid-columns: 0.5fr 0.5fr;
    grid-template-columns: 0.5fr 0.5fr;
    -ms-grid-rows: 7em;
    grid-template-rows: 7em;
    grid-auto-rows: 7em;
  }
  .category-thumb-text {
    width: 95%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 16px;
    padding-left: 16px;
    font-size: 1em;
  }
  .category-thumb {
    width: 100%;
    height: 100%;
    max-height: 225px;
    border-radius: 10px;
  }

  .books-block {
    -ms-grid-columns: 33% 33% 33%;
    grid-template-columns: 33% 33% 33%;
    grid-auto-rows: 0;
    overflow-y: hidden;
    grid-template-rows: 11em;
  }

  .book-thumb {
    width: 7em;
    height: 11em;
  }
}

/* ── Article single: category bubble above the title ────────────────────── */
.section-title.blog-title .inner-wrap > a {
  display: inline-block;
  margin: 0 5px 12px 5px;
  padding: 5px 16px;
  background-color: #2550b2;
  color: #fff !important;
  font-family: Fredoka, sans-serif;
  font-size: 0.85em;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none !important;
  border-radius: 50px;
  line-height: 1.4;
}

.section-title.blog-title .inner-wrap > a:hover {
  background-color: #007bbf;
  color: #fff !important;
  text-decoration: none !important;
}

