.articles_welcome_section{
  background-color: var(--background-color);
  width: 100%;
  height: 300px;
  position: relative;
}
.articles_main_center_image{
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  height: auto;
  width: 350px;
}
.articles_bottom_left_image{
  position: absolute;
  bottom: 40px;
  left: 150px;
  width: 16%;
}
.articles_top_right_image{
  position: absolute;
  top: 100px;
  right: 100px;
}
.articles_welcome_text_section{
  background-color: var(--background-color);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  padding-bottom: 20px;
}
.articles_welcome_text {
  color: var(--black-color);
  font-family: var(--font-main);
  font-weight: 900;
  font-size: 100px;
  line-height: 1;
}
.articles_highlight {
  color: var(--pink-color);
  font-size: 100px;
  font-family: var(--font-main);
  font-weight: 900;
  line-height: 1;
}
.articles_main_page_subtitle{
  font-size: 24px;
  color: var(--black-color);
  font-family: var(--font-main);
  margin: 0;
}
.articles_form {
  width: 80%;
  max-width: 600px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  direction: rtl;
  min-height: 60px;
}
.articles_form_input {
  width: 100%;
  min-height: 60px;
  padding: 10px 20px !important;
  border-radius: 30px !important;
  border: 1px solid #ccc;
  font-family: var(--font-main);
  font-size: 20px !important;;
  color: #333;
  background-color: aquamarine;
  padding: 10px 25px;
  transition: all 0.2s ease;
  outline: none;
  box-sizing: border-box;
}
.articles_form_input:hover {
  border-color: #888;
}
.articles_form_input:focus {
  border-color: var(--pink-color);
  box-shadow: 0 0 0 3px rgba(255, 100, 150, 0.2);
}
.articles_filters_section{
  background-color: var(--background-color);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  padding-top: 20px;
  padding-bottom: 20px;
}
.articles_categories {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  width: 100%;
  padding: 0px 20px;
  line-height: 50px; 
  gap: 15px;
  direction: rtl;
}
.articles_categories_grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 15px;
  width: 100%;
}
/* Ensure max 8 per row */
@media (min-width: 1000px) {
  .articles_categories_grid {
    grid-template-columns: repeat(8, 1fr);
  }
}
.articles_category_item, 
.articles_category_item_first,
.articles_category_item_second {
  flex: 0 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  color: var(--black-color);
  text-align: center;
  text-decoration: none;
  border-radius: 25px;
  border: 1px solid var(--black-color);
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: bold;
  white-space: nowrap;
}
.articles_category_item_first{
    background-color: var(--red-color);
    color: var(--white-color);
    border: 1px solid var(--red-color);
}
.articles_category_item_second{
    background-color: var(--background-color);
    color: var(--red-color);
    border: 1px solid var(--red-color);
}
.articles_category_item:hover,
.articles_category_item_first:hover,
.articles_category_item_second:hover {
  background-color: var(--red-color);
  color: var(--background-color);
  border: 1px solid var(--background-color);
}
.articles_category_title_section{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items:end;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 10px;
}
.articles_category_title{
    font-family: var(--font-main);
    font-size: 30px;
    color: var(--black-color);
    font-weight: bold;
}
.articles_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 100%;
    direction: rtl;
    margin-bottom: 20px;
}
.article_card {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  overflow: hidden;
  min-height: 400px;
  color: white;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.article_card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.article_card_overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
}
.article_card_content {
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.7) 100%);
    width: 100%;
    padding: 20px 25px;
    box-sizing: border-box;
}
.article_small_item{
  height: 430px;
  min-height: 430px;
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  position: relative;
  box-shadow: 0 2px 10px rgba(49, 57, 63, 0.2);
  overflow: hidden;
  border: 1px solid white;
  width: 100%;
  display: flex;
  direction: ltr;
  flex-direction: column;
  text-decoration: none !important;
  color: inherit !important;
}
.article_small_item * {
  text-decoration: none !important;
}
.article_image_wrapper{
  flex: 1;
  background-size: cover;
  background-position: center;
  width: 100%;
  transition: 0.3s ease;
}
.article_info_box {
  position: relative;
  background-color: white;
  padding: 10px 10px 10px;
  box-sizing: border-box;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: start;
}
.article_item_title{
  font-family: var(--font-main);
  font-weight: bold;
  font-size: 16px;
  color: var(--black-color);
  text-align: right;
  margin: 5px 0px;
  text-decoration: none;
}
.article_sub_info_box{
  display: flex;
  flex-direction: row-reverse;
  justify-content:space-between;
  gap: 40px;
}
.article_sub_info_box_text{
  margin: 4px 0;
  font-family: var(--font-main);
  font-size: 16px;
  color: var(--black-color);
  text-align: center;
}
.article_category_more_section{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items:flex-start;
    justify-content: center;
    margin-bottom: 20px;
}
.article_category_more{
    font-family: var(--font-main);
    font-size: 16px;
    color: var(--black-color);
    font-weight: bold;
    cursor: pointer;
    border-radius: 15px;
    border: 1px solid var(--black-color);
    padding: 10px;
}