/* Articles Page  */
#articles_page * {
  box-sizing: border-box;
}

#articles_page h2 {
  margin: 1em 0 1em 0.5em;
}

[data-tab-content] {
  display: none;
}

#articles_page {
  padding: 2.5rem;
}

#articles_page_header {
  display: flex;
  padding-inline: 3rem;
  padding-inline-start: 6rem;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1em;
}

#blog_search_input {
  background-color: #ff0c0c1a;
  border: 3px solid #ff0c0c;
  width: 13rem;
}

.active[data-tab-content] {
  display: block;
}

body {
  padding: 0;
  margin: 0;
}

a {
  text-decoration: unset;
}

.tabs {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  display: flex;
  gap: 1rem;
  justify-content: start;
  list-style-type: none;
  margin: 0;
  padding: 0;
  border-bottom: 3px solid #e6e5e4;
  white-space: nowrap;
  scrollbar-width: none; 
  -ms-overflow-style: none; 
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tabsContainer {
  width: 75%;
  display: flex;
  position: relative;
  justify-content: start;
  list-style-type: none;
  margin: 0;
  padding: 0;
}



.scroll-left-btn,
.scroll-right-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #fff;
  border: none;
  font-size: 24px;
  width: 4rem;
  cursor: pointer;
  padding: 10px;
  z-index: 2;
  display: none;
  font-size: 2rem;
  color: #2d2d2d;

  border-radius: 10%;
}

.scroll-left-btn {
  left: -50px;
  background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0));
}

.scroll-right-btn {
  right: -50px;
  background: linear-gradient(to left, #fff, rgba(255, 255, 255, 0));
}


.tab {
  flex: 1;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  padding: 10px;
  transition: all 0.25s ease;
  font-size: 20px;
}

.tab.active {
  color: #ff0c0c;
  position: relative;
  font-weight: 800;
}

.tab.active::after {
  content: "";
  position: absolute;
  background-color: #ff0c0c;
  height: 3px;
  width: 100%;
  bottom: 0;
  left: 0;
}

.tab:hover {
  color: #ff0c0c;
}

.tab-content {
  margin-left: 20px;
  margin-right: 20px;
  padding-block: 2rem;
}

.articlesPage .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 2em;
}

.articlesPage .no-data-found.tab.active {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.articlesPage .no-data-found img {
  width: 350px;
}

.articlesPage .no-data-found p {
  font-size: 20px;
  font-weight: 500;
  color: black;
  cursor: default;
}

.articlesPage .blog {
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 0 0 calc(30% - 85px);
  margin: 10px;
  padding: 32px;
  background-color: #fff;
  box-shadow: 0px 0px 20px -6px rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  margin-bottom: 0;
  overflow: hidden;
}

.articlesPage .blog a {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.articlesPage .blog img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
}

.articlesPage .blog h3 {
  color: #ff0c0c;
}

.articlesPage .blog .title {
  color: #231f20;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 0;
}

.articlesPage .blog .blogBody {
  color: #8f8d8d;
  margin-top: 10px;
}

.articlesPage .blog .blogFooter {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 1em;
}

.articlesPage .blog .blogFooter p {
  color: gray;
  font-weight: bold;
}

.articlesPage .blog .readFullArticleBtn {
  color: #fff;
  background-color: #ff0c0c;
  font-size: 16px;
  font-weight: 500;
  border: none;
  padding: 0rem;
  padding-inline: 1rem;
  border-radius: 10px;
  transition: all 0.25s ease;
  cursor: pointer;
}

.articlesPage .blog .readFullArticleBtn:hover {
  transform: scale(1.05);
}

#pagination {
  display: flex;
  justify-content: center;
  vertical-align: middle;
  margin-top: 2rem;
  position: relative;
  width: 100%;
  padding-block: 2rem;
}

#pagination::after {
  content: "";
  width: 100%;
  height: 4px;
  background-color: #e6e5e4;
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
}

.pagination ul {
  float: left;
  margin: 0;
  padding: 0;
}

.pagination li {
  list-style: none;
}

.paginationItem {
  float: left;
  border-right: none;
  min-width: 20px;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  text-align: center;
}

.paginationNumber {
  color: #000;
  background-color: #e6e5e4;
  border-radius: 6px;
  margin-inline: 4px;
  padding: 4px;
}

.paginationNumber--active {
  color: #fff;
  background-color: #ff0c0c;
  border-radius: 6px;
  margin-inline: 4px;
  padding: 4px;
}

@media screen and (max-width: 1200px) {
  .container {
    gap: 1em;
  }
}

@media screen and (max-width: 1100px) {
  .container {
    gap: 0;
  }
}

@media screen and (max-width: 1000px) {
  .articlesPage .blog {
    flex: 0 0 calc(33% - 20px);
    margin: 0px;
    padding: 1rem;
  }

  #articles_page {
    padding: 1.5rem;
  }
}

@media screen and (max-width: 760px) {
  .articlesPage .blog {
    flex: 0 0 calc(45% - 20px);
    margin: 0px;
    padding: 1rem;
  }
  #articles_page {
    padding: 1rem;
  }

  .viewArticlePage img {
    width: 100%;
    height: auto;
  }
}

@media screen and (max-width: 600px) {
  .articlesPage .blog {
    flex: 0 0 calc(100% - 20px);
    margin: 0px;
    padding: 1rem;
  }
}

/* View Article Page  */

a {
  text-decoration: unset;
}

#article_page {
  padding: 2.5rem;
}

#article_page *{
  box-sizing: border-box;
}

.viewArticlePage .article-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2em;
}

.viewArticlePage .container {
  display: flex;
  flex-direction: column;
}

