/* ================================
   TESTIMONIAL SHORTCODE STYLES
   ================================ */

/* --------------------------------
   DEFAULT COLOUR PALETTE
   These are overridden when bgcolor 
   attribute is used on the shortcode
   -------------------------------- */
:root {
    --ts-primary: #1e3a8a;
    --ts-secondary: #3b82f6;
    --ts-light: #dbeafe;
    --ts-dark: #1e3a8a;
    --ts-text: #ffffff;
    --ts-text-on-secondary: #ffffff;
    --ts-shadow-rgb: 30, 58, 138;
    
    /* Neutral colours (not affected by bgcolor) */
    --ts-neutral-dark: #1f2937;
    --ts-neutral-gray: #6b7280;
    --ts-neutral-light: #f5f5f5;
    --ts-white: #ffffff;
}

/* Base shortcode wrapper */
.dncg-sc-testimonial {
    margin: 2rem 0;
}

/* Alignment variations */
.dncg-sc-testimonial-align--left {
    text-align: left;
}

.dncg-sc-testimonial-align--center {
    text-align: center;
}

.dncg-sc-testimonial-align--right {
    text-align: right;
}


/* ================================
   SPEECH IMAGE LAYOUT
   ================================ */

.dncg-sc-testimonial-speechimage {
    max-width: 100%;
}

.dncg-sc-testimonial-speechimage__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Quote bubble - base styles */
.dncg-sc-testimonial-speechimage__quote {
    background: linear-gradient(135deg, var(--ts-primary) 0%, var(--ts-secondary) 100%);
    padding: 2rem;
    margin: 0 1rem 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
    border-radius: 12px;
    color: var(--ts-text) !important;
    position: relative;
    box-shadow: 0 4px 15px rgba(var(--ts-shadow-rgb), 0.2);
    transition: all 0.3s ease;
}


/* --------------------------------
   VERTICAL ORIENTATION
   -------------------------------- */

.dncg-sc-testimonial-speechimage--vertical {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.dncg-sc-testimonial-speechimage--vertical .dncg-sc-testimonial-speechimage__quote {
    width: 100%;
    box-sizing: border-box;
}

/* Speech bubble pointer - pointing down */
.dncg-sc-testimonial-speechimage--vertical .dncg-sc-testimonial-speechimage__quote::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid var(--ts-secondary);
}

.dncg-sc-testimonial-speechimage--vertical .dncg-sc-testimonial-speechimage__person {
    text-align: center;
    margin-top:-1rem;
}


/* --------------------------------
   HORIZONTAL ORIENTATIONS
   -------------------------------- */

.dncg-sc-testimonial-speechimage--horizontal-left,
.dncg-sc-testimonial-speechimage--horizontal-right {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.dncg-sc-testimonial-speechimage__inner--horizontal {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
}

/* Person block in horizontal - fixed width */
.dncg-sc-testimonial-speechimage--horizontal-left .dncg-sc-testimonial-speechimage__person,
.dncg-sc-testimonial-speechimage--horizontal-right .dncg-sc-testimonial-speechimage__person {
    flex: 0 0 auto;
    width: 150px;
    text-align: center;
}

/* Quote takes remaining space */
.dncg-sc-testimonial-speechimage__inner--horizontal .dncg-sc-testimonial-speechimage__quote {
    flex: 1;
    margin: 0;
}

/* Horizontal Left: pointer pointing left (toward person) */
.dncg-sc-testimonial-speechimage__quote--right::after {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 15px solid var(--ts-secondary);
}

/* Horizontal Right: pointer pointing right (toward person) */
.dncg-sc-testimonial-speechimage__quote--left::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 15px solid var(--ts-secondary);
}


/* --------------------------------
   PERSON BLOCK (shared)
   -------------------------------- */

.dncg-sc-testimonial__image {
    max-width: 200px;
    margin: 0 auto;
}

.dncg-sc-testimonial__image img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    object-position: center bottom;
    transition: all 0.3s ease;
}

.dncg-sc-testimonial__image img:hover {
    transform: scale(1.02);
}

/* Avatar fallback */
.dncg-sc-testimonial__avatar-fallback {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ts-light), var(--ts-primary));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--ts-white);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Attribution */
.dncg-sc-testimonial__attribution {
    margin-top: -2.5rem;
    text-align: center;
    display: inline-block;
    transform: rotate(-3deg);
}

