.custom-accordion {
  max-width: 900px;
  margin: 40px auto;
  font-family: 'Arial', sans-serif;
}

.accordion-item {
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  border: none;
}

.accordion-title {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 20px;
  background: linear-gradient(90deg, #ffffff 0%, #fdfdfd 100%);
  color: #222;
  font-size: 18px;
  cursor: pointer;
  border: none;
  outline: none;
  transition: background 0.3s, color 0.3s;
  position: relative;
}

.accordion-title:hover {
  background: linear-gradient(90deg, #f9f9f9 0%, #f0f0f0 100%);
}

.accordion-thumb img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
}

.accordion-text {
  flex: 1;
  font-weight: 600;
}

.accordion-title::after {
  content: '\25BC';
  font-size: 14px;
  margin-left: auto;
  transition: transform 0.3s ease;
}

.accordion-title.active::after {
  transform: rotate(180deg);
}

/* FIX: Hide thumbnail in title when accordion is active */
.accordion-title.active > .accordion-thumb {
  display: none !important;
}

.accordion-title + hr {
  border: 0;
  border-top: 1px solid #ddd;
  margin: 0;
}

.accordion-content {
  background: #ffffff;
  color: #222;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s ease, padding 0.5s ease;
  padding: 0 20px;
}

.accordion-content.active {
  padding: 18px 20px;
}

.video-link-wrapper {
  text-align: center;
  margin-bottom: 15px;
}

.allowed-link {
  display: inline-block;
  background: linear-gradient(90deg, #ffd700, #ffcc33);
  color: #222;
  font-weight: bold;
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.allowed-link:hover {
  background: linear-gradient(90deg, #e6c200, #cc9e00);
  transform: translateY(-2px);
}

.no-access {
  color: #b00020;
  font-weight: bold;
  margin-top: 10px;
  text-align: center;
}

.accordion-content img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 12px;
}

/* Responsive για κινητά */
@media screen and (max-width: 600px) {
  .accordion-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
  }

  .accordion-thumb img {
    width: 100%;
    height: auto;
    border-radius: 6px;
  }

  .accordion-title::after {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
  }
}

