*{
    margin:0;
    padding: 0;
    box-sizing: border-box;
    font-family: "League Spartan", sans-serif; /* Aplica la fuente League Spartan a todos los elementos */
  }
  body{
    margin: 0;
    padding: 0;
    overflow-y: scroll; /* Habilita el scroll vertical */
    background-image: url('../img/BuscarEmpleoFondo.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: local !important;
  }
  
  .container::-webkit-scrollbar {
    width: 8px;  /* Tamaño del scroll en vertical */
    height: 8px;  /* Tamaño del scroll en horizontal */
    display: none;  /* Ocultar scroll */
  }
  

  
  /* Estilo texto de la pagina */
  .titulo_blog{
    font-size: 40px;
    color: #2a3952; 
    font-weight: bold; /* Hace que el texto esté en negrita */
    margin-left: 55px;
    margin-top: 15px;
  }
  
  .opciones a:hover {
    opacity: 0.7; /* Reducción de la opacidad al pasar el mouse */
  }
  
/* CSS for Responsive Search Bar */

.search-bar {
  display: flex; /* Enable flexbox layout */
  justify-content: flex-end; /* Align items to the right end */
  align-items: center; /* Maintain vertical alignment */
  max-width: 500px; /* Adjust as needed for desired width */
  margin: 0 auto; /* Center the search bar horizontally */
}

.responsive-input {
  flex: 1; /* Make input fill available space */
  padding: 10px; /* Adjust padding as needed */
  border: 1px solid #ccc; /* Optional border */
  border-radius: 5px; /* Optional rounded corners */
  font-size: 16px; /* Adjust font size as needed */
}

#searchButton {
  padding: 10px 20px; /* Increase padding for larger size */
  font-size: 18px; /* Increase font size for larger text */
  border: none; /* Remove default button border */
  background-color: gray; /* Example button color */
  color: #fff; /* Example button text color */
  cursor: pointer;
}

@media (max-width: 768px) {
  .search-bar {
    flex-wrap: wrap; /* Wrap elements on smaller screens */
    width: 90%; /* Make search bar occupy most of the width */
  }

  .responsive-input {
    width: 100%; /* Ensures full width on smaller screens */
  }

  #searchButton {
    padding: 8px 15px; /* Adjust padding for smaller screens */
    font-size: 16px; /* Adjust font size for smaller screens */
  }
}

@media (max-width: 480px) {
  .search-bar {
    width: 95%; /* Make search bar occupy most of the width */
  }
}

.search-bar>* { /* Target all direct children of .search-bar */
  align-self: center; /* Align each child vertically */
}

  
  
  .post-list{
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
    margin-top: 50px;
  }
  
  .content{
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas por defecto */
    grid-gap: 20px;
    max-width:1000px;
    margin: auto;
  }
  
.post-img{
  width: 100%; 
  height: 200px;
  background-size: cover;
  background-position: center;
  transition: .2s;
}

.post{
  box-shadow: 0 1px 6px 1px rgba(0, 0, 0, .1);
  transition: .2s;
  /* overflow: hidden; */
}
.post:hover{
  transform: translateY(-4px);
  box-shadow: 0 1px 6px 1px rgba(0, 0, 0, .15);
}

.post-header{
  width: 100%;
  height: 200px;
  /* overflow: hidden; */
cursor: pointer;
}
.post:hover .post-img-1,
.post:hover .post-img-2,
.post:hover .post-img-3,
.post:hover .post-img-4,
.post:hover .post-img-5{
  transform: scale(1.1);
}

.post-body{
  padding: 15px;
  text-align: center;
}

.post-body span{
  display: inline-block;
  color: #999;
  margin-bottom: 10px;
}

.post-body h2{
  margin-bottom: 15px;
}

.post-body p{
  line-height: 1.5;
  margin-bottom: 20px;
}

.post-body .post-link{
  display: block;
  text-decoration: none;
  padding: 10px;
  background: #2b6ebb;
  color: #fff;
  width: 50%;
  margin: auto;
  border-radius: 20px;
  box-shadow: 1px 2px 6px 1px rgba(0, 0, 0, .1);
  transition: .2s;
}

.post-body .post-link:hover{
  background: #3378c7;
  box-shadow: 1px 2px 6px 1px rgba(0, 0, 0, .1);
  transform: translateY(-2px);
}


/* Blogs responsive */
@media (max-width:840px) {
  .content{
    grid-template-columns: repeat(2, 1fr); /* 2 columnas para pantallas más pequeñas */
  }
}

@media (max-width:600px) {
  .content{
    grid-template-columns: repeat(1, 1fr); /* 1 columna para pantallas aún más pequeñas */
  }
}
  