/* 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;
}
/* Desktop only: five cards per row. Tablet/mobile keep the Bootstrap column widths. */
@media (min-width: 992px) {
  .videos-page .specialities-card-grid > [class*="col-"]:not(.col-12) {
    flex: 0 0 20%;
    max-width: 20%;
  }
}
.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);
  overflow: hidden;
  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: stretch;
  text-align: center;
  padding: 0;
  min-height: 0;
}
.videos-page .speciality-card-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f4f8f8;
}
.videos-page .speciality-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  margin: 0;
}
.videos-page .speciality-card-label {
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
  color: #333;
  padding: 10px 10px 12px;
  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;
  scroll-margin-top: 96px;
}

/* Before pagination JS runs, keep later pages out of view so the copy below stays on screen. */
html.has-js [data-video-pages]:not(.is-paged) > [data-video-card]:not([data-page="1"]) {
  display: none;
}

.astro-video-card[hidden] {
  display: none !important;
}

.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-pagination {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.astro-pagination-status {
  margin: 0;
  color: #6b7c80;
  font-family: "Manrope", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
}
.astro-pagination-controls {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  max-width: 100%;
  padding: 0.35rem;
  background: #fff;
  border: 1px solid #e4eeef;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(0, 78, 87, 0.08);
}
.astro-pagination-pages {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}
.astro-page-btn,
.astro-page-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  border: 0;
  background: transparent;
  color: #1d3c40;
  font-family: "Manrope", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.astro-page-btn {
  width: 2.5rem;
  padding: 0;
  border-radius: 50%;
}
.astro-page-nav {
  gap: 0.4rem;
  padding: 0 0.85rem;
  border-radius: 999px;
  color: #007e87;
}
.astro-page-nav i {
  font-size: 0.72rem;
}
.astro-page-btn:hover,
.astro-page-nav:hover:not(:disabled) {
  background: #e7f5f6;
  color: #007e87;
}
.astro-page-btn[aria-current="page"] {
  background: #007e87;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 126, 135, 0.32);
  cursor: default;
}
.astro-page-nav:disabled {
  color: #b7c6c8;
  cursor: default;
}
.astro-page-btn:focus-visible,
.astro-page-nav:focus-visible {
  outline: 2px solid #007e87;
  outline-offset: 2px;
}
.astro-page-ellipsis {
  width: 1.4rem;
  text-align: center;
  color: #8aa0a3;
  font-weight: 700;
  letter-spacing: 0.08em;
}
@media (max-width: 575px) {
  .astro-pagination-controls {
    border-radius: 18px;
    flex-wrap: wrap;
    row-gap: 0.15rem;
  }
  .astro-page-nav span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .astro-page-nav {
    width: 2.5rem;
    padding: 0;
  }
  .astro-page-btn,
  .astro-page-nav {
    height: 2.35rem;
  }
  .astro-page-btn {
    width: 2.35rem;
  }
}

.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;
}

/* FAQ accordion: reuse h6 accordion look with semantic h3 questions */
.single-accordion h3 {
  margin-bottom: 0;
  font-size: inherit;
  font-weight: inherit;
}
.single-accordion h3 a {
  background-color: #1d1d1d;
  border-radius: 0;
  color: #ffffff;
  display: block;
  margin: 0;
  padding: 20px 60px 20px 20px;
  position: relative;
  font-size: 14px;
  text-transform: capitalize;
  font-weight: 500;
}
.single-accordion h3 a span {
  font-size: 10px;
  position: absolute;
  right: 20px;
  text-align: center;
  top: 24px;
}
.single-accordion h3 a span.accor-open {
  opacity: 0;
}
.single-accordion h3 a.collapsed {
  background-color: #008c96;
  color: #ffffff;
}
.single-accordion h3 a.collapsed span.accor-close {
  opacity: 0;
}
.single-accordion h3 a.collapsed span.accor-open {
  opacity: 1;
}

.single-accordion .faq-answer {
  padding: 20px 15px 15px;
}
.single-accordion .faq-answer p {
  padding: 0;
  margin: 0 0 0.85rem;
}
.single-accordion .faq-answer p:last-child {
  margin-bottom: 0;
}
.single-accordion .faq-answer a {
  color: #007e87;
  text-decoration: underline;
}

.section-padding-100 {
  padding: 2.5rem 0 3.5rem;
}

.breadcumb-area.has-specialty-intro {
  height: auto;
  min-height: 270px;
  padding-top: 175px;
  padding-bottom: 40px;
}
.breadcumb-area.has-specialty-intro .breadcumb-title {
  font-size: clamp(26px, 3.4vw, 42px);
  margin-bottom: 0.65rem;
}
.breadcumb-area.has-specialty-intro .specialty-intro {
  max-width: 760px;
  margin: 0.35rem auto 0;
  line-height: 1.55;
  color: #232121;
}
.breadcumb-area.has-specialty-intro .specialty-intro a {
  color: #007e87;
  text-decoration: underline;
}
@media only screen and (max-width: 991px) {
  .breadcumb-area.has-specialty-intro {
    padding-top: 140px;
    padding-bottom: 32px;
  }
  /* Title sits below the header, so it does not need the logo side inset. */
  .breadcumb-area.has-specialty-intro .breadcumb-content {
    padding-left: 20px;
    padding-right: 20px;
    word-break: normal;
    overflow-wrap: break-word;
  }
}
@media only screen and (max-width: 767px) {
  .breadcumb-area.has-specialty-intro {
    padding-top: 125px;
  }
  .breadcumb-area.has-specialty-intro .breadcumb-title {
    font-size: clamp(22px, 6.4vw, 28px);
  }
  .breadcumb-area.has-specialty-intro .specialty-intro {
    font-size: 0.95rem;
  }
}

.specialty-seo {
  background: #fff;
  border-top: 1px solid #e6eef0;
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}
.specialty-seo-copy {
  max-width: 860px;
  margin: 0 auto;
}
.specialty-seo-copy h2 {
  font-size: 28px;
  line-height: 1.3;
  margin: 0 0 0.85rem;
  color: #1d929c;
}
.specialty-seo-section + .specialty-seo-section,
.specialty-seo-copy > h2 {
  margin-top: 2.25rem;
}
.specialty-seo-copy p {
  margin-bottom: 0.9rem;
}
.specialty-seo-copy a {
  color: #007e87;
  font-size: inherit;
  text-decoration: underline;
}
.specialty-seo .single-accordion {
  margin-top: 0.75rem;
}
.specialty-seo .single-accordion h3 a {
  text-transform: none;
}
.specialty-disclaimer {
  margin-top: 1.75rem;
}
.specialty-disclaimer p {
  margin-bottom: 0;
  color: #666;
}
