/*
 * uktg-utilities.css
 * Tailwind utility shim, mobile performance overrides,
 * counselling landing page, Tutor LMS video fix.
 * Load order: 3 of 6
 */

/* Prevent horizontal scroll without breaking vertical scroll */
html {
  overflow-x: clip;
}

/* ==========================================================================
   21. TAILWIND UTILITY SHIM (scoped to .bubble-stage)
   ========================================================================== */
.bubble-stage .mx-auto  { margin-left: auto; margin-right: auto; }
.bubble-stage .px-4     { padding-left: 16px; padding-right: 16px; }
.bubble-stage .py-3     { padding-top: 12px; padding-bottom: 12px; }
.bubble-stage .p-4      { padding: 1rem; }
.bubble-stage .p-5      { padding: 1.25rem; }
.bubble-stage .p-6      { padding: 1.5rem; }
.bubble-stage .p-7      { padding: 1.75rem; }
.bubble-stage .p-8      { padding: 2rem; }
.bubble-stage .text-center  { text-align: center; }
.bubble-stage .w-full       { width: 100%; }
.bubble-stage .overflow-hidden { overflow: hidden; }
.bubble-stage .sticky       { position: sticky; }
.bubble-stage .list-disc    { list-style-type: disc; }
.bubble-stage .list-inside  { list-style-position: inside; }
.bubble-stage .italic       { font-style: italic; }
.bubble-stage .leading-tight { line-height: 1.15; }

/* Spacing */
.bubble-stage .space-y-1 > * + * { margin-top: 0.25rem; }
.bubble-stage .space-y-4 > * + * { margin-top: 1rem; }
.bubble-stage .space-y-5 > * + * { margin-top: 1.25rem; }
.bubble-stage .mb-1  { margin-bottom: 0.25rem; }
.bubble-stage .mb-2  { margin-bottom: 0.5rem; }
.bubble-stage .mb-3  { margin-bottom: 0.75rem; }
.bubble-stage .mb-4  { margin-bottom: 1rem; }
.bubble-stage .mb-5  { margin-bottom: 1.25rem; }
.bubble-stage .mb-8  { margin-bottom: 2rem; }
.bubble-stage .mt-1  { margin-top: 0.25rem; }
.bubble-stage .mt-3  { margin-top: 0.75rem; }
.bubble-stage .mt-4  { margin-top: 1rem; }
.bubble-stage .mt-6  { margin-top: 1.5rem; }
.bubble-stage .mt-8  { margin-top: 2rem; }
.bubble-stage .ml-4  { margin-left: 1rem; }

/* Typography scale */
.bubble-stage .text-xs   { font-size: 0.78rem; }
.bubble-stage .text-sm   { font-size: 0.9rem; }
.bubble-stage .text-base { font-size: 1rem; }
.bubble-stage .text-lg   { font-size: 1.1rem; }
.bubble-stage .text-xl   { font-size: 1.25rem; }
.bubble-stage .text-2xl  { font-size: 1.5rem; }
.bubble-stage .text-3xl  { font-size: 1.9rem; }
.bubble-stage .text-4xl  { font-size: 2.25rem; }
.bubble-stage .font-medium    { font-weight: 500; }
.bubble-stage .font-semibold  { font-weight: 600; }
.bubble-stage .font-bold      { font-weight: 700; }
.bubble-stage .font-extrabold { font-weight: 800; }