.viewArticlePage #article_header_details {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  align-items: flex-end;
}

.viewArticlePage #category_name {
  font-size: 25px;
  color: red;
  font-weight: 500;
}

.viewArticlePage #article_date {
  color: gray;
  font-size: 14px;
}

#article_header_sharing {
  display: flex;
  gap: 1em;
  margin-top: 1em;
}

#article_header_sharing a {
  text-decoration: none;
}

#article_header_sharing img {
  width: 30px;
  height: 30px;
  cursor: pointer;
}

#article_cover {
  height: 27vw;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  filter: drop-shadow(0px 0px 20px rgba(0, 0, 0, 0.3));
  border-radius: 3vw;
  margin: 2em 0.5em;
}

#article_title {
  margin-bottom: 0;
}

#content {
  margin-top: 2em;
}

#comments {
  display: flex;
  flex-direction: column;
  gap: 2em;
  margin-top: 2em;
}

#related_articles {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 2em;
  margin-block: 2em;
}

.blog {
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 0 0 calc(30% - 85px);
  margin: 10px;
  padding: 32px;
  background-color: #fff;
  box-shadow: 0px 0px 20px -6px rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  margin-bottom: 0;
  width: 1vw;
  overflow: hidden;
}

.blog a {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.blog img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
}

.blog h3 {
  color: #ff0c0c;
}

.blog .title {
  color: #231f20;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 0;
}

.blog .blogBody {
  color: #8f8d8d;
  margin-top: 10px;
}

.blog .blogFooter {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 1em;
}

.blog .blogFooter p {
  color: gray;
  font-weight: bold;
}

.blog .readFullArticleBtn {
  color: #fff;
  background-color: #ff0c0c;
  font-size: 16px;
  font-weight: 500;
  border: none;
  padding: 0rem;
  padding-inline: 1rem;
  border-radius: 10px;
  transition: all 0.25s ease;
  cursor: pointer;
}

.blog .readFullArticleBtn:hover {
  transform: scale(1.05);
}

/* Mahmoud */

.viewArticlePage .flex {
  display: flex;
}

.viewArticlePage .likesIcon {
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.viewArticlePage .likesIcon img {
  transition: all 0.25s;
  cursor: pointer;
}
.viewArticlePage .likesIcon img:hover {
  transform: scale(1.25);
}

.viewArticlePage .likesIcon .likedHeartIcon {
  filter: invert(16%) sepia(86%) saturate(7461%) hue-rotate(358deg)
    brightness(93%) contrast(116%);
}

.viewArticlePage .commentsIcon {
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.viewArticlePage .commentsIcon img {
  transition: all 0.25s;
  cursor: pointer;
}
.viewArticlePage .commentsIcon img:hover {
  transform: scale(1.25);
  filter: brightness(0.95);
}
.viewArticlePage .likesAndCommentsIconsContainer {
  gap: 36px;
}





.tabsContainer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  width: 100%;
  overflow-x: hidden;
  padding-inline: 4rem;
  padding-block: 1rem;
}

.tabs-carousel {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  width: calc(100% - 60px);
  padding: 10px 15px;
  white-space: nowrap;
}

.tabs {
  overflow-x: auto;
  width: 100%;
  gap: 1rem;
  justify-content: start;
  list-style-type: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  scrollbar-width: none; 
  -ms-overflow-style: none; 
  display: inline-flex;

}

.tab {
  width: 170px;
  height: 170px;
  min-width: 170px;
  min-height: 170px;

  display: flex;
  flex: 0 0 auto;
  margin-right: 15px;
  text-align: center;
  transition: all 0.5s ease;
  cursor: pointer;
  position: relative;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  border: 4px solid transparent;

  flex-direction: column;
  align-items: center;
  justify-content: end;
  padding: 1rem;
  font-size: 20px;

}

.no-data-found.tab {
  display: none;
}

.tabsContainer .tab img {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  object-fit: cover;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  transition: all .75s;
}

.tab:hover img, .tab.active img, .tab img:hover {
  width: 132px;
  height: 132px;
  top: 1rem;
}

.tab p {
  margin: 0;
  font-size: 14px;
  color: #333;
  text-overflow: ellipsis;
  overflow: hidden;
  width: 100%;
}
/* 
.tab.active {
  border: 4px solid #000;
} */

.tabs-controls {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tabs-controls span {
    background-color: #00000020;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    min-width: 3rem;
    min-height: 3rem;
    font-size: 2rem;
    color: black;
    cursor: pointer;
    border-radius: 50%;
    transition: all .5s;
    transform: scale(1);
  }
  .tabs-controls span:hover {
    background-color: #00000035;
    transform: scale(1.1);
  }

.prev, .next {
  font-size: 20px;
  color: #333;
  cursor: pointer;
  padding: 10px;
}

@media screen and (max-width: 1200px) {
  .container {
    gap: 1em;
  }
}

@media screen and (max-width: 1100px) {
  .container {
    gap: 0;
  }
}

@media screen and (max-width: 760px) {
  .blog {
    flex: 0 0 calc(45% - 20px);
  }

  .tabs-controls span {
    width: 1rem;
    height: 1rem;
    min-width: 1rem;
    min-height: 1rem;
    font-size: 1rem;
  }

  .tabsContainer {
    padding-inline: 0.25rem;
    padding-block: .25rem;
  }

  #articles_page_header {
    padding-inline: 1rem;
    padding-inline-start: 1rem;
  }

  .viewArticlePage img {
    width: 100%;
    height: auto;
  }
}

@media screen and (max-width: 600px) {
  .blog {
    flex: 0 0 calc(100% - 20px);
  }
}
