.hero-actualidad {
  width: 100%;
  background-image: url('/wp-content/uploads/2025/07/actualidad-colegio-alfinach.webp');  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-inner {
  max-width: 1440px;
  width: 90%;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-weight: 700;
  color: #fff;
  margin: 0;
  /* No se define font-family para que herede del tema */
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
}


/* Layout básico */
.container {
  width: 90%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Hero grid */
.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .hero-grid {
    flex-direction: row;
    align-items: center;
    text-align: left;
    justify-content: space-between;
  }
}

.hero-text,
.hero-image {
  flex: 1;
}

/* Filtros */
.blog-filters {
  margin-top: 50px;
  margin-bottom: 50px;
}

.blog-filters-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .blog-filters-wrapper {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.filter-buttons {}

.filter-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #f9f9f9;
  color: #333;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, border 0.2s;
  border-radius: 10px;
  margin: 5px 15px 15px 5px;
  padding: 10px 20px 10px 20px !important;
  font-weight: 600 !important;
  font-size: 17px;
}

.filter-btn.active,
.filter-btn:hover {
  background-color: #ff9933;
  color: white;
  text-decoration: none;
}

/* Buscador */
.search-form {
  	flex: 1;
	text-align: right;
}

.search-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.search-input {
  width: 250px;
  padding: 10px !important;
  text-align: center;
  border-radius: 10px;
  background-color: #f9f9f9 !important;
}
.search-input:hover,
.search-input:focus,
.search-input:active {
  background-color: #fff !important;
  cursor: pointer;
}


/* Blog grid limpio y validado */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.post-card {
  display: flex;
}

/* Card */
.card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-img-wrapper {
  width: 100%;
  height: 300px;
  overflow: hidden;
  background-color: #f2f2f2;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.card-body {
  padding: 1rem;
  margin-top: 35px;
}

.card-title {
  margin: 0 0 0.5rem;
}

.card-link {
  text-decoration: none;
  color: #000;
}

.card-text {
  color: #555;
  line-height: normal;
}
.card-text a {
  color: #666 !important;
}

.card-date {
  padding: 3px;
  margin-left: 0px;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  border: 1px solid #fff;
  border-radius: 12px;
  margin-top: -70px;
  width: 250px;
  text-align: center;
}

/* Paginación */
.pagination-wrapper {
  text-align: center;
  margin-top: 2rem;
}

.arrow {
  width: 12px;
  height: auto;
}

.post-category {
  background-color: #ff9933;
  color: #fff;
  margin-left: 35px;
  padding: 5px 15px;
  border-radius: 6px;
  font-weight: 600;
  position: absolute;
  margin-top: 5px;
}

/* Centrado en móviles */
@media (max-width: 767px) {
  .post-category {
    left: 50%;
    transform: translateX(-50%);
    margin-left: 0;
	text-align: center;
	padding: 0px;
  }
}


.related-posts .posts-grid,
.post-nav-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.related-posts .post-card,
.post-navigation .nav-block {
  flex: 1 1 calc(33.33% - 2rem);
}

.related-posts,
.post-navigation h5 {
	font-size: 1.3rem;
    margin-bottom: 4rem;
    color: #ff9933;
}

.related-title {
	font-size: 1.3rem;
    margin-bottom: 2rem;
	margin-top: 4rem;
    color: #ff9933;
}

.post-navigation {
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.post-navigation .nav-block {
  text-align: left;
}

.nav-block.nav-next {
  text-align: right;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #333;
}

.nav-link:hover {
  color: #ff9933;
}

.nav-title {
  font-weight: 500;
}

.nav-date {
  display: block;
  font-size: 0.875rem;
  color: #666;
  margin-top: 0.5rem;
}

.arrow {
  width: 12px;
  height: 12px;
}

.rotate-left {
  transform: rotate(180deg);
}

@media (max-width: 768px) {
  .related-posts .post-card,
  .post-navigation .nav-block {
    flex: 1 1 100%;
    text-align: center;
  }

  .nav-block.nav-next {
    text-align: center;
  }

  .post-nav-wrapper {
    flex-direction: column;
    align-items: center;
  }
}

.single-hero {
  padding: 4rem 0 4rem 0;
  background-color: #f9f9f9;
  text-align: left;
}

.single-hero .post-date {
  font-size: 1.1rem;
  color: #ff9933;
  margin-bottom: 1rem;
	font-weight: 600;
}

.breadcrumb-custom {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.breadcrumb-custom a {
  text-decoration: none;
  color: #333;
  transition: color 0.2s;
}

.breadcrumb-custom a:hover {
  color: #ff9933;
}

.breadcrumb-custom span {
  margin: 0 0.1rem;
  color: #999;
}

.breadcrumb-custom .current {
  font-weight: 500;
  color: #555;
}

.post-title {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 1.5rem;
}

.post-categories {
  margin-top: 1rem;
}

.post-category-link {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  margin: 5px 10px 10px 0px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 500;
  color: #000;
  border: 1px solid #ff9933;
  background-color: transparent;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.post-category-link:hover {
  background-color: #ff9933;
  color: #fff;
}

.post-category-link.active {
  background-color: #ff9933;
  color: #fff;
}

.post-content {
	margin-top: 2rem;
}

.single-post-page .container {
	width: 90%;
	max-width: 1440px;
}
.page-numbers {
	display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding-left: 0;
    list-style: none;
    margin-top: 2rem;
    margin-bottom: 2rem;
}
.social-icons {
	margin-top: 3rem;
	margin-bottom: 2rem;
	text-align: right;
}