.dncg-sc-testimonial__name {
    font-family: 'Nove', 'Arial Black', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    text-align:center;
    text-transform: uppercase;
    color: var(--ts-text-on-secondary);
    line-height: 1.1;
    display: inline-block;
    background: var(--ts-secondary);
    padding: 0.2em 0.4em;
    margin-bottom: 0;
}

.dncg-sc-testimonial__course {
    font-size: 0.95rem;
    color: var(--ts-neutral-dark);
    font-weight: 600;
    line-height: 1.3;
    display: inline-block;
    background: var(--ts-secondary);
    padding: 0.15em 0.4em;
}


/* --------------------------------
   RESPONSIVE - HORIZONTAL
   -------------------------------- */

@media (max-width: 600px) {
    /* Stack horizontal layouts on mobile */
    .dncg-sc-testimonial-speechimage__inner--horizontal {
        flex-direction: column;
    }
    
    .dncg-sc-testimonial-speechimage--horizontal-left .dncg-sc-testimonial-speechimage__person,
    .dncg-sc-testimonial-speechimage--horizontal-right .dncg-sc-testimonial-speechimage__person {
        width: auto;
    }
    
    /* Reorder: quote first, then person (for both horizontal variants) */
    .dncg-sc-testimonial-speechimage--horizontal-left .dncg-sc-testimonial-speechimage__inner--horizontal {
        flex-direction: column-reverse;
    }
    
    /* Hide horizontal pointers on mobile */
    .dncg-sc-testimonial-speechimage__quote--right::after,
    .dncg-sc-testimonial-speechimage__quote--left::after {
        display: none;
    }
    
    /* Add vertical pointer instead */
    .dncg-sc-testimonial-speechimage--horizontal-left .dncg-sc-testimonial-speechimage__quote,
    .dncg-sc-testimonial-speechimage--horizontal-right .dncg-sc-testimonial-speechimage__quote {
        margin-bottom: 2rem;
    }
    
    .dncg-sc-testimonial-speechimage--horizontal-left .dncg-sc-testimonial-speechimage__quote::before,
    .dncg-sc-testimonial-speechimage--horizontal-right .dncg-sc-testimonial-speechimage__quote::before {
        content: '';
        position: absolute;
        bottom: -15px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 15px solid transparent;
        border-right: 15px solid transparent;
        border-top: 15px solid var(--ts-secondary);
    }
}

@media (max-width: 767px) {
    .dncg-sc-testimonial-speechimage__quote {
        font-size: 1rem;
        padding: 1.5rem;
    }
    
    .dncg-sc-testimonial__image {
        max-width: 150px;
    }
    
    .dncg-sc-testimonial__image img {
        max-height: 180px;
    }
    
    .dncg-sc-testimonial__avatar-fallback {
        width: 100px;
        height: 100px;
        font-size: 2rem;
    }
    
    .dncg-sc-testimonial__attribution {
        margin-top: -1rem;
    }
    
    .dncg-sc-testimonial__name {
        font-size: 1.5rem;
    }
    
    .dncg-sc-testimonial__course {
        font-size: 0.85rem;
    }
}


/* ================================
   CARD LAYOUT (Polaroid/Story style)
   ================================ */

.dncg-sc-testimonial-card {
    max-width: 350px;
}

