﻿.articles-sections {
  position: relative;
  margin-top: 50px;
  min-height: unset;
  z-index: 10;
  max-width: 1168px;
  margin-inline: auto;
  padding-bottom: 70px;
}

.articles-sections h1 {
  margin-bottom: 32px;
  font-size: 40px;
  font-weight: 700;
  line-height: 48px !important;
}

.articles-sections .loadMore {
  display: flex;
  justify-content: center;
}

.articles-sections .loadMore button {
  text-decoration: underline;
  text-underline-offset: 10px;
}

.search-container {
  display: flex;
  align-items: center;
  border: 1px solid #aaa9ad;
  border-radius: 30px;
  padding: 8px 16px;
  width: 358px;
  background-color: white;
}

.search-icon {
  margin-right: 10px;
  color: #999;
  font-size: 16px;
}

.search-input {
  border: none;
  outline: none;
  font-size: 14px;
  color: #333;
  flex: 1;
  text-transform: uppercase;
  background: transparent;
}

.article-dropdown button {
  font-size: 13px !important;
}

.article-dropdown .dropdown-menu {
  border-radius: 24px;
}

.article-dropdown .dropdown-toggle::after {
  display: none;
  margin-left: 0.255em;
  vertical-align: 0.255em;
  content: "";
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
}

.article-dropdown .dropdown-menu li:not(:first-child) {
  margin: 12px 27px;
  font-size: 16px;
  color: #aaa9ad;
  cursor: pointer;
}

.article-dropdown .dropdown-menu li:hover:not(:first-child) {
  color: #2e58eb;
}

.article-dropdown .dropdown-menu li:not(:first-child):not(:last-child) {
  border-bottom: 1px solid #dad9de;
}

.invertion .row {
  margin: 0;
}

.articles-section .tags {
  margin: 0px;
}

.tags .row {
  gap: 10px;
}

.articles-section .tags .jsc {
  margin: 72px 0;
  justify-content: start;
}

.article-cards-desk {
  display: none;
}

.article-pagination-desk {
  display: none;
}

.cards-slot {
  position: relative;
  margin-top: 136px;
  display: grid;
  gap: 70px;
}

.article {
  width: 215px;
  display: none;
  flex-direction: column;
  gap: 25px;
}

.article a {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article.visible {
  display: flex;
  width: 326px;
  margin-inline: auto;
}

.article p {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* number of lines to show */
  -webkit-box-orient: vertical;
}

.article span {
  color: #2e58eb;
  font-family: Rubik;
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
}

.article .title {
  color: #373737;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 23px;
}

.article p {
  color: #000;
  font-family: Rubik;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
}

.article-img {
  width: 100%;
  height: 309px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0px 40px 80px 0px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

.article-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.articles-content {
  position: relative;
  z-index: 10;
  margin: 0;
  padding-inline: 1rem;
  max-width: 1168px;
  margin-inline: auto;
}

.articles-content .pagination-container {
  margin-top: 40px;
  height: 50px;
}

.articles-background {
  position: absolute;
  background: #f6f7ff;
  top: 12%;
  left: -5%;
  border-radius: 38px;
  z-index: 0;
}

.category-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.articles-sections .tags .row {
  gap: 5px;
  margin-top: 40px;
  overflow-x: auto;
  flex-wrap: nowrap;
  padding-left: 1rem;
}

.articles-sections .tags .row::-webkit-scrollbar {
  height: 4px;
}

.articles-sections .tags .row::-webkit-scrollbar-track {
  background: #eee;
}

.articles-sections .tags .row::-webkit-scrollbar-button {
  display: none;
}

.articles-sections .tags .row::-webkit-scrollbar-thumb {
  background-color: #3b82f6;
  border-radius: 10px;
}

.category-checkbox:checked + .tag {
  color: #0056b3;
  border-color: #0056b3;
}

.articles-sections .tag-item {
  display: inline-block;
}

.articles-sections .tag-item .tag {
  margin-top: 0px;
  white-space: nowrap;
}

/* **** ADDED CSS TO RESET PAGINATION BUTTONS **** */
#prevPageBtn,
#nextPageBtn {
  all: unset; /* Remove all inherited and browser styles */
  display: inline-block; /* Make it behave like a block element inline */
  cursor: pointer; /* Add the pointer cursor back */
  line-height: 0; /* Prevent extra space if SVG isn't perfectly sized */
  /* Add any other minimal styles needed, e.g., margin */
  margin: 0 5px; /* Example spacing between buttons */
  color: #26242b; /* Set the default color for the SVG stroke */
}

#prevPageBtn:disabled,
#nextPageBtn:disabled {
  cursor: not-allowed; /* Indicate disabled state */
  opacity: 0.5; /* Visually dim disabled buttons */
  color: #aaa; /* Change SVG color when disabled */
}

/* Optional: Add focus style for accessibility */
#prevPageBtn:focus,
#nextPageBtn:focus {
  outline: 2px solid blue;
  outline-offset: 2px;
  border-radius: 50%; /* Match shape if desired */
}

.pagination-container {
  text-align: center; /* Center the buttons */
  margin-top: 20px; /* Add space above pagination */
}

.seeMore {
  display: none;
  position: relative;
  left: 0;
  bottom: 40px;
}

.seeMore a {
  color: #26242b;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: underline;
}

/* Alpha educa */

@media screen and (min-width: 768px) {
  .cards-slot {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .article.visible {
    width: 338px;
  }

  .articles-sections .tags .row {
    padding-left: 0px;
  }

  .article-img {
    height: 338px;
    box-shadow: 0px 40px 80px 0px rgba(0, 0, 0, 0.1);
  }

  #alpha-educa .articles-content {
    padding-inline: 0px;
  }

  .articles-sections .loadMore {
    margin-top: 60px;
  }
}

@media screen and (min-width: 1024px) {
  .cards-slot {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .article.visible {
    width: 280px;
  }

  .article-img {
    height: 380px;
  }

  .articles-background {
    width: 1414px;
    height: 624px;
  }
}

@media screen and (min-width: 1440px) {
  .articles-content {
    padding-inline: 0px;
    margin-top: 150px;
  }

  .cards-slot {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }

  .article.visible {
    width: 219px;
  }

  .article-img {
    height: 320px;
  }

  .search-container {
    width: 420px;
  }

  .articles-sections .loadMore {
    margin-top: 100px;
  }

  .article.visible {
    margin-inline: 0px;
  }
}
