/* Base Typography & Layout */
body {
  font-family: "Urbanist", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

.outer-wrapper {
  width: 100%;
  max-width: 800px;
  padding: 0 20px;
  margin: 5vh auto 0;
}

/* 01 */ /* Apply to any container that may hold long URLs */
/* 02 */ a {
/* 03 */   overflow-wrap: anywhere;   /* modern, breaks anywhere if needed */
/* 04 */   word-break: break-word;    /* Safari fallback/alias */
/* 05 */   white-space: normal;       /* ensure wrapping is allowed */
/* 06 */ }

/* Newsletter Title Section */
#newsletter-title img {
  height: 150px;
  width: auto;
}

/* Newsletter Title Section */
#newsletter-title-revised img {
  height: auto;
  width: 100%;
}

#newsletter-title-hd-logo img {
  height: 90px;
  width: auto;
}

#newsletter-title-issue {
  font-size: 20px;
  margin-right: 55px;
}

.newsletterLabel {
  text-transform: uppercase;
  font-size: 3vh;
}

/* Text Styles */
p {
  font-size: 2.5vh !important;
  color: #292929;
  font-weight: 400;
  line-height: 1.5em;
  margin-top: 25px;
}

p strong,
a {
  font-size: 2.5vh;
  font-weight: 500;
  letter-spacing: 0;
}

p.highlight {
  font-size: 3.2vh !important;
}

h2 {
  margin: 0;
  text-transform: none;
}

h3 {
  font-size: 2.4vw;
  font-weight: 700;
  text-transform: capitalize;
  line-height: 1.2em !important;
  margin: 0;
  display: inline-block;
}

h3.intro {
  margin-top: 1.5vh;
  font-size: 2.5vh !important;
  font-weight: bold;
  color: #000000;
  line-height: 1.4 !important;
  text-transform: none;
}

h4 {
  font-size: 2.5vh !important;
  font-weight: bold;
  color: #000000;
  line-height: 1.5vh;
  text-transform: none;
  margin-top: 4vh;
}

.tip {
  color: #666;
}

.no-wrap {
  white-space: nowrap !important;
  display: inline-block;
}

/* Image Rows */
.image-row {
  display: flex;
  gap: 20px;
  align-items: stretch;
  max-width: 1000px;
  margin: 0 auto;
}

.image-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-wrapper:first-child img {
  object-fit: contain;
  object-position: top left;
}

/* Caption */
h6, .caption {
  font-size: 1.2rem;
  color: #666;
  font-style: italic;
  line-height: 1.4;
  margin-top: 8px;
}

/* Brand Colour Bar */
:root {
  --bar-height: 1.25em;
  --overlap: 0.625em;
}

p:has(> img) {

  margin-bottom: 0;     /* spacing */
}

ul{padding:0;}
ul li { list-style: disc !important; margin-left: 1.5rem; font-size: 2.5vh !important; }
li { margin-bottom: .5rem !important; line-height:1.5 !important; font-size:1rem !important; color:#333 !important; }



#brand-coloured-bar {
  position: relative;
  height: var(--bar-height);
  width: 100%;
  max-width: 1000px;
  margin: 30px auto;
  font-size: 16px;
}

#brand-coloured-bar .bar {
  position: absolute;
  height: 100%;
  border-radius: 999px;
  opacity: 0.85;
}

#brand-coloured-bar .pink {
  background-color: #ec3d8d;
  left: 0%;
  width: calc(25% + var(--overlap));
  z-index: 1;
}

#brand-coloured-bar .blue {
  background-color: #00c0f3;
  left: calc(25% - var(--overlap));
  width: calc(25% + var(--overlap) * 2);
  z-index: 2;
}

#brand-coloured-bar .orange {
  background-color: #f68b1f;
  left: calc(50% - var(--overlap));
  width: calc(25% + var(--overlap) * 2);
  z-index: 3;
}

#brand-coloured-bar .green {
  background-color: #8cc63f;
  left: calc(75% - var(--overlap));
  width: calc(25% + var(--overlap));
  z-index: 4;
}

/* Carousel Styling */
.story-carousel {
  max-width: 900px;
  margin: auto;
  position: relative;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem;
}

.carousel-slide {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.carousel-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.carousel-image-wrapper img {
  max-width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}



.carousel-caption {
  color: #000;
  position: static;
  padding: 0;
  text-align: center;
  line-height: 1.3;
  font-size: 1.1rem;
  max-width: 100%;
  padding: 0 1rem;

  word-break: keep-all;
}

.carousel-caption span.nowrap,
.carousel-caption .text-nowrap,
.carousel-caption .no-wrap {
  white-space: nowrap;
}

.carousel-caption strong,
.carousel-caption em {
  white-space: nowrap;
}

/* Carousel Controls */
.carousel-controls {
  position: absolute;
  top: 30%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0;
  pointer-events: none;
  z-index: 10;
}

.carousel-controls button {
  position: absolute;
  width: 80px;
  height: 80px;
  border: none;
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
  background-image: linear-gradient(to right, #ed3e8c, #f68d33) !important;
  transition: box-shadow 0.3s ease;
  z-index: 100;
}

.carousel-controls button.prev {
  left: -30px;
}

.carousel-controls button.next {
  right: -30px;
}

.carousel-controls button:hover {
  box-shadow: 0 0 10px rgba(237, 62, 140, 0.7);
}

/* Carousel Indicator */
.story-carousel .carousel-indicator {
  text-align: center;
  padding: 5px 12px 15px;
  z-index: 15;
}

/* Responsive - Tablets */
@media (min-width: 601px) and (max-width: 1024px) {
  .outer-wrapper {
    width: 90%;
    padding: 0 20px;
  }

  p, h4, a {
    font-size: 20px !important;
  }
}

@media (min-width: 992px) {

  .desktop { display: block !important; }
  .mobile { display: none !important; }

  .story-carousel .carousel-image-wrapper {
    max-height: 65vh;
    overflow: hidden;
  }

  .story-carousel .carousel-image-wrapper img {
    height: 100%;
    width: auto;
    object-fit: cover;
    margin-bottom: 0; /* remove previous crop */
  }
}

/* Responsive - Mobile */
@media (max-width: 600px) {
  .carousel-caption {
    font-size: 2vh !important;
    max-width: 100%;
    padding: 0 1rem;
        height: 13vh;
  }

  .carousel-controls button {
    width: 60px;
    height: 60px;
    font-size: 1rem;
  }

  .newsletterLabel {
    font-size: 1.7vh;
    color: #000;
    text-transform: uppercase;
  }

  .row > * {
    padding: 0;
  }

  .outer-wrapper {
    width: 90%;
    margin: 5vh auto 0;
  }

  .desktop { display: none !important; }
  .mobile { display: block !important; }

  h4 {
    font-size: 2.5vh !important;
    font-weight: bold;
    color: #000;
  }



  .caption {
    font-size: 2vh;
    color: #666;
    font-style: italic;
    line-height: 1.4;
    margin-top: 8px;
  }

  .mb-5 { margin-bottom: 5vh !important; }
  .mt-5 { margin-top: 5vh !important; }

  #brand-coloured-bar {
    margin: 5vh auto;
  }
}
/* ===========================
   HD@QT Gallery Slideshow
   =========================== */

/* Container */
.gallery {
  position: relative;
  max-width: 1060px;
  margin: 2rem auto;
  outline: none; /* enable keyboard focus highlight below */
}

/* Slide base */
.gallery .slide { display: none; margin: 0; }
.gallery .slide.active { display: block; }

/* White card frame look */
.gallery .frame {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,.08);
}

/* Image wrapper — anchors the arrows to the image height */
.gallery .g-visual { position: relative; }
.gallery .g-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Caption under image */
.gallery .caption {
  margin: 16px auto 4px;
  font-size: 1.05rem;
  line-height: 1.6;
  text-align: center;
  color: #222;
}

/* Arrows (gradient buttons) */
.gallery .g-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #ff6aa7, #ff8a00);
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
  opacity: .92;
  transition: transform .15s ease, opacity .2s ease, box-shadow .2s ease;
}
.gallery .g-nav:hover,
.gallery .g-nav:focus {
  transform: translateY(-50%) scale(1.03);
  opacity: 1;
  box-shadow: 0 8px 22px rgba(0,0,0,.22);
}

/* Arrow positions: inside image on mobile; offset outwards on desktop */
.gallery .g-prev { left: 6px; }
.gallery .g-next { right: 6px; }

@media (min-width: 769px) {
  .gallery .g-prev { left: -18px; }
  .gallery .g-next { right: -18px; }
}

/* Only show arrows on the active slide */
.gallery .slide:not(.active) .g-nav { display: none; }

.gallery br {
  display: none;
}

/* Counter below card */
.gallery .g-counter {
  text-align: center;
  margin-top: 10px;
  font-size: .95rem;
  color: #6b6b6b;
}

/* Accessibility focus (optional) */
.gallery:focus { outline: 2px solid rgba(255,138,0,.35); outline-offset: 4px; }
