/* ===================================================================
 * # RECENT ARTICLES SECTION
 *
 *
 * ------------------------------------------------------------------- */
.recent-articles {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    padding: var(--vspace-2) 0;
    margin-top: 80px;
}

/* --------------------------------------------------------------------
 * # PRODUCTS - HEAD
 * -------------------------------------------------------------------- */
.recent-articles-head {
    display: flex;
    align-items: center;
    padding: 0 0 var(--vspace-1_5) 0;
}

.recent-articles-title {
    line-height: 1;
    color: var(--color-black);
    padding: 0 0 0 calc(var(--gutter) * 2);
    position: relative;
    font-family: 'Monument Extended Ultra Bold';
    margin: 0;
}

/* --------------------------------------------------------------------
 * # RECENT ARTICLES - BODY
 * -------------------------------------------------------------------- */

.recent-articles-body {
    height: fit-content;
}

.recent-articles-body-wrapper {
    margin: 0;
    padding: 0 calc(var(--gutter)* 2);
    display: flex;
    flex-flow: row wrap;
}

.recent-articles-body-wrapper .column {
    margin: 0 0 var(--vspace-0_5) 0;
}

.recent-articles-card {
    position: relative;
    margin: 0 var(--vspace-0_25);
    transition: 0.5s;
    cursor: pointer;
}

.recent-articles-card:hover {
    transform: scale(1.025);
    z-index: 1;
}

.recent-articles-card:hover .recent-articles-caption .title p {
    font-size: calc(var(--text-sm) * 1.01);
    color: #fc3f00;
}

.recent-articles-category {
    width: 100%;
    position: absolute;
    opacity: 90%;
    display: flex;
    justify-content: space-between;
}

.recent-articles-category p {
    background: var(--color-gray-10);
    padding: var(--vspace-0_25);
    font-family: 'Monument Extended Regular';
    font-size: calc(var(--text-xs) * 0.75);
    margin: var(--vspace-0_25);
    display: flex;
    align-items: center;
}

.recent-articles-img img {
    width: 100%;
    aspect-ratio: 4/3;
    display: block;
}

.recent-articles-caption {
    background: var(--color-white);
    width: 100%;
    transition: all 0.4s ease-out 0s;
    background-color: var(--color-gray-5);
    aspect-ratio: 4/2.5;
    padding: var(--vspace-0_5);
    font-family: 'Monument Extended Regular';
}

.recent-articles-caption .date {
    height: fit-content;
    margin-bottom: var(--vspace-0_25);
    display: flex;
    justify-content: space-between;
}

.recent-articles-caption .date p {
    font-family: 'Montserrat Medium';
    font-size: var(--text-xs);
    display: flex;
    align-items: center;
}

.recent-articles-caption .title {
    height: fit-content;
    margin-bottom: var(--vspace-0_25);
}

.recent-articles-caption .title p {
    font-family: 'Monument Extended Regular';
    font-size: var(--text-sm);
    transition: 0.5s;
    font-weight: 400;
    color: var(--color-black);
}

.recent-articles-caption .subtitle {
    height: fit-content;
    margin-bottom: var(--vspace-0_25);
}

.recent-articles-caption .subtitle p {
    font-family: 'Montserrat Medium';
    font-size: var(--text-sm);
    transition: 0.5s;
    font-weight: 400;
    color: var(--color-black);
}

.recent-articles-caption span {
    color: var(--color-black);
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    display: inline-block;
}

.recent-articles-caption h4 {
    margin: 0;
    line-height: 1;
}

.recent-articles-caption h4 a {
    font-size: 18px;
    font-weight: 500;
}

.recent-articles-caption h3 {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
}

@media screen and (max-width: 1200px) {
    .recent-articles-caption {
        aspect-ratio: 4/2.25;
    }
}

