/* Blogs – Figma design (Das Leben in Deutschland + Fort-, Weiterbildung) */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;800&family=Inter:wght@400;600;800&display=swap');

/* Main page container */
.blogs-page-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 120px;
  gap: 60px;
  max-width: 1440px;
  margin: 0 auto;
  background: #FFFFFF;
  box-sizing: border-box;
}

/* Frame 307 – Header */
.blogs-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  gap: 8px;
  width: 100%;
  max-width: 1200px;
}

.blogs-title {
  font-family: 'Cairo', 'NeoSansArabic', sans-serif;
  font-style: normal;
  font-weight: 800;
  font-size: 48px;
  line-height: 56px;
  color: #000000;
  margin: 0;
  text-align: center;
}

.blogs-subtitle {
  font-family: 'Inter', 'NeoSansArabic', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 20px;
  line-height: 32px;
  color: #000000;
  margin: 0;
}

/* Frame 306 – Search row */
.blogs-search-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  gap: 16px;
  width: 100%;
  max-width: 1200px;
  height: 60px;
}

.blogs-search-row .blogs-input-wrap {
  flex: 1;
  min-width: 0;
}

.blogs-search-row .blogs-search-input,
.blogs-search-row .blogs-category-select {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  padding: 0 20px;
  width: 100%;
  height: 60px;
  background: #FFFFFF;
  border: 1px solid #000000;
  border-radius: 8px;
  font-family: 'Inter', 'NeoSansArabic', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #000000;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 24px;
  padding-right: 44px;
}

.blogs-search-row .blogs-search-input:hover,
.blogs-search-row .blogs-search-input:focus,
.blogs-search-row .blogs-category-select:hover,
.blogs-search-row .blogs-category-select:focus {
  width: 100%;
  height: 60px;
  background-color: #FFFFFF;
  border: 1px solid #000000;
  outline: none;
}

.blogs-search-btn {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 20.5px 20px;
  gap: 4px;
  width: 196px;
  height: 60px;
  background: #ACAE36;
  border: none;
  border-radius: 8px;
  font-family: 'Inter', 'NeoSansArabic', sans-serif;
  font-weight: 800;
  font-size: 16px;
  line-height: 24px;
  color: #FFFFFF;
  cursor: pointer;
  flex-shrink: 0;
}

.blogs-search-btn:hover {
  background: #9a9c2e;
  color: #FFFFFF;
}

.blogs-search-btn svg {
  width: 24px;
  height: 24px;
}

/* Set – Category cards grid (Page 1) */
.blogs-categories-set {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  align-content: flex-start;
  padding: 0;
  gap: 32px;
  width: 100%;
  max-width: 1200px;
}

/* Blog / Component – Category card */
.blogs-category-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  gap: 24px;
  width: 276px;
  min-height: 208px;
  background: #FFFFFF;
  border: 1px solid #C5C5C5;
  border-radius: 16px;
  flex: none;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.blogs-category-card:hover {
  border-color: #1A6E83;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.blogs-category-card-icon {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  object-fit: contain;
}

.blogs-category-card-icon svg {
  width: 72px;
  height: 72px;
}

.blogs-category-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  gap: 8px;
  text-align: center;
}

.blogs-category-card-title {
  font-family: 'Cairo', 'NeoSansArabic', sans-serif;
  font-weight: 800;
  font-size: 24px;
  line-height: 32px;
  color: #000000;
  margin: 0;
}

.blogs-category-card-count {
  font-family: 'Inter', 'NeoSansArabic', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #000000;
  margin: 0;
}

/* Set – Article cards grid (Page 2) */
.blogs-articles-set {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  padding: 0;
  gap: 32px;
  width: 100%;
  max-width: 1200px;
}

/* Frame 318 – Article card wrapper */
.blogs-article-card-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  gap: 8px;
  width: 378px;
  flex: none;
  text-decoration: none;
  color: inherit;
  position: relative;
}

/* Blog / Component – Article card (image + content) */
.blogs-article-card {
  width: 100%;
  height: 272px;
  background: #F1F1F1;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.blogs-article-card-image {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 110%;
  height: 110%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.blogs-article-badge {
  position: absolute;
  left: 20px;
  top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2px 10px;
  background: #FFFFFF;
  border-radius: 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.1em;
  text-transform: capitalize;
  color: #000000;
  z-index: 1;
}

.blogs-article-card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  gap: 8px;
  width: 100%;
}

.blogs-article-card-title {
  font-family: 'Cairo', 'NeoSansArabic', sans-serif;
  font-weight: 800;
  font-size: 24px;
  line-height: 32px;
  color: #000000;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blogs-article-card-date {
  font-family: 'Inter', 'NeoSansArabic', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  color: #000000;
  margin: 0;
}

/* Favorite heart on article card (ظاهر دائماً) */
.blogs-article-card-wrap .product_fav {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  visibility: visible !important;
  opacity: 1 !important;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
}

.blogs-article-card-wrap .product_fav.active,
.blogs-article-card-wrap .product_fav.active i {
  color: #ACAE36 !important;
}

/* Responsive */
@media (max-width: 1200px) {
  .blogs-page-wrap {
    padding: 40px 60px;
  }
  .blogs-category-card {
    width: calc((100% - 32px) / 3);
    min-width: 240px;
  }
  .blogs-article-card-wrap {
    width: calc((100% - 32px) / 2);
    min-width: 280px;
  }
}

@media (max-width: 768px) {
  .blogs-page-wrap {
    padding: 24px 20px;
    gap: 40px;
  }
  .blogs-title {
    font-size: 36px;
    line-height: 44px;
  }
  .blogs-subtitle {
    font-size: 16px;
    line-height: 24px;
  }
  .blogs-search-row {
    flex-direction: column;
    height: auto;
    gap: 12px;
  }
  .blogs-search-row .blogs-search-input,
  .blogs-search-row .blogs-category-select {
    height: 52px;
  }
  .blogs-search-btn {
    width: 100%;
    height: 52px;
  }
  .blogs-category-card {
    width: 100%;
    min-width: 0;
  }
  .blogs-article-card-wrap {
    width: 100%;
    min-width: 0;
  }
  .blogs-search-row .blogs-input-wrap{
    margin-top: 10px;
    margin-bottom: 10px;
  }
}
