/* Custom styles for Dr. Abdul Basit (Basit Ortho) Portfolio */

.preloader {
  background-color: #153C33 !important;
}

#loading-icon img {
  max-width: 64px;
  height: auto;
}

header.main-header .navbar {
  padding: 12px 0;
}

.navbar-brand img {
  max-height: 54px;
  width: auto;
  object-fit: contain;
}

.footer-logo img {
  max-height: 58px;
  width: auto;
  object-fit: contain;
}

/* 3-Slide Hero (Exact Template Hero Typography, Alignment & Colors) */
.hero.hero-slider {
  text-align: left;
  background-color: var(--secondary-color);
  padding: 0;
}

.hero.hero-slider .hero-slider-layout .hero-slide {
  position: relative;
  padding: 110px 0 130px;
  text-align: left;
}

.hero.hero-slider .hero-slider-layout .hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(230, 239, 237, 0.96) 0%,
    rgba(230, 239, 237, 0.88) 52%,
    rgba(230, 239, 237, 0.35) 100%
  );
  opacity: 1;
  z-index: 1;
}

.hero.hero-slider .hero-slider-layout .hero-slide .hero-content {
  position: relative;
  z-index: 2;
  margin: 0;
  padding-right: 20px;
  max-width: 720px;
  text-align: left;
}

.hero.hero-slider .hero-slider-layout .hero-slide .hero-content .hero-content-body {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.hero.hero-slider .hero-content-body .btn-default {
  min-width: 225px;
  text-align: center;
}

.hero.hero-slider .hero-content-body .btn-default.btn-highlighted {
  margin-left: 16px;
}

/* Single-line text refinements */
.solution-counter-content p {
  white-space: nowrap;
}

.doctor-info-item .doctor-info-content {
  width: 100%;
}

.service-item {
  height: calc(100% - 30px);
  display: flex;
  flex-direction: column;
}

.service-item .service-body {
  flex: 1;
}

.service-item .service-footer,
.service-item .service-cta-btn {
  margin-top: auto;
}

.service-item .service-body h3 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-item.service-cta-item .service-body h3 {
  white-space: normal;
}

.gallery-scrolling-content .gallery-image {
  flex-shrink: 0;
}

.gallery-scrolling-content .gallery-image img {
  width: 315px;
  height: 365px;
  object-fit: cover;
  border-radius: 30px;
}

@media (max-width: 991px) {
  .gallery-scrolling-content .gallery-image img {
    width: 240px;
    height: 278px;
  }
}

.need-attention-list .need-attention-content p {
  white-space: nowrap;
}

/* Equal-height About Us image matching right column on desktop (Home & About) */
@media (min-width: 992px) {
  .about-us .row {
    align-items: stretch !important;
  }

  .about-us .about-us-image,
  .about-us .about-us-image .about-img,
  .about-us .about-us-image .about-img figure {
    height: 100%;
  }

  .about-us .about-us-image .about-img figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.quality-treatment-video .video-image img {
  width: 100%;
  aspect-ratio: 614 / 547;
  object-fit: cover;
}

/* Care Journey / Therapy Process Brand-Colored Icon Badges */
.therapy-process-item .icon-box.process-icon-badge {
  width: 100px;
  height: 100px;
  margin: 0 auto 25px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  border: 2px solid var(--accent-color);
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  transition: all 0.3s ease;
}

.therapy-process-item:hover .icon-box.process-icon-badge {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white-color);
}

/* Equal-height Testimonial Cards & Brand-colored User Icon */
.testimonial-slider .swiper-wrapper {
  align-items: stretch;
}

.testimonial-slider .swiper-slide {
  height: auto;
  display: flex;
}

.testimonial-slider .testimonial-item {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-avatar-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 1.5px solid var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.testimonial-header .testimonial-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
  width: 100%;
}

.testimonial-header .testimonial-top-row .testimonial-rating {
  margin-bottom: 0;
  display: flex;
  align-items: center;
}

.testimonial-author-badge {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 1px solid var(--accent-color);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.03em;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.hero.hero-slider .hero-slider-layout .swiper-pagination {
  bottom: 30px;
}

/* Calendly Widget Container */
.calendly-inline-widget,
.calendly-inline-widget iframe {
  width: 100% !important;
  max-width: 100% !important;
}

/* Footer Columns, Alignment & Copyright */
.main-footer .about-footer {
  padding-right: 24px;
}

.main-footer .about-working-hour,
.main-footer .about-service-list,
.main-footer .footer-contact {
  margin-left: 0;
}

.main-footer .about-working-hour h3,
.main-footer .about-service-list h3,
.main-footer .footer-contact h3 {
  margin-bottom: 24px;
}

.main-footer .about-footer-content p,
.main-footer .about-working-hour ul li,
.main-footer .about-service-list ul li,
.main-footer .about-service-list ul li a,
.main-footer .footer-info-box-content p {
  font-size: 15px;
  line-height: 1.55;
}

.main-footer .about-working-hour ul li,
.main-footer .about-service-list ul li,
.main-footer .footer-contact-details .footer-info-box {
  margin-bottom: 14px;
}

.main-footer .about-working-hour ul li:last-child,
.main-footer .about-service-list ul li:last-child,
.main-footer .footer-contact-details .footer-info-box:last-child {
  margin-bottom: 0;
}

.splendidmark-link {
  display: inline-flex;
  align-items: center;
}

.splendidmark-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
}

.footer-copyright .footer-social-links {
  margin-top: 0;
}

.footer-copyright .footer-social-links ul {
  justify-content: flex-end;
}

@media (max-width: 767px) {
  .footer-copyright .footer-social-links ul {
    justify-content: flex-start;
    margin-top: 12px;
  }

  /* Mobile: Hero buttons aligned identically */
  .hero.hero-slider .hero-content-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hero.hero-slider .hero-content-body .btn-default.btn-highlighted {
    margin-left: 0 !important;
  }

  /* Mobile: Conditions 1 per row, icon left & name aligned to end */
  .need-attention-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: right;
    padding-left: 0;
  }

  .need-attention-list .icon-box {
    position: static;
    transform: none;
    margin-right: 12px;
    flex-shrink: 0;
  }

  .need-attention-list .need-attention-content {
    width: auto;
    text-align: right;
  }

  /* Mobile: Hide footer social icons on mobile only */
  .main-footer .footer-copyright .footer-social-links {
    display: none !important;
  }
}