@media screen and (max-width: 900px) {
    .recent-articles-title {
        padding: 0 0 0 calc(var(--gutter) * 1);
    }

    .recent-articles-subtitle {
        padding: 0 0 0 calc(var(--gutter) * 1);
    }

    .recent-articles-body-wrapper {
        padding: 0  calc(var(--gutter) * 1);
    }

    .recent-articles-caption {
        aspect-ratio: 4/3;
    }
}

@media screen and (max-width: 750px) {
    .recent-articles-title {
        padding: 0 0 0 calc(var(--gutter) * 0.5);
        font-size: var(--text-xxxl);
    }

    .recent-articles-subtitle {
        padding: 0 0 0 calc(var(--gutter) * 0.5);
        font-size: var(--text-sm);
    }

    .recent-articles-body-wrapper {
        padding: 0  calc(var(--gutter) * 0.5);
    }
}

@media screen and (max-width: 650px) {
    .recent-articles-title {
        font-size: var(--text-xxl);
    }
}

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

    .recent-articles-caption {
        aspect-ratio: auto;
    }
}

.article-card-wrapper.hidden {
    display: none;
}

.filters-title {
  font-family: 'Montserrat Medium';
  text-transform: uppercase;
  font-size: var(--text-sm);
  margin-bottom: 10px;
  color: var(--color-black);
  letter-spacing: 0.5px;
}






.filters {
    text-align: left;
    margin-bottom: 20px;
    padding: 0 calc(var(--gutter)* 3 + var(--vspace-0_25));
}

.filter-select {
    font-family: 'Monument Extended Regular', sans-serif;
    font-size: var(--text-sm);
    background-color: var(--color-gray-2);
    border: 1px solid var(--color-gray-6);
    border-radius: 6px;
    padding: 10px 16px;
    color: var(--color-black);
    cursor: pointer;
    appearance: none;
    position: relative;
    max-width: 300px;
    width: 100%;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='16' viewBox='0 0 24 24' width='16' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.filter-select:hover,
.filter-select:focus {
    border-color: var(--color-black);
    background-color: var(--color-gray-3);
    outline: none;
}

.dropdown-wrapper {
  position: relative;
  display: inline-block;
  font-family: 'Monument Extended Regular';
  cursor: pointer;
  user-select: none;
  width: var(--vspace-10);
}

.dropdown-toggle {
  padding: 10px 20px;
  background: #ddd;
  border-radius: 5px;
  font-size: var(--text-sm);
  transition: background 0.3s ease;
}

.dropdown-toggle:hover {
  background: #ccc;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ccc;
  border-radius: 5px;
  overflow: hidden;
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 10;
  pointer-events: none;
}

.dropdown-wrapper.open .dropdown-menu {
  opacity: 1;
  transform: scaleY(1);
  pointer-events: auto;
}

.dropdown-menu li {
  padding: 10px 15px;
  border-bottom: 1px solid #eee;
  transition: background 0.2s ease;
}

.dropdown-menu li:last-child {
  border-bottom: none;
}

.dropdown-menu li:hover {
  background: #f0f0f0;
}

@media screen and (max-width: 900px) {
    .filters {
        padding: 0 calc(var(--gutter)* 2 + var(--vspace-0_25));
    }
}

@media screen and (max-width: 750px) {
    .filters {
        padding: 0 calc(var(--gutter)* 1.5 + var(--vspace-0_25));
    }
}









.pagination {
    display: flex;
}

.pagination-wrapper {
    margin-top: var(--vspace-1);
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.pagination button {
    margin: 0 5px;
    padding: 8px 14px;
    border: none;
    background: #eee;
    font-family: 'Monument Extended Regular';
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.pagination button.active,
.pagination button:hover {
    background: #333;
    color: #fff;
}

#pagination button.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.pagination button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background-color: var(--color-blue);
  border-radius: 4px;
}

.pagination button svg {
    width: 100%;
    height: 50%;
    display: block;
    object-fit: contain;
}

.pagination .dots {
  display: inline-block;
  margin: 0 8px;
  color: #aaa;
  font-weight: bold;
  font-size: 16px;
  pointer-events: none;
}