/* ==========================
   RESET
========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Inter, Segoe UI, sans-serif;
  background: #0b1220;
  color: #111827;
}

/* ==========================
   CONTAINER
========================== */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 40px 20px;
}

.container-wide {
  max-width: 1300px;
}


/* ==========================
   INTRO
========================== */
.templates-intro {
  margin-bottom: 50px;
}

h1 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 30px;
}


.templates-intro h1 {
  max-width: 900px;
  margin: 30px 0;
  font-size: 1.4rem;
  line-height: 1.4;
  color: #ffffff;
}

/* ==========================
   HERO
========================== */
.blog-hero {
  width: 100%;
  height: 620px;
  /*max-height: 260px;*/       
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 35px;
}

.blog-hero img {
 width: 100%;
  height: 620px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ==========================
   SEARCH
========================== */
.search-box {
  display: flex;
  gap: 12px;
}

.search-box input {
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #ddd;
}

.search-box button {
  padding: 14px 24px;
  border-radius: 12px;
  border: none;
  background: #4f46e5;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.search-box button:hover {
  background: #4338ca;
}

/* ==========================
   GRID
========================== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* ==========================
   CARD
========================== */
.post {
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: .25s;
}

.post:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 30px rgba(0,0,0,.15);
}

.post-img-box {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
}

.post-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.post h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.post p {
  color: #4b5563;
  line-height: 1.6;
}

.post-footer {
  margin-top: auto;
  text-align: right;
}

/* ==========================
   BUTTON
========================== */
.btn-read {
  padding: 10px 18px;
  background: #4f46e5;
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}

.btn-read:hover {
  background: #4338ca;
}

/* ==========================
   PAGINATION
========================== */
.pagination {
  margin-top: 40px;
  text-align: center;
}

.pagination a {
  padding: 10px 16px;
  margin: 4px;
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  color: #111;
  font-weight: 600;
}

.pagination a.active {
  background: #4f46e5;
  color: #fff;
}

/* ==========================
   FOOTER
========================== */
footer {
  margin: 60px 0 30px;
  text-align: center;
  color: #fff;
}

/* ==========================
   RESPONSIVE
========================== */
@media (max-width: 992px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-hero {
    height: 260px;
  }
}

@media (max-width: 600px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }

  .search-box {
    flex-direction: column;
  }

  .blog-hero {
    height: 200px;
  }
}

.volver-container {
    text-align: right;
    width: 100%;
}
.btn-volver {
    align-content: right;
    display: inline-block;
    padding: 10px 20px;
    color: #f8f9fb;
    font-weight: 600;
    text-decoration: none;       
    transition: 0.25s ease;    
}

.btn-volver:hover {    
    color: #00e5ff;
    transform: translateY(-2px);    
}


/* Tablet */
@media (max-width: 992px) {
  .blog-hero,
  .blog-hero img {
    height: 220px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .blog-hero,
  .blog-hero img {
    height: 200px;
    border-radius: 14px;
  }
}






/* Logo section Starts */
.btn-logo {
  position: absolute;
  width: 77px;
  height: 77px;
  top: 7px;
  /*bottom:20px;*/
  left: 9px;
  background: transparent;
  z-index: 5000;
}

.img-responsive3 {
  width: 100px;
  top: 45px;
  left: 5px;
}

@media only screen and (min-width: 320px) and (max-width: 768px) {
  .btn-logo {
    width: 55px;
  }
}
/* Logo section Ends */

