.dropdown dd,
.dropdown dt,
.dropdown ul {
  margin: 0px;
  padding: 0px;
}

.dropdown dd ul li a span:first-child,
.dropdown dt a span span:first-child {
  background-image: url('/images/flags.png');
  background-repeat: no-repeat;
  width: 16px;
  height: 11px;
  display: inline-block;
  margin: 10px 0px;
  vertical-align: top;
}

.dropdown dt a span {
  cursor: pointer;
  display: block;
  padding: 5px;
  white-space: nowrap;
}

.dropdown dt a img {
  position: relative;
  z-index: 1;
}

.dropdown dt a span span:first-child:before {
  position: absolute;
  content: '';
  width: 8px;
  height: 10px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2) inset;
}

.dropdown dt a span span {
  display: inline-block;
}

.dropdown dt a span span:first-child {
  padding: 0;
}

.dropdown dd {
  position: relative;
}

.dropdown a,
.dropdown a:visited {
  color: #4a535f;
  text-decoration: none;
  outline: none;
}

.dropdown a:hover {
  color: #5d4617;
}

.dropdown dt a:hover,
.dropdown dt a:focus {
  color: #5d4617;
}

.dropdown dt a {
  position: relative;
  background: rgba(227, 230, 239, 0.8);
  display: block;
  padding-right: 20px;
  overflow: hidden;
  width: 270px;
}

.dropdown dt a:before {
  right: 12px;
  top: 18px;
  content: "";
  position: absolute;
  margin-left: 20px;
  bottom: 0;
  width: 0%;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid black;
}

.dropdown dd ul {
  background: #f0f2f7;
  text-align: left;
  color: #C5C0B0;
  display: none;
  left: 0px;
  padding: 5px 0px;
  position: absolute;
  /* width: 270px; */
  width: 305px;
  border: 1px solid #ed4267;
  list-style: none;
  max-height: 170px;
  overflow-y: scroll;
  top: 10px;
  z-index: 2;
}

/* li a span:nth-child(2) {
  line-height: 2.5em;
  padding: 5px;
} */

.dropdown dd ul::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.3);
  border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.dropdown dd ul::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.4);
  /*-webkit-box-shadow: inset 0 0 1px rgba(0,0,0,0.5), 1px 0 0 #5cace9 inset, 2px 0 0 #b3d5ee inset;
    border-radius:10px;*/
}

.dropdown dd ul::-webkit-scrollbar-thumb:window-inactive {
  background: blue;
}

.dropdown span.value {
  display: none;
}

.dropdown dd ul li a {
  padding: 5px;
  display: block;
  font-size: 12px !important;
}

.dropdown dd ul li a:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

dl.dropdown {
  display: inline-block;
}

dl.dropdown span:nth-child(3) {
  color: rgba(0, 0, 0, 0.4)
}

dl.dropdown>span:nth-child(2) {
  overflow: hidden;
  white-space: nowrap;
  display: inline-block;
}

dl.dropdown span:nth-child(3) {
  float: right;
}

dl.dropdown dt span:nth-child(2) {
  color: rgba(0, 0, 0, 0.6);
  font-size: 14px;
  font-weight: bold;
  line-height: 1.6em;
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-bottom: 24px
}

/* Video box should take full width */
.video-box {
  position: relative;
  width: 100%;
  height: auto;
}

.video-box a {
  display: block;
  width: 100%;
  height: 100%;
}

/* Video scaling */
.video-box img {
  width: 100%;
  height: auto;
  object-fit: cover;  /* Keeps aspect ratio but ensures it fits inside the box */
}

/* Overlay the arrows in the middle of the carousel, relative to the video box */
.slick-arrow {
  position: absolute;
  top: 50%;  /* Align to the middle of the video carousel */
  transform: translateY(-50%);  /* Ensure it stays centered vertically */
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
}

.slick-prev {
  left: 10px;  /* Position the previous button on the left of the video */
}

.slick-next {
  right: 10px;  /* Position the next button on the right of the video */
}

.slick-arrow:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Bullet dots styling */
.slick-dots {
  /* position: absolute; */
  bottom: 15px;
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
}

.slick-dots li {
  margin: 0 5px;
}

.slick-dots li button {
  font-size: 0;  /* Hide numbered buttons */
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  cursor: pointer;
}

.slick-dots li.slick-active button {
  background-color: rgba(255, 255, 255, 1);
}

/* Responsive scaling to fit the screen width */
.video-carousel {
  width: 100%;
  height: auto;
  overflow: hidden;
}

/* Adjust the video and container for responsiveness */
@media (max-width: 768px) {
  .video-box img {
      width: 100%;
      height: auto;
  }
  
  /* Hide scroll arrows on mobile */
  .slick-arrow {
      display: none !important;  /* Force hiding scroll arrows on mobile */
  }
  .slick-next {
      display: none;
  }
  .slick-prev {
      display: none;
  }
  /* Ensure dots are centered on mobile */
  .slick-dots {
      bottom: 10px;
  }
}

/* Show scroll arrows only on screens larger than 768px */
@media (min-width: 769px) {
  .slick-arrow {
      display: block;  /* Make sure scroll buttons are visible on larger screens */
  }
}

.featured-strip {
  background: #ffffff;
  padding: 60px 0 70px;
  text-align: center;
}

.featured-logos-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px 28px;
  align-items: center;
  justify-items: center;
  margin: 0 auto 44px;
  max-width: 1040px;
}

.featured-logos-grid img {
  width: 100%;
  max-width: 160px;
  height: auto;
  display: block;
}

@media (max-width: 992px) {
  .featured-logos-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .featured-logos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

.featured-title {
  color: #4a4a4a;
  font-size: 28px;
  margin-bottom: 40px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 26px 34px;
  align-items: center;
  justify-items: center;
  max-width: 1040px;
  margin: 0 auto 44px;
}

.featured-logo {
  color: #1f1f1f;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: none;
}

.logo-daily-mail {
  font-family: "GothamBook", "DM Sans", sans-serif;
  font-size: 22px;
  letter-spacing: 0.5px;
}

.logo-my-london {
  background: #d31b23;
  color: #ffffff;
  border-radius: 12px;
  padding: 16px 18px;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.1;
}

.logo-bbc {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.logo-bbc .bbc-box {
  display: inline-block;
  background: #111111;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  padding: 6px 8px;
  letter-spacing: 1px;
}

.logo-bbc .bbc-radio {
  font-size: 18px;
  letter-spacing: 2px;
}

.logo-luxury {
  color: #4b2f6f;
  font-size: 24px;
  font-weight: 700;
  display: grid;
  gap: 6px;
  justify-items: center;
}

.logo-luxury .luxury-mark {
  font-size: 30px;
  letter-spacing: 4px;
}

.logo-luxury .luxury-sub {
  font-size: 11px;
  font-weight: 500;
  color: #777777;
}

.logo-education {
  color: #b7181f;
  font-size: 20px;
  text-transform: none;
  line-height: 1.05;
}

.logo-express {
  font-size: 21px;
  letter-spacing: 1px;
}

.logo-independent {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.logo-independent .independent-mark {
  background: #0f6fb2;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}

.logo-independent .independent-text {
  font-size: 14px;
  font-weight: 600;
  color: #2b2b2b;
}

.logo-disability {
  color: #f28c2f;
  font-size: 18px;
  font-weight: 600;
  text-transform: lowercase;
}

.logo-mirror {
  color: #b02024;
  font-size: 22px;
}

.logo-nhs {
  background: #0b62c2;
  color: #ffffff;
  padding: 6px 18px;
  font-size: 20px;
  font-weight: 800;
  border-radius: 4px;
}

.logo-sun {
  background: #d71920;
  color: #ffffff;
  padding: 8px 14px;
  text-transform: uppercase;
  font-size: 18px;
  line-height: 1.1;
}

.logo-sun span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
}

.logo-telegraph {
  font-family: "GothamBook", "DM Sans", sans-serif;
  font-size: 20px;
}

.logo-carer {
  background: #0f7a3c;
  color: #f3d27a;
  padding: 10px 16px;
  font-weight: 700;
}

.logo-voice {
  background: #d12222;
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 18px;
  font-size: 16px;
  letter-spacing: 1px;
}

.logo-voice span {
  font-size: 13px;
  font-weight: 600;
}

.logo-health {
  color: #1c1c1c;
  font-size: 16px;
  font-weight: 600;
}

.featured-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #d5001c;
  color: #ffffff;
  padding: 28px 44px;
  font-size: 16px;
  font-weight: 600;
  text-transform: none;
  border: 2px solid var(--primary);
  transition: 0.3s;
}

.featured-more:hover {
  background: transparent;
  color: #e00614;
  text-decoration: none;
}

@media (max-width: 992px) {
  .featured-grid {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }
}

@media (max-width: 640px) {
  .featured-title {
    font-size: 22px;
  }

  .featured-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 22px;
  }
}


.featured-image {
  width: 100%;
  max-width: 1040px;
  height: auto;
  display: block;
  margin: 0 auto 44px;
}

@media (max-width: 640px) {
  .featured-image {
    margin-bottom: 34px;
  }
}

@media (max-width: 767.98px) {
  .featured-image,
  .featured-image-full {
    display: none;
  }

  .pbaim {
    margin-top: -40px;
    max-height: 28rem;
  }
  .baim {
    height: 60%;
    overflow: hidden;
    margin-top: 66px;
  }

  .baim img {
    /* width: 100%;
    height: 100%; */
    object-fit: cover;
    display: block;     /* avoids inline-image gaps */
  }

  .featured-secondary-grid .home-doc-testimonial {
    margin-top: -18px !important;
}

}

.usagecap {
  margin-left: 2rem;
  margin-bottom: 40px;
  flex: 0 0 100%;
  max-width: 100%;
}
.featured-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  align-items: stretch;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.featured-secondary-media,
.featured-secondary-grid .home-doc-testimonial {
  height: 100%;
}

.featured-secondary-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.featured-secondary-grid .home-doc-testimonial {
  margin-top: 0;
  border-radius: 0;
  text-align: center;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 2rem;
}

.featured-secondary-grid .home-doc-testimonial-portrait {
  width: min(70%, 250px);
  margin: 0 auto 2rem;
  border-radius: 26px;
}

.featured-secondary-grid .home-doc-testimonial-quote {
  /* font-size: 1.6rem; */
  line-height: 1.6;
  font-weight: 500;
  max-width: 720px;
  margin: 0;
}

.featured-secondary-grid .home-doc-testimonial-attrib {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 1.5rem;
}

@media (max-width: 767.98px) {
  .featured-secondary-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .featured-secondary-grid .home-doc-testimonial-portrait {
    width: min(80%, 220px);
    margin-bottom: 1.5rem;
  }

  .featured-secondary-grid .home-doc-testimonial {
    padding: 2.5rem 1.5rem;
  }

  .featured-secondary-grid .home-doc-testimonial-quote {
    font-size: 1.25rem;
  }

  .featured-secondary-grid .home-doc-testimonial-attrib {
    font-size: 1.05rem;
    margin-top: 1.25rem;
  }
}

@media (max-width: 864px) {
  .stxt {
    font-size: 40px;
  }
}
@media (min-width: 992.98px) {
 
  .featured-secondary-grid .home-doc-testimonial-portrait {
    /* width: min(80%, 326px); */
    width: 30vw;
  }
}

.featured-image-full {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
