@import url('https://use.fontawesome.com/releases/v5.15.4/css/all.css');

/* ==============================================================
   SEARCH INPUT BOX
   ============================================================== */
.als-wrapper {
  width: 100%;
  position: relative;
}

.als-form {
  position: relative;
  display: flex;
  align-items: center;
}

.als-input {
  all: unset;
  width: 100%;
  height: 42px;
  background-color: #fff;


  padding: 0 40px 0 14px;
  font-size: 15px;
  color: #333;
  box-sizing: border-box;
}

.als-form::after {
  content: "\f002";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  right: 15px;
  color: #555;
  pointer-events: none;
}

.als-input:focus {
  border-color: #b30000 !important;
  box-shadow: 0 0 0 3px rgba(179, 0, 0, 0.15);
}

/* ==============================================================
   RESULTS CONTAINER
   ============================================================== */
.als-results {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  max-width: 1200px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
  padding: 25px;
  z-index: 9999;
  overflow-y: auto;
  max-height: 600px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  left: 0;
right: 0;
margin: 0 auto;
width: calc(100vw - 40px);
max-width: 1200px;
}

.als-results.active {
  display: block;
  opacity: 1;
  visibility: visible;
}
.als-form .form-group {
  width: 100%;
  flex: 1;
}


/* Add subtle scrollbars */
.als-results::-webkit-scrollbar {
  width: 8px;
}
.als-results::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 8px;
}
.als-results::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* ==============================================================
   HEADINGS & SUMMARY
   ============================================================== */
.als-summary {
  text-align: center;
 
  font-size: 14px;
  margin-bottom: 10px;
  color: #1B1C20;
}

.als-type-heading {
 
  font-size: 16px;
  color: #1B1C20;
  margin: 25px 0 15px;
  border-bottom: 1px solid #e3e3e3;
  padding-bottom: 5px;
}

/* ==============================================================
   GRID LAYOUT
   ============================================================== */
.als-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-items: start;
}

/* ==============================================================
   RESULT ITEM CARD
   ============================================================== */
.als-item {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  padding: 16px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.als-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

/* Thumbnail */
.als-item-media {
  width: 100%;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
}

.als-thumb {
  object-fit: contain;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}

/* Title & excerpt */
.als-item-title {
 
  font-size: 16px;
  color: #000;
  margin: 4px 0 6px;
}

.als-item-excerpt {

  font-size: 16px;
  line-height: 1.5;
  color: #000;
  margin-bottom: 8px;
}

/* CTA */
.als-item-cta {
  text-align: left;
  margin-top: auto;
}

.als-cta-btn {
  font-size: 12px;
  color: #b30000;
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.als-cta-btn:hover {
  text-decoration: underline;
  color: #1B1C20;
}

/* ==============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================== */

/* 4 columns (large tablets) */
@media (max-width: 1200px) {
  .als-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 3 columns (medium tablets) */
@media (max-width: 992px) {
  .als-list {
    grid-template-columns: repeat(3, 1fr);
  }
  .als-results {
    width: 95vw;
    padding: 20px;
  }
}

/* 2 columns (small tablets & landscape phones) */
@media (max-width: 768px) {
  .als-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .als-input {
    font-size: 14px;
  }
}

/* 1 column (mobile portrait) */
@media (max-width: 480px) {
  .als-list {
    grid-template-columns: 1fr;
  }
  .als-results {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 95vw;
    max-height: 70vh;
    border-radius: 10px;
    padding: 16px;
  }
  .als-input {
    font-size: 13px;
    height: 38px;
  }
  .als-item {
    padding: 12px;
            width: 100%;
    }
  
  .als-item-media {
    height: 80px;
  }
  .als-item-title {
    font-size: 13px;
  }
  .als-item-excerpt {
    font-size: 11px;
  }
  .als-cta-btn {
    font-size: 11px;
  }
}