.dncg-sc-testimonial-card__inner {
    background: var(--ts-white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dncg-sc-testimonial-card__inner:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.dncg-sc-testimonial-card__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.dncg-sc-testimonial-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.dncg-sc-testimonial-card__content {
    padding: 1.5rem;
}

.dncg-sc-testimonial-card__attribution {
    margin-bottom: 1rem;
    display: inline-block;
    transform: rotate(-2deg);
}

.dncg-sc-testimonial-card__name {
    font-family: 'Nove', 'Arial Black', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    text-transform: uppercase;
    color: var(--ts-text-on-secondary);
    line-height: 1.1;
    display: inline-block;
    background: var(--ts-secondary);
    padding: 0.15em 0.3em;
}

.dncg-sc-testimonial-card__course {
    font-size: 0.85rem;
    color: var(--ts-text-on-secondary);
    font-weight: 600;
    line-height: 1.3;
    display: inline-block;
    background: var(--ts-secondary);
    padding: 0.1em 0.3em;
}

.dncg-sc-testimonial-card__quote {
    font-family: 'Source Serif Pro', Georgia, serif;
    font-size: 1rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--ts-neutral-dark);
    margin: 0;
    padding: 0;
}

/* No image variant */
.dncg-sc-testimonial-card.dncg-sc-testimonial--no-image .dncg-sc-testimonial-card__content {
    padding-top: 2rem;
}


/* ================================
   HIGHLIGHT LAYOUT (Featured/Hero)
   ================================ */

.dncg-sc-testimonial-highlight {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.dncg-sc-testimonial-highlight__inner {
    background: linear-gradient(135deg, var(--ts-primary) 0%, var(--ts-secondary) 100%);
    border-radius: 16px;
    padding: 3rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    box-shadow: 0 8px 30px rgba(var(--ts-shadow-rgb), 0.3);
}

.dncg-sc-testimonial-highlight__quote-area {
    flex: 1;
    position: relative;
}

.dncg-sc-testimonial-highlight__mark {
    font-family: 'Nove', Georgia, serif;
    font-size: 6rem;
    color: var(--ts-white);
    opacity: 0.3;
    line-height: 0.8;
    position: absolute;
    top: -1rem;
    left: -0.5rem;
}

.dncg-sc-testimonial-highlight__quote {
    font-family: 'Source Serif Pro', Georgia, serif;
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--ts-text) !important;
    margin: 0;
    padding: 0;
    padding-left: 2.5rem;
}

.dncg-sc-testimonial-highlight__person {
    flex: 0 0 auto;
    text-align: center;
    max-width: 200px;
}

.dncg-sc-testimonial-highlight__image {
    margin-bottom: 1rem;
}

.dncg-sc-testimonial-highlight__image img {
    width: 150px;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    object-position: center bottom;
}

.dncg-sc-testimonial-highlight__attribution {
    display: inline-block;
    transform: rotate(-3deg);
}

.dncg-sc-testimonial-highlight__name {
    font-family: 'Nove', 'Arial Black', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    text-transform: uppercase;
    color: var(--ts-neutral-dark);
    line-height: 1.1;
    display: inline-block;
    background: var(--ts-white);
    padding: 0.15em 0.3em;
}

.dncg-sc-testimonial-highlight__course {
    font-size: 0.85rem;
    color: var(--ts-neutral-dark);
    font-weight: 600;
    line-height: 1.3;
    display: inline-block;
    background: var(--ts-white);
    padding: 0.1em 0.3em;
}

/* No image variant */
.dncg-sc-testimonial-highlight.dncg-sc-testimonial--no-image .dncg-sc-testimonial-highlight__inner {
    flex-direction: column;
    text-align: center;
}

.dncg-sc-testimonial-highlight.dncg-sc-testimonial--no-image .dncg-sc-testimonial-highlight__quote {
    padding-left: 0;
}

.dncg-sc-testimonial-highlight.dncg-sc-testimonial--no-image .dncg-sc-testimonial-highlight__mark {
    position: relative;
    top: 0;
    left: 0;
    display: block;
    margin-bottom: -2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .dncg-sc-testimonial-highlight__inner {
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
    }
    
    .dncg-sc-testimonial-highlight__quote-area {
        order: 1;
    }
    
    .dncg-sc-testimonial-highlight__person {
        order: 2;
    }
    
    .dncg-sc-testimonial-highlight__quote {
        font-size: 1.25rem;
        padding-left: 2rem;
    }
    
    .dncg-sc-testimonial-highlight__mark {
        font-size: 4rem;
    }
    
    .dncg-sc-testimonial-highlight__image img {
        width: 120px;
    }
}


/* ================================
   INLINE LAYOUT (Compact)
   ================================ */

.dncg-sc-testimonial-inline {
    max-width: 700px;
}

.dncg-sc-testimonial-inline__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Circular image */
.dncg-sc-testimonial-inline__image {
    flex: 0 0 auto;
}

.dncg-sc-testimonial-inline__image img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
}

/* Avatar fallback */
.dncg-sc-testimonial-inline__avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ts-light), var(--ts-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--ts-white);
    font-weight: 700;
    flex: 0 0 auto;
}

/* Content area */
.dncg-sc-testimonial-inline__content {
    flex: 1;
}

.dncg-sc-testimonial-inline__quote {
    font-size: 1rem;
    font-style: italic;
    color: var(--ts-neutral-dark);
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

.dncg-sc-testimonial-inline__quote::before {
    content: '"';
    color: var(--ts-primary);
    font-weight: 700;
}

.dncg-sc-testimonial-inline__quote::after {
    content: '"';
    color: var(--ts-primary);
    font-weight: 700;
}

.dncg-sc-testimonial-inline__attribution {
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: var(--ts-neutral-gray);
}

.dncg-sc-testimonial-inline__name {
    font-weight: 700;
    color: var(--ts-neutral-dark);
}

.dncg-sc-testimonial-inline__separator {
    margin-right: 0.25rem;
}

.dncg-sc-testimonial-inline__course {
    font-weight: 400;
}

/* Size variations */
.dncg-sc-testimonial-inline--small .dncg-sc-testimonial-inline__image img,
.dncg-sc-testimonial-inline--small .dncg-sc-testimonial-inline__avatar {
    width: 40px;
    height: 40px;
    font-size: 1rem;
}

.dncg-sc-testimonial-inline--small .dncg-sc-testimonial-inline__quote {
    font-size: 0.9rem;
}

.dncg-sc-testimonial-inline--small .dncg-sc-testimonial-inline__attribution {
    font-size: 0.75rem;
}

.dncg-sc-testimonial-inline--large .dncg-sc-testimonial-inline__image img,
.dncg-sc-testimonial-inline--large .dncg-sc-testimonial-inline__avatar {
    width: 80px;
    height: 80px;
    font-size: 2rem;
}

.dncg-sc-testimonial-inline--large .dncg-sc-testimonial-inline__quote {
    font-size: 1.15rem;
}

.dncg-sc-testimonial-inline--large .dncg-sc-testimonial-inline__attribution {
    font-size: 0.95rem;
}

/* Mobile: stack vertically */
@media (max-width: 480px) {
    .dncg-sc-testimonial-inline__inner {
        flex-direction: column;
        text-align: center;
    }
}


/* ================================
   QUOTE ONLY LAYOUT
   ================================ */

.dncg-sc-testimonial-quote-only {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    padding: 2rem 0;
}

.dncg-sc-testimonial-quote-only__text {
    font-family: 'Source Serif Pro', Georgia, serif;
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--ts-neutral-dark);
    margin: 0;
    padding: 0;
    position: relative;
}

.dncg-sc-testimonial-quote-only__mark {
    font-family: 'Nove', Georgia, serif;
    font-size: 3rem;
    color: var(--ts-primary);
    opacity: 0.3;
    line-height: 1;
}

.dncg-sc-testimonial-quote-only__mark--open {
    margin-right: 0.25rem;
}

.dncg-sc-testimonial-quote-only__mark--close {
    margin-left: 0.25rem;
}

.dncg-sc-testimonial-quote-only__attribution {
    margin-top: 1.5rem;
    font-size: 1rem;
    color: var(--ts-neutral-gray);
}

.dncg-sc-testimonial-quote-only__attribution .dncg-sc-testimonial__name {
    display: inline;
    font-size: inherit;
    color: var(--ts-neutral-dark);
}

.dncg-sc-testimonial-quote-only__attribution .dncg-sc-testimonial__course {
    display: inline;
    font-size: inherit;
    font-weight: 400;
}

.dncg-sc-testimonial-quote-only__separator {
    margin: 0 0.5rem;
}

/* Size variations */
.dncg-sc-testimonial-quote-only--small .dncg-sc-testimonial-quote-only__text {
    font-size: 1.1rem;
}

.dncg-sc-testimonial-quote-only--small .dncg-sc-testimonial-quote-only__mark {
    font-size: 2rem;
}

.dncg-sc-testimonial-quote-only--large .dncg-sc-testimonial-quote-only__text {
    font-size: 2rem;
}

.dncg-sc-testimonial-quote-only--large .dncg-sc-testimonial-quote-only__mark {
    font-size: 4rem;
}

@media (max-width: 767px) {
    .dncg-sc-testimonial-quote-only__text {
        font-size: 1.25rem;
    }
    
    .dncg-sc-testimonial-quote-only__mark {
        font-size: 2.5rem;
    }
    
    .dncg-sc-testimonial-quote-only--large .dncg-sc-testimonial-quote-only__text {
        font-size: 1.5rem;
    }
}

.dncg-sc-testimonial blockquote {
    border-left:none;
}.multiple-course-lists-columns, .multiple-course-lists-columns-rows {
  display:flex;
  flex-direction: column;
  gap:2.5rem;
}

@media screen and (min-width:64em) {

  .multiple-course-lists-columns {
    flex-direction: row;
    gap:0;
  }

}

*, body {
    font-display:swap;
}