/* Working as of February 3, 2026 */
div#custom-feature-container {
	display: block;
	box-sizing: border-box;
	color: #B5E6FE; height: 370px; width: 100%;
	background-image: url("https://resources.finalsite.net/images/f_auto,q_auto,t_image_size_6/v1768239039/esc11net/ukcstiddtb34lzk96tt5/teks-marketing-hero-extended.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-attachment: inherit;
    background-position: center;
    background-color: #B5E6FE;
}

div#custom-feature-container h1 {
	line-height: 10px;
	font-size: 40px;
	margin: 0 0 12px;
	font-weight: bold;
}
div#custom-feature-container .hero-container {
	padding: 16px 48px 0;
}
#home-page .feature-region {
	background: #E81D1C;
}

#custom-feature-container .hero-container h1 {
    line-height: 1.25;
    overflow-wrap: break-word;
    word-break: break-word;
    font-size: clamp(1.75rem, 1.85vw + 1rem, 3rem);
  }

/* ========== Custom Styles for Listings Page ========== */
/* Working as of February 3, 2026 */

/* --- Layout Tweaks --- */

/* Moves the "Browse Listings" heading down to make space for the Reset button */
#listings h2 {
    margin-top: 24px;
}

/* --- Hide Default Canvas Search Components --- */

/* Hides search label and input field */
#search-form .search-label,
#search-form .search-box-wrapper {
    display: none;
}

/* --- Product Flags --- */

/* Adjusts vertical placement of FREE product label */
.product-flag.product-flag-free {
    margin-top: -74px; 
}

/* --- Hide Built-in Dropdowns --- */

/* Hides the "Refine" filter dropdown button */
#search-refine-button--refine {
    display: none;
}

/* Makes default category button invisible (still script-accessible) */
#search-refine-button--categories {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- Active Button Styling --- */

/* Unified styling for active buttons (Level, Grade, etc.) */
.level-button.active,
.grade-button.active {
    background-color: #0056b3;
    color: white;
    border: 1px solid #004494;
}

/* --- Dropdown Styling --- */

/* Reusable dropdown item style */
.dropdown-item {
    display: block;
    padding: 5px 10px;
    text-decoration: none;
    color: black;
}

/* parent that holds the label + dropdown buttons */
#search-form .search-form-container > div > div > div {
    display: flex;
    align-items: center;   
    flex-wrap: wrap;       
  }
  
  .filter-label {
    margin-right: 8px;
    font-weight: 600;
  }

 /* keep text left, icon right—one row, always centered vertically */
#search-form .dropdown-menu .dropdown-item {
  display: flex;                 
  justify-content: space-between;
  align-items: center;           
}

#search-form .dropdown-menu .dropdown-item .icon {
  flex: 0 0 auto;                
  margin-left: .5rem;            
}

#search-form .search-refine-button .search-refine-button__contents {
    display: inline;                  
}

/* Hides the bar between the search-form box and features */
.search-form-filters {
    display: none;
}

.rtm-course-breadcrumb-wrapper {
    display: none;
}

/* Hides the Categorys dropdown */
div#search-refine-categories {
    display: none;
}


/* Mobile CSS */
/* ---------- Mobile + small screens ---------- */
@media (max-width: 768px) {
  /* Hero should not eat the whole screen */
  div#custom-feature-container {
    height: clamp(220px, 35vw, 360px);
    background-position: center; /* more predictable on small screens */
  }

  /* Reduce padding so the search bar area fits */
  div#custom-feature-container .hero-container {
    padding: 12px 16px 0;
  }

  /* Make the filter row wrap nicely */
  #search-form .search-form-container > div > div > div {
    gap: 8px;                 /* space between buttons */
    align-items: stretch;     /* makes taps easier */
  }

  /* Make each filter button more tap-friendly and consistent */
  #search-form .search-refine-button.btn.btn-lg {
    padding: 10px 12px;
    font-size: 16px;          /* avoids iOS zooming on tap */
    width: auto;
    min-width: 120px;
    border-radius: 12px;
  }

  /* Dropdown panel: prevent off-screen + allow scrolling */
  #search-form .dropdown-menu {
    width: min(92vw, 320px) !important;
    max-height: 55vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    left: 0 !important;
    right: auto !important;
  }

  /* Bigger touch targets in menu */
  #search-form .dropdown-menu .dropdown-item {
    padding: 12px 14px;
    font-size: 16px;
  }

  /* Reset button: full width on mobile so it doesn't get squeezed */
  #reset_listings {
    width: 100%;
    text-align: center;
    margin-left: 0 !important;
  }
}

/* ---------- Very small screens ---------- */
@media (max-width: 420px) {
  #search-form .search-refine-button.btn.btn-lg {
    min-width: 100px;
    padding: 10px 10px;
  }

  #search-form .dropdown-menu {
    width: 92vw !important;
  }
}