/* Grey palette */
.bubble-stage .text-gray-500 { color: #6b7280; }
.bubble-stage .text-gray-600 { color: #4b5563; }
.bubble-stage .text-gray-700 { color: #374151; }
.bubble-stage .text-gray-800 { color: #1f2937; }

/* Flex */
.bubble-stage .flex            { display: flex; }
.bubble-stage .flex-col        { flex-direction: column; }
.bubble-stage .flex-wrap       { flex-wrap: wrap; }
.bubble-stage .items-center    { align-items: center; }
.bubble-stage .items-start     { align-items: flex-start; }
.bubble-stage .justify-center  { justify-content: center; }
.bubble-stage .justify-between { justify-content: space-between; }
.bubble-stage .gap-3  { gap: 0.75rem; }
.bubble-stage .gap-5  { gap: 1.25rem; }
.bubble-stage .gap-6  { gap: 1.5rem; }
.bubble-stage .gap-8  { gap: 2rem; }
.bubble-stage .gap-x-8 { column-gap: 2rem; }
.bubble-stage .gap-y-2 { row-gap: 0.5rem; }

/* Grid */
.bubble-stage .grid { display: grid; }

/* Responsive overrides */
@media (min-width: 768px) {
  .bubble-stage .md\:px-6      { padding-left: 24px; padding-right: 24px; }
  .bubble-stage .md\:text-base { font-size: 1rem; }
  .bubble-stage .md\:text-lg   { font-size: 1.1rem; }
  .bubble-stage .md\:text-xl   { font-size: 1.2rem; }
  .bubble-stage .md\:text-3xl  { font-size: 2rem; }
  .bubble-stage .md\:text-5xl  { font-size: 3rem; }
  .bubble-stage .md\:grid-cols-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .bubble-stage .md\:grid-cols-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (min-width: 1024px) {
  .bubble-stage .lg\:grid-cols-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (min-width: 1200px) {
  .bubble-stage .container,
  .bubble-stage .mxw-6xl { max-width: 1320px; }
}

@media (max-width: 520px) {
  .bubble-stage section { padding-top: 2.6rem; padding-bottom: 2.6rem; }
  .header-bar { gap: 0.6rem 0.8rem; }
}


/* ==========================================================================
   TUTOR LMS VIDEO PLAYER FIX
   Fixes Tutor LMS front.css setting .plyr--youtube iframe and
   .plyr--vimeo iframe to height:200%, causing the video to drop
   to the bottom half of the player on play for both YouTube and Vimeo.
   ========================================================================== */

/* Container: force 16:9 aspect ratio */
.tutor-video-player {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    overflow: hidden !important;
}

/* All direct children and generic iframes/videos fill the container */
.tutor-video-player > div,
.tutor-video-player iframe,
.tutor-video-player video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

/* Override Tutor LMS front.css height:200% on YouTube iframes */
.tutor-video-player .plyr--youtube iframe,
.tutor-video-player .plyr__video-embed.plyr--youtube iframe {
    height: 100% !important;
    top: 0 !important;
}

/* Override Tutor LMS front.css height:200% on Vimeo iframes */
.tutor-video-player .plyr--vimeo iframe,
.tutor-video-player .plyr__video-embed.plyr--vimeo iframe {
    height: 100% !important;
    top: 0 !important;
}


/* ==========================================================================
   COUNSELLING LANDING PAGE (#uktg-about-counselling)
   ========================================================================== */

#uktg-about-counselling {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  color: #2b2b2b;
  box-sizing: border-box;
}

/* Hero */
#uktg-about-counselling .uktg-hero {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(191,170,124,0.25);
  margin-bottom: 56px;
}

#uktg-about-counselling .uktg-hero-logo {
  margin: 0;
}

#uktg-about-counselling .uktg-hero-logo img {
  max-width: 200px;
  height: auto;
}

#uktg-about-counselling .uktg-post-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: #2b2b2b;
  line-height: 1.2;
  margin: 0 0 12px;
}

#uktg-about-counselling .uktg-hero-subtitle {
  font-size: 16px;
  line-height: 1.7;
  color: #555555;
  margin: 0;
  padding: 14px 18px;
  border-left: 3px solid #BFAA7C;
  background: #f9f7f4;
  border-radius: 0 8px 8px 0;
}

#uktg-about-counselling .uktg-hero-price {
  background: #f9f7f4;
  border: 1px solid rgba(191,170,124,0.3);
  border-radius: 10px;
  padding: 20px 24px;
}

#uktg-about-counselling .uktg-price-line {
  font-size: 17px;
  color: #2b2b2b;
  margin: 0 0 6px;
}

#uktg-about-counselling .uktg-price-line strong {
  font-size: 22px;
  color: #8f7a4f;
}

#uktg-about-counselling .uktg-price-sub {
  font-size: 14px;
  color: #666666;
  margin: 0;
}

/* CTAs */
#uktg-about-counselling .uktg-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#uktg-about-counselling .uktg-cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

#uktg-about-counselling .uktg-cta-links-centre {
  justify-content: center;
}

/* Highlights strip */
#uktg-about-counselling .uktg-hero-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(191,170,124,0.2);
  border: 1px solid rgba(191,170,124,0.2);
  border-radius: 10px;
  overflow: hidden;
}

#uktg-about-counselling .uktg-highlight {
  background: #ffffff;
  padding: 18px 20px;
}

#uktg-about-counselling .uktg-highlight-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8f7a4f;
  margin-bottom: 6px;
}

#uktg-about-counselling .uktg-highlight-value {
  font-size: 15px;
  color: #2b2b2b;
  line-height: 1.5;
}

/* Sections */
#uktg-about-counselling .uktg-section {
  margin-bottom: 56px;
}

#uktg-about-counselling .uktg-section h2 {
  font-size: 26px;
  font-weight: 800;
  color: #2b2b2b;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(191,170,124,0.25);
}

