/* =========================================
   TTA Course Detail Cards
   File: /css/tta-course-cards.css
   Refactor: cleaned components, removed unused list overrides
   ========================================= */

:root{
  --tta-card-bg: #ffffff;
  --tta-card-border: rgba(15, 23, 42, 0.08);
  --tta-card-radius: 14px;

  --tta-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
  --tta-shadow-hover: 0 6px 18px rgba(15, 23, 42, 0.08);

  --tta-text: #334155;
  --tta-title: #0f172a;

  --tta-header-bg: #4b4f54;

  --tta-accent: #e77d35; /* main orange */
}

/* Wrapper spacing */
.tta-course-cards{
  margin-top: 26px;
  margin-bottom: 26px;
}

/* Card container */
.tta-course-card{
  width: 90%;
  margin: 0 auto 28px auto;
  background: var(--tta-card-bg);
  border: 1px solid var(--tta-card-border);
  border-radius: var(--tta-card-radius);
  box-shadow: var(--tta-shadow);
  overflow: hidden;
}

.tta-course-card:hover{
  box-shadow: var(--tta-shadow-hover);
}

/* Header */
.tta-course-card__header{
  padding: 14px 10px;
  background: var(--tta-header-bg);
}

/* Title */
.tta-course-card__title{
  margin: 0 !important;
  padding: 0 !important;
  text-align: center;
  color: #ffffff;
  font-size: 13px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Hide icons in headers to keep them clean */
.tta-course-card__title i{
  display: none !important;
}

/* Body */
.tta-course-card__body{
  padding: 14px 18px 18px 18px;
  color: var(--tta-text);
  font-size: 15px;
  line-height: 1.7;
}

.tta-course-card__body p{
  margin: 10px 0 0 0;
}

.tta-course-card__body p:first-child{
  margin-top: 0;
}

/* Callout box */
.tta-course-callout{
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(71, 85, 105, 0.08);
  border: 1px solid rgba(71, 85, 105, 0.18);
  border-radius: 10px;
  color: #1e293b;
}

.tta-course-callout strong{
  color: var(--tta-title);
}

/* Logos row */
.tta-course-logos{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

.tta-course-logos img{
  max-height: 46px;
  height: auto;
  width: auto;
  display: block;
}

/* Mobile adjustments */
@media (max-width: 767px){
  .tta-course-card{
    width: 100%;
  }
  .tta-course-card__title{
    font-size: 14px;
  }
}

/* =========================================
   Video button
   ========================================= */

.tta-video-btn{
  background: #334155;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.tta-video-btn:hover{
  opacity: 0.9;
}

/* =========================================
   Training Journey Buttons (Uiverse refactor)
   Used in: Training Journey Videos card
   ========================================= */

.tta-journey-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
}

/* Link wrapper */
a.tta-journey-btn{
  --clr: var(--tta-accent);

  text-decoration: none;
  line-height: 1;
  border-radius: 1.5rem;
  overflow: hidden;
  position: relative;

  box-shadow: 10px 10px 20px rgba(0,0,0,.05);
  background-color: #fff;
  color: #121212;

  border: 1px solid rgba(15, 23, 42, 0.10);
  cursor: pointer;

  display: inline-block;
  flex: 1 1 260px;
  min-width: 240px;
}

.tta-journey-btn__decor{
  position: absolute;
  inset: 0;
  background-color: var(--clr);
  transform: translateX(-100%);
  transition: transform .3s;
  z-index: 0;
}

.tta-journey-btn__content{
  display: flex;
  align-items: center;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.tta-journey-btn__icon{
  width: 52px;
  height: 44px;
  background-color: var(--clr);
  display: grid;
  place-items: center;
  flex: 0 0 52px;
}

.tta-journey-btn__text{
  display: inline-block;
  transition: color .2s;
  padding: 2px 1.25rem 2px;
  padding-left: .9rem;

  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;

  max-width: 320px;
  font-size: 15px;
}

/* Hover */
a.tta-journey-btn:hover .tta-journey-btn__text{
  color: #fff;
}

a.tta-journey-btn:hover .tta-journey-btn__decor{
  transform: translateX(0);
}

/* Focus */
a.tta-journey-btn:focus{
  outline: 3px solid rgba(231, 125, 53, 0.35);
  outline-offset: 3px;
}

@media (max-width: 768px){
  a.tta-journey-btn{
    flex: 1 1 100%;
    min-width: 0;
  }
  .tta-journey-btn__text{
    max-width: none;
  }
}

/* =========================================
   Static Pills (non-links)
   Matches Journey buttons, no hover
   Fixed: icon panel fills full pill height even when neighbour is taller
   ========================================= */

.tta-static-pill-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  margin-bottom: 4px;
  align-items: stretch; /* important: equal height row items */
}

.tta-static-pill{
  --clr: var(--tta-accent);

  border-radius: 1.5rem;
  overflow: hidden;
  position: relative;

  box-shadow: 10px 10px 20px rgba(0,0,0,.05);
  background-color: #fff;
  color: #121212;

  border: 1px solid rgba(15, 23, 42, 0.10);

  flex: 1 1 260px;
  min-width: 240px;

  cursor: default;

  /* key: allow inner row to stretch to full pill height */
  display: flex;
}

.tta-static-pill__content{
  /* key: fill the pill height */
  display: flex;
  flex: 1;
  align-items: stretch;
  width: 100%;

  font-weight: 700;
  position: relative;
  overflow: hidden;
}

.tta-static-pill__icon{
  flex: 0 0 52px;
  width: 52px;

  background-color: var(--clr);

  /* key: stretch orange panel to full height */
  align-self: stretch;

  /* center the icon */
  display: flex;
  align-items: center;
  justify-content: center;

  /* remove fixed height behaviour */
  height: auto;
  min-height: 44px;
}

.tta-static-pill__icon i{
  color: #ffffff;
  font-size: 16px;
}

.tta-static-pill__text{
  display: block;
  padding: 10px 16px 10px 14px;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 700;
  white-space: normal;
  min-width: 0;
}

@media (max-width: 768px){
  .tta-static-pill{
    flex: 1 1 100%;
    min-width: 0;
  }
}

/* =========================================
   Step Flow Pills
   Used in: When Can I Start Earning card
   ========================================= */

.tta-step-flow{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0 18px 0;
}

.tta-step-flow span{
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
}

.tta-step-flow span:not(:last-child)::after{
  content: "→";
  margin-left: 10px;
  color: var(--tta-accent);
  font-weight: 600;
}

@media (max-width: 768px){
  .tta-step-flow{
    flex-direction: column;
    align-items: flex-start;
  }

  .tta-step-flow span{
    white-space: normal;
  }

  .tta-step-flow span:not(:last-child)::after{
    content: "";
  }
}

/* =========================================
   Stack pills ONLY in Personalised Practical Training card
   ========================================= */

.tta-card-training .tta-static-pill-grid{
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

.tta-card-training .tta-static-pill{
  flex: 1 1 100% !important;
  width: 100% !important;
  min-width: 0 !important;
}

/* =========================================
   Online Course Cards Accent Override
   ========================================= */

.tta-course-cards--online{
  --tta-accent: #0da0f4;
}

/* =========================================
   Online Course BUY IT NOW BUTTONS
   ========================================= */
.course-tags {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

/* =========================================
   Therapist Business Course Cards
   Clean 2-column layout, lighter look, subtle accent
   ========================================= */

.tta-course-cards--business{
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 18px;
  margin-bottom: 30px;
}

.tta-course-cards--business .tta-course-card{
  width: 100% !important;
  margin: 0 !important;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.tta-course-cards--business .tta-course-card::before{
  content: "";
  display: block;
  height: 5px;
  background: var(--tta-accent);
}

.tta-course-cards--business .tta-course-card__header{
  display: none !important;
}

.tta-course-cards--business .tta-course-card__body{
  padding: 20px 22px;
}

.tta-course-cards--business h3,
.tta-course-cards--business .tta-business-card__title{
  margin: 0 0 10px 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--tta-title);
  text-transform: none;
  letter-spacing: 0;
}

.tta-course-cards--business .tta-course-card__body p{
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}

@media (max-width: 991px){
  .tta-course-cards--business{
    grid-template-columns: 1fr;
  }
}