/*
* This file has been refactored to use the global variables
* defined in style/main.css.
*/

/* ========================================= */
/* Main Elements */
/* ========================================= */

/* Layout */
.blog-page-container {
  display: flex;
  flex-direction: column;
  gap: 35px;
  margin: 50px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* [!!!] CHANGED to 3 fixed columns [!!!] */
  gap: 25px;
  width: 100%;
}


.call {
  background-color: var(--color-brand-yellow-dark); /* Refactored */
}

.whats {
  background-color: var(--color-whatsapp); /* Refactored */
}

.linkedin {
  background-color: var(--color-social-linkedin); /* Refactored */
}

/* ========================================= */
/* Responsive Design */
/* ========================================= */

/* Tablets */
@media (max-width: 992px) {
  .blog-page-container {
    margin: 30px 20px;
  }

  .pagination {
    flex-direction: row;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr); /* [!!!] ADDED 2-column for tablets [!!!] */
  }
}

/* Mobiles */
@media (max-width: 600px) {

  .blog-page-container {
    margin: 20px;
    gap: 20px;
  }

  .contactCollection {
    position: relative;
    top: auto;
    width: 100%;
  }
  
  .blog-grid {
    grid-template-columns: 1fr; /* This correctly makes it 1-column */
  }
}