/* Specialty category scroll — same as templates/includes/videos_category_slider_styles.html
   Always visible on Astro pages (no desktop sidebar). */
.videos-page .videos-categories-slider {
  display: block;
}
.videos-page .videos-cat-slider-outer {
  position: relative;
  display: block;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 44px;
}
@media (min-width: 576px) {
  .videos-page .videos-cat-slider-outer {
    max-width: 640px;
    padding: 0 48px;
  }
}
@media (min-width: 768px) {
  .videos-page .videos-cat-slider-outer {
    max-width: 680px;
  }
}
.videos-page .videos-cat-slider-arrow {
  position: absolute;
  top: calc(50% - 8px);
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #e0e6ea;
  background: #fff;
  color: #007e87;
  line-height: 0;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.videos-page .videos-cat-slider-prev {
  left: 2px;
}
.videos-page .videos-cat-slider-next {
  right: 2px;
}
.videos-page .videos-cat-slider-arrow i {
  font-size: 14px;
  line-height: 1;
}
.videos-page .videos-cat-slider-arrow:hover {
  background: #007e87;
  color: #fff;
  border-color: #007e87;
}
.videos-page .videos-cat-slider-arrow:focus {
  outline: 2px solid #008c96;
  outline-offset: 2px;
}
@media (max-width: 360px) {
  .videos-page .videos-cat-slider-outer {
    padding: 0 40px;
  }
  .videos-page .videos-cat-slider-arrow {
    width: 32px;
    height: 32px;
  }
  .videos-page .videos-cat-slider-arrow i {
    font-size: 12px;
  }
}
.videos-page .videos-cat-slider-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 50%;
  padding: 4px 2px 12px;
}
.videos-page .videos-cat-slider-list {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 10px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 8px;
  width: max-content;
}
.videos-page .videos-cat-slider-slide {
  flex: 0 0 auto;
  width: 108px;
  scroll-snap-align: center;
}
@media (min-width: 400px) {
  .videos-page .videos-cat-slider-slide {
    width: 118px;
  }
}
@media (min-width: 576px) {
  .videos-page .videos-cat-slider-slide {
    width: 124px;
  }
}
.videos-page .videos-cat-tile {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e8ecef;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  height: 100%;
}
.videos-page .videos-cat-tile:hover,
.videos-page .videos-cat-tile:focus {
  text-decoration: none;
  color: inherit;
  border-color: #008c96;
  box-shadow: 0 4px 12px rgba(0, 126, 135, 0.15);
  transform: translateY(-1px);
}
.videos-page .videos-cat-tile.is-active {
  border-color: #fb2345;
  box-shadow: 0 0 0 2px rgba(251, 35, 69, 0.2);
}
.videos-page .videos-cat-tile-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 10px 6px 12px;
  min-height: 88px;
}
.videos-page .videos-cat-tile-inner img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 8px;
  flex-shrink: 0;
}
@media (min-width: 576px) {
  .videos-page .videos-cat-tile-inner img {
    width: 44px;
    height: 44px;
  }
  .videos-page .videos-cat-tile-inner {
    min-height: 96px;
    padding: 12px 8px 14px;
  }
}
.videos-page .videos-cat-tile-label {
  font-size: 11px;
  line-height: 1.25;
  font-weight: 600;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
@media (min-width: 576px) {
  .videos-page .videos-cat-tile-label {
    font-size: 12px;
  }
}
.videos-page .videos-cat-tile.is-active .videos-cat-tile-label {
  color: #fb2345;
}

.videos-page .specialities-card-grid {
  margin-top: 0.25rem;
}
.videos-page .speciality-card {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e8ecef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.videos-page .speciality-card:hover,
.videos-page .speciality-card:focus {
  text-decoration: none;
  color: inherit;
  border-color: #007e87;
  box-shadow: 0 6px 18px rgba(0, 126, 135, 0.18);
  transform: translateY(-2px);
}
.videos-page .speciality-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 12px;
  min-height: 148px;
}
.videos-page .speciality-card-inner img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 12px;
}
.videos-page .speciality-card-label {
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.astro-search {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.astro-search input[type='search'] {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.8rem;
  border: 1px solid #c9d4d6;
  border-radius: 8px;
}
.astro-search input[type='submit'],
.astro-search button {
  border: 0;
  border-radius: 8px;
  background: #007e87;
  color: #fff;
  padding: 0.65rem 1rem;
  cursor: pointer;
}

.astro-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.astro-video-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.astro-video-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex: 0 0 auto;
  background: #dfe7e9;
}

.astro-video-card-media img,
.astro-video-card-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.astro-video-lock,
.astro-video-open {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  font-size: 0.75rem;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  color: #fff;
}

.astro-video-lock {
  background: #ee5d75;
}

.astro-video-open {
  background: #007e87;
}

.astro-video-card-body {
  padding: 0.9rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.astro-video-title {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  line-height: 1.35;
  /* Always reserve two lines so descriptions/CTAs line up across cards */
  height: calc(1.05rem * 1.35 * 2);
  overflow: hidden;
}

.astro-video-title a {
  color: inherit;
  text-decoration: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  height: 100%;
}

.astro-video-cta {
  margin-top: auto;
  margin-bottom: 0;
}

.astro-video-desc,
.astro-video-keywords,
.astro-video-meta {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
  color: #445;
}

.astro-video-desc-wrap {
  margin-bottom: 0.45rem;
}

.astro-video-desc-wrap .astro-video-desc {
  margin-bottom: 0.15rem;
}

.astro-video-desc.is-clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.astro-desc-more {
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  color: #007e87;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.astro-desc-more:hover,
.astro-desc-more:focus {
  color: #005e66;
}

.astro-video-keywords {
  color: #667;
}

.astro-btn {
  display: inline-block;
  margin-top: 0.35rem;
  background: #007e87;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  padding: 0.45rem 0.8rem;
  font-size: 0.9rem;
}

.astro-scroll-sentinel {
  height: 1px;
  margin: 1.5rem 0;
}

.astro-subscribe-note {
  margin-top: 2rem;
  color: #566;
}

.astro-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-padding-100 {
  padding: 2.5rem 0 3.5rem;
}