@media (max-width: 991px) {
  /* Mobile/Tablet: About section subtitle, title & description start-aligned */
  .about-us .about-us-content .section-title {
    text-align: left !important;
  }

  .about-us .about-us-content .section-title h3 {
    margin-left: 0;
  }
}

/* Video Cards (Homepage Latest 6 & Videos Library) */
.video-card {
  background: var(--white-color);
  border: 1px solid var(--dark-divider-color);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(21, 60, 51, 0.1);
}

.video-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0d2620;
}

.video-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.video-card:hover .video-thumb-wrap img {
  transform: scale(1.05);
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(21, 60, 51, 0.25);
  transition: background 0.3s ease;
}

.video-card:hover .video-play-overlay {
  background: rgba(21, 60, 51, 0.45);
}

.video-play-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-color);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s ease, background 0.25s ease;
}

.video-card:hover .video-play-circle {
  transform: scale(1.1);
  background: var(--primary-color);
}

.video-duration-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(15, 23, 20, 0.85);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
}

.video-category-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(21, 60, 51, 0.88);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

.video-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.video-card-meta {
  font-size: 13px;
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.video-card-title {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--dark-divider-color);
}

/* Videos Library Filter Bar */
.videos-toolbar {
  background: var(--secondary-color);
  border-radius: 20px;
  padding: 22px 24px;
  margin-bottom: 36px;
}

.videos-search-input {
  width: 100%;
  border: 1px solid var(--dark-divider-color);
  border-radius: 999px;
  padding: 12px 20px 12px 44px;
  background: var(--white-color);
  color: var(--primary-color);
  font-size: 15px;
  outline: none;
}

.videos-search-input:focus {
  border-color: var(--accent-color);
}

.videos-search-wrap {
  position: relative;
}

.videos-search-wrap i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-color);
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-pill {
  border: 1px solid var(--dark-divider-color);
  background: var(--white-color);
  color: var(--primary-color);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.category-pill:hover,
.category-pill.active {
  background: var(--primary-color);
  color: var(--white-color);
  border-color: var(--primary-color);
}

/* Vidstack Watch Page (YouTube-like Branded Layout) */
.watch-workspace {
  padding: 28px 0 70px;
  background-color: #f6faf9;
}

.watch-breadcrumb-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 18px;
}

.watch-breadcrumb-bar a {
  color: var(--primary-color);
  text-decoration: none;
}

.watch-breadcrumb-bar a:hover {
  color: var(--accent-color);
}

.watch-breadcrumb-bar .current {
  color: var(--accent-color);
  font-weight: 600;
  max-width: 420px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.watch-player-shell {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #0b1915;
  box-shadow: 0 20px 50px rgba(21, 60, 51, 0.14);
  aspect-ratio: 16 / 9;
}

.watch-player-shell media-player {
  display: block;
  width: 100%;
  height: 100%;
  --media-brand: #619e90;
  --video-brand: #619e90;
  --media-focus-ring: 0 0 0 3px rgba(97, 158, 144, 0.55);
}

.watch-info-card {
  background: var(--white-color);
  border: 1px solid var(--dark-divider-color);
  border-radius: 18px;
  padding: 22px 24px;
}

.watch-title {
  font-size: 22px;
  line-height: 1.38;
  color: var(--primary-color);
  margin-bottom: 14px;
}

.watch-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--dark-divider-color);
}

.watch-meta-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.watch-brand-pill {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 1px solid var(--accent-color);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
}

.watch-meta-text {
  font-size: 13px;
  color: var(--text-color);
  font-weight: 500;
}

.watch-mini-btn {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 1px solid var(--dark-divider-color);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.watch-mini-btn:hover {
  background: var(--primary-color);
  color: var(--white-color);
}

.watch-doctor-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 16px;
}

.watch-doctor-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.watch-doctor-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--secondary-color);
  border: 1.5px solid var(--accent-color);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.watch-doctor-name {
  display: block;
  color: var(--primary-color);
  font-size: 16px;
}

.watch-doctor-sub {
  font-size: 13px;
  color: var(--text-color);
}

.watch-cta-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.watch-sidebar-card {
  background: var(--white-color);
  border: 1px solid var(--dark-divider-color);
  border-radius: 18px;
  padding: 18px;
}

.watch-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.watch-sidebar-header h3 {
  font-size: 18px;
  margin-bottom: 2px;
}

.watch-up-next-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 620px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

.up-next-card {
  display: flex;
  gap: 14px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--dark-divider-color);
  background: var(--white-color);
  transition: all 0.25s ease;
  text-decoration: none;
}

.up-next-card:hover,
.up-next-card.active {
  background: var(--secondary-color);
  border-color: var(--accent-color);
}

.up-next-thumb {
  position: relative;
  width: 148px;
  flex-shrink: 0;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #0d2620;
}

.up-next-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.up-next-info h4 {
  font-size: 14px;
  line-height: 1.35;
  color: var(--primary-color);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.up-next-info span {
  font-size: 12px;
  color: var(--accent-color);
  font-weight: 600;
}