#uktg-about-counselling .uktg-text p {
  font-size: 16px;
  line-height: 1.75;
  color: #444444;
  margin: 0 0 16px;
}

#uktg-about-counselling .uktg-text p:last-child {
  margin-bottom: 0;
}

#uktg-about-counselling .uktg-muted {
  font-size: 14px;
  color: #777777;
  font-style: italic;
}

/* Venue card */
#uktg-about-counselling .uktg-venue-card {
  border: 1px solid rgba(191,170,124,0.25);
  border-radius: 10px;
  overflow: hidden;
  margin: 24px 0;
}

#uktg-about-counselling .uktg-venue-row {
  display: flex;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(191,170,124,0.15);
  align-items: baseline;
}

#uktg-about-counselling .uktg-venue-row:last-child {
  border-bottom: none;
}

#uktg-about-counselling .uktg-venue-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8f7a4f;
  min-width: 48px;
  flex-shrink: 0;
}

#uktg-about-counselling .uktg-venue-value {
  font-size: 15px;
  color: #2b2b2b;
  line-height: 1.5;
}

#uktg-about-counselling .uktg-venue-value a {
  color: #8f7a4f;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#uktg-about-counselling .uktg-venue-value a:hover {
  color: #BFAA7C;
}

/* Map */
#uktg-about-counselling .uktg-map {
  margin-top: 24px;
  border-radius: 10px;
  overflow: hidden;
}

#uktg-about-counselling .uktg-map iframe {
  display: block;
  border-radius: 10px;
}

/* Benefits list */
#uktg-about-counselling .uktg-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(191,170,124,0.2);
  border: 1px solid rgba(191,170,124,0.2);
  border-radius: 10px;
  overflow: hidden;
  margin: 24px 0;
}

#uktg-about-counselling .uktg-benefit {
  background: #ffffff;
  padding: 20px 22px;
}

#uktg-about-counselling .uktg-benefit-title {
  font-size: 14px;
  font-weight: 700;
  color: #2b2b2b;
  margin-bottom: 6px;
}

#uktg-about-counselling .uktg-benefit-text {
  font-size: 14px;
  color: #444444;
  line-height: 1.65;
}

/* Download */
#uktg-about-counselling .uktg-download {
  margin-top: 24px;
}

/* Accreditation logos */
#uktg-about-counselling .uktg-accreditation-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin-top: 24px;
}

#uktg-about-counselling .uktg-accreditation-logo {
  margin: 0;
}

#uktg-about-counselling .uktg-accreditation-logo img {
  height: 80px;
  width: auto;
  object-fit: contain;
}

/* Accordion */
#uktg-about-counselling .uktg-accordion {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

#uktg-about-counselling .uktg-acc-item {
  border-radius: 8px;
  border: 1px solid rgba(191,170,124,0.25);
  background: #ffffff;
  box-shadow: none;
  overflow: hidden;
}

#uktg-about-counselling .uktg-acc-item summary {
  cursor: pointer;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 700;
  color: #2b2b2b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  list-style: none;
  transition: background 0.15s ease;
}

#uktg-about-counselling .uktg-acc-item summary::-webkit-details-marker {
  display: none;
}

#uktg-about-counselling .uktg-acc-item summary::after {
  content: "+";
  font-size: 18px;
  font-weight: 400;
  color: #BFAA7C;
  flex-shrink: 0;
}

#uktg-about-counselling .uktg-acc-item[open] summary::after {
  content: "\2212";
}

#uktg-about-counselling .uktg-acc-item summary:hover {
  background: #f9f7f4;
}

#uktg-about-counselling .uktg-acc-body {
  padding: 4px 20px 18px;
  border-top: 1px solid rgba(191,170,124,0.15);
}

#uktg-about-counselling .uktg-acc-body ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

#uktg-about-counselling .uktg-acc-body li {
  font-size: 15px;
  color: #444444;
  line-height: 1.7;
  margin-bottom: 4px;
}

/* Mobile */
@media (max-width: 640px) {
  #uktg-about-counselling {
    padding: 32px 16px 60px;
  }

  #uktg-about-counselling .uktg-hero-highlights {
    grid-template-columns: 1fr;
  }

  #uktg-about-counselling .uktg-benefits {
    grid-template-columns: 1fr;
  }

  #uktg-about-counselling .uktg-hero-ctas {
    flex-direction: column;
  }

  #uktg-about-counselling .uktg-hero-ctas .uktg-cta,
  #uktg-about-counselling .uktg-hero-ctas .uktg-cta-secondary,
  #uktg-about-counselling .uktg-hero-ctas .uktg-cta-tertiary {
    width: 100%;
    text-align: center;
  }
}