/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Wrapper */
.concept-wrapper {
  font-family: Arial, sans-serif;
  overflow: hidden;
  height: 100vh; /* desktop only, we’ll override on mobile */
}

/* Concepts container (default: desktop) */
.concepts {
  display: flex;
  flex-direction: row;   /* side by side */
  height: 100%;          /* match wrapper */
  overflow: hidden;
}

/* Each concept panel (desktop) */
.concept {
  flex: 1;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
  transition: flex 0.6s ease, filter 0.6s ease;
  position: relative;
  cursor: pointer;
}

.concept-link {
  flex: 1;
  display: block;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
  transition: flex 0.6s ease, filter 0.6s ease;
  position: relative;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

/* Hover expand effect (desktop) */
.concept-link:hover {
  flex: 2.5;
  filter: grayscale(0%);
}

.label {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: white;
  z-index: 1;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
}

/* ---------- MOBILE STYLES ---------- */
@media (max-width: 768px) {
  .concept-link {
    flex: none;
    width: 100%;
    height: 80vh;
    filter: grayscale(100%);
    transition: filter 0.4s ease;
  }

  .concept-link:hover {
    flex: none;
    filter: grayscale(0%);
    transform: none;
  }

  .label {
    bottom: 15px;
    left: 15px;
    font-size: 0.9em;
  }
}


.label h3 {
  font-size: 1.5em;
  font-weight: bold;
}

.label p {
  font-size: 1em;
}

/* ---------- MOBILE STYLES ---------- */
@media (max-width: 768px) {
  .concept-wrapper {
    height: auto;   /* ✅ allow wrapper to expand */
    overflow: visible;
  }

  .concepts {
    flex-direction: column;   /* stack vertically */
    height: auto;             /* ✅ allow container to expand */
    overflow: visible;
  }

  .concept {
    flex: none;               /* disable flex-grow */
    width: 100%;
    height: 80vh;             /* each takes ~80% of screen height */
    filter: grayscale(100%);
    transition: filter 0.4s ease;
  }

  .concept:hover {
    flex: none;
    filter: grayscale(0%);
    transform: none;          /* disable desktop scaling */
  }

  .label {
    bottom: 15px;
    left: 15px;
    font-size: 0.9em;
  }
}
