/* --- Main Container & Header --- */
.container {
  min-height: 100vh;
  padding: 12vh 1rem 2vh 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 0;
  overflow-y: auto;
}

.container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(../../assets/translation-page/landing/ScienceTermsTranslations.jpg);
  background-size: cover;
  background-position: center center;
  opacity: 0.2;
  z-index: -1;
  transition: opacity 0.4s ease;
}

body.search-active .container::before {
  opacity: 0;
}

body.search-active .header-section::before {
  content: "";
  position: absolute;
  top: 0;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;

  background-image: url(../../assets/translation-page/landing/ScienceTermsTranslations.jpg);
  background-size: cover;
  background-position: center center;
  opacity: 0.2;
  z-index: -1;
}

.header-section {
  text-align: center;
  width: 100%;
  margin-bottom: 2rem;
  padding: 3rem 1rem;
  position: relative;
  z-index: 0;
}

.header-section h1 {
  font-size: 2rem;
  margin-bottom: 0.625rem;
  color: #002244;
}

.header-section h2 {
  font-size: 1rem;
  color: #5a7d9b;
  text-transform: uppercase;
  letter-spacing: 0.0625rem;
}

.search-bar {
  display: flex;
  margin-top: 1.25rem;
  border: 1px solid #ccc;
  border-radius: 3.125rem;
  overflow: hidden;
  box-shadow: 0 0.25rem 0.9375rem rgba(0, 0, 0, 0.05);
}

#conceptSearchInput {
  border: none;
  padding: 0.9375rem 1.5rem;
  font-size: 1rem;
  flex-grow: 1;
  outline: none;
}

#conceptSearchButton {
  border: none;
  background-color: #002244;
  color: white;
  padding: 0 1.875rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
}

#conceptSearchButton:hover {
  background-color: #3473b2;
}

.action-panel {
  width: 100%;
  padding: 1.25rem;
  border-radius: 0.625rem;
  background-color: white;
}

.action-panel h3 {
  margin-bottom: 1.25rem;
  text-align: center;
  color: #002244;
}

.term-suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem;
  margin-bottom: 1.25rem;
}

.suggestion-tag {
  background-color: #e9ecef;
  color: #495057;
  padding: 0.5rem 0.9375rem;
  border-radius: 1.25rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.suggestion-tag:hover {
  background-color: #ced4da;
}

.concept-results {
  width: 100%;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.image-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
}

.image-column img,
.image-grid img {
  height: auto;
  display: block;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
  background-color: #f0f0f0;
}

.image-column img {
  width: 80%;
  max-width: 900px;
}

.image-grid img {
  width: 100%;
  height: 250px;
  object-fit: contain;
}

.results-header {
  width: 100%;
  text-align: center;
  font-size: 1.75rem;
  color: #002244;
  margin-top: 2rem;
  margin-bottom: 0.625rem;
  border-bottom: 2px solid #dee2e6;
  padding-bottom: 0.625rem;
}

.background-decorations {
  display: none;
}

body.search-active .background-decorations {
  display: block;
}

/* ==========================================================================
   3. Tablet Screens (min-width: 740px)
   ========================================================================== */
@media only screen and (min-width: 740px) {
  .container {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

/* ==========================================================================
   4. Desktop Screens (min-width: 900px)
   ========================================================================== */
@media only screen and (min-width: 900px) {
  .header-section h1 {
    font-size: 3rem;
  }

  .header-section h2 {
    font-size: 1.2rem;
  }
}

@media only screen and (min-width: 1200px) {
  .action-panel {
    max-width: 75rem;
  }
}
