/* ==========================================================================
   Browse by Specialty (/browse-by-specialty) — MOA_Final_27112026/browse-by-specialty.html
   Port of browse-by-specialty.css + inner-banner-center.css + black-inner-banners.css (final cascade).
   The black banner forces white text, including the red "Specialty" word in the h1
   (-webkit-text-fill-color is inherited), so it renders white as in the design.
   Loaded after catalog_v2.css (course cards). Template: course_manage/browse_by_specialty.html.
   ========================================================================== */

/* ---------- Hero ---------- */
.specialty-hero { padding: 88px 0 84px; background: #000; color: #fff; text-align: center; }
/* black-inner-banners.css: the banner content sits above its (removed) artwork layers. */
.specialty-hero > .moa-container { position: relative; z-index: 1; }
.specialty-hero .catalog-eyebrow { color: #fff; }
.specialty-hero h1 { margin: 14px auto; color: #fff; font-size: clamp(38px, 5.4vw, 68px); line-height: 1.12; -webkit-text-fill-color: #fff; }
.specialty-hero h1 span { color: #ee343b; }
.specialty-hero p { max-width: 650px; margin-inline: auto; color: #fff; font-size: 18px; line-height: 1.7; }
.specialty-all-link {
  display: inline-flex; margin-top: 16px; padding-bottom: 7px; border-bottom: 2px solid #ee343b; color: #fff; font-weight: 700;
}
.specialty-all-link:hover { color: #ee343b; }
.specialty-all-link.dark { color: #252525; }

/* ---------- Tiles ---------- */
.specialty-main { padding-top: 66px; padding-bottom: 85px; }
.specialty-section-heading, .specialty-results-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.specialty-section-heading h2, .specialty-results-head h2 { margin: 10px 0; font-size: clamp(27px, 3vw, 38px); }
.specialty-section-heading p, .specialty-results-head p { color: #666; line-height: 1.6; }
.specialty-kicker { color: #ee343b; font-size: 12px; font-weight: 800; letter-spacing: 2px; }
.specialty-reset { padding: 13px 19px; border: 1px solid #ddd; border-radius: 8px; background: #fff; font-weight: 700; cursor: pointer; }
.specialty-reset:hover { border-color: #ee343b; color: #ee343b; }

.specialty-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.specialty-tile {
  display: flex; align-items: flex-start; gap: 18px; padding: 28px 22px; border: 1px solid #ededed; border-radius: 16px;
  background: #fff; box-shadow: 0 8px 24px #14141408; text-align: left; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
/* The design's button hover (hover-animations.css, also in pages_v2.css) wins over this transform/shadow. */
.specialty-tile:hover, .specialty-tile:focus-visible { transform: translateY(-7px); box-shadow: 0 18px 35px #17171719; border-color: #ee343b; outline: none; }
.specialty-tile[aria-pressed="true"] { border-color: #ee343b; background: #fff7f7; box-shadow: 0 10px 26px #ee343b16; }
.specialty-icon { display: grid; place-items: center; width: 70px; min-width: 70px; height: 70px; border-radius: 14px; background: #fff0f0; }
.specialty-icon img { width: 48px; height: 48px; object-fit: contain; }
.specialty-tile-copy { display: flex; flex-direction: column; gap: 11px; }
.specialty-tile strong { color: #191919; font-size: 18px; }
.specialty-tile small { color: #696969; font-size: 13px; line-height: 1.6; }
.specialty-tile em { color: #ee343b; font-size: 13px; font-style: normal; font-weight: 750; }

/* ---------- Results ---------- */
.specialty-results { padding-top: 76px; scroll-margin-top: 100px; }
.specialty-results .catalog-grid { margin-top: 25px; }

@media (max-width: 950px) { .specialty-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .specialty-hero { padding: 60px 0; }
  .specialty-tiles { grid-template-columns: 1fr; }
  .specialty-section-heading, .specialty-results-head { flex-direction: column; align-items: start; }
  .specialty-main { padding-top: 45px; }
  .specialty-tile { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .specialty-tile { transition: none; }
  .specialty-tile:hover { transform: none; }
}

/* Empty state (not in the design: every design specialty has courses). Same look as the level page's. */
.specialty-results .level-empty { padding: 35px; border-radius: 12px; background: #fafafa; text-align: center; }
