/* ============================== */
/* 📁 repository-subcategory.php */
/* ============================== */

/* 🎯 Hero section */
.subcategory-hero {
  width: 100%;
  height: 720px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.subcategory-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.subcategory-hero-caption {
  position: absolute;
  bottom: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 100;
  font-family: 'ZonaProCustom', sans-serif;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.7);
  z-index: 2;
  text-align: left;
  pointer-events: none;
  background-color: #00000047;
  align-content: center;
  width: 100%;
  padding-left: 10px;
  height: 36px;
}


/* 📦 Main wrapper */
.subcategory-wrapper {
  max-width: 1140px;
  margin: auto;
  padding-top: 100px;
  padding-bottom: 256px;
  position: relative;
}

/* 🔙 Wrapper του κουμπιού πίσω */
/* 📦 Back wrapper */
.subcategory-back-wrapper {
  position: relative;
  width: 100%;
  width: 126px;
  align-self: flex-start;
  margin-top: 57px;

}

/* 🔝 Top layout */
.subcategory-top {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 32px;
  gap: 168px;
}


/* 🔗 Επιστροφή με γραμμή και arrow */
.subcategory-back-button {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #000;
  font-family: 'ZonaProCustom', sans-serif;
  font-weight: bold;
  font-size: 14px;
  position: relative;
  background: #fff;
  z-index: 2;
}

/* ➖ Γραμμή πίσω από το κείμενο */
.subcategory-back-button::before {
  content: '';
  display: block;
  height: 0.5px;
  background-color: black;
  position: absolute;
  top: 50%;
  left: 44px;
  width: 90.5px;
  transform: translateY(-50%);
  z-index: 0;
}

/* ⬅️ Arrow μέσα στο μπλε κύκλο */
.subcategory-back-arrow {
  width: 36px;
  height: 36px;
  background-image: url('https://local.talent.gr/wp-content/uploads/2025/04/general_site_arrow.svg');
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  top: 50%;
  transform: translateY(-50%) scaleX(-1);
  z-index: 1;
  left: 10px;
}

/* 🏷️ Label (το “Κατηγορίες”) */
.subcategory-back-label {
  position: relative;
  z-index: 2;
  margin-left: 56px;
  margin-bottom: 34px;
}



/* 🧾 Titles section */
.subcategory-header {
  justify-self: center;
  margin-bottom: 32px;
  width: 549px;
}

.subcategory-category-name {
  font-size: 36px;
  font-family: 'Literata', sans-serif;
  font-weight: 400;
  margin-bottom: 64px;
  color: #000;
}

.subcategory-title {
  font-size: 24px;
  font-weight: 600;
  font-family: 'ZonaProCustom', sans-serif;
  margin-bottom: 32px;
}

/* 📝 Description */
.subcategory-description {
  margin-bottom: 72px;
  text-align: left;
  font-family: 'ZonaProCustom', sans-serif;
  color: #000000;
  font-weight: 500;
  font-size: 16px;

}


/* 🧱 Grid of entries */
.subcategory-grid {
  display: grid;
  grid-template-columns: repeat(3, 265px);
  justify-content: center;
  justify-items: center;
  gap: 20px;
}

/* 📄 Entry card */
.subcategory-entry-link {
  text-decoration: none;
  color: inherit;
}

.subcategory-entry {
  text-align: center;
  margin-bottom: 55px;
}

.subcategory-entry-image {
  width: 265px;
  height: 273px;
  object-fit: cover;
  border: 1px solid #707070;
  border-radius: 16px;
}

.subcategory-entry-text {
  padding-top: 24px;
}

.subcategory-entry-name {
  font-size: 18px;
  font-weight: 700;
  font-family: 'ZonaProCustom', sans-serif;
  margin: 0;
  color: #000;
}

/* ⚠️ No entries fallback */
.subcategory-no-entries {
  color: #999;
}

/* ❌ Fallback if no subcat */
.subcategory-missing {
  padding: 2rem;
}

.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}
