/* =====================================================================
   Site polish — on top of the real theme CSS, not replacing it.
   ===================================================================== */

/* ---- Header ----
   Two modes, because the theme paints all nav text white (style.css ~8821):

   HOME  — .topbar-transparent: absolutely positioned and see-through, so it
           floats over the hero slider. White text over a dark image: fine.

   OTHER — .pt-header-solid: no hero exists behind it, and white-on-white made
           the entire menu invisible. So the header takes up real space and
           carries a solid dark background, which the white text needs. */
.site-header.pt-header-solid {
    position: relative;
    background: #0b0e17;
}
.site-header.pt-header-solid .top-bar {
    background: #0b0e17;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header.pt-header-solid .main-bar {
    position: relative;
    background: #0b0e17;
}
/* The logo needs no backing plate once the header itself is solid. */
.site-header.pt-header-solid .pt-logo img {
    background: none;
    padding: 0;
}

/* Solid header already occupies space, so no clearance padding is needed. */
.page-content--inner { padding-top: 0; }

/* ---- Home hero slider ---- */
.hero-slider {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background: #04101f;
}
.hero-slider__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    opacity: 0;
    transition: opacity 1s ease;
}
.hero-slider__slide.is-active { opacity: 1; }
.hero-slider__overlay {
    position: absolute;
    inset: 0;
    /* Deeper fade than before: the slide images are busy, and the heading
       has to sit on top of them without a text shadow doing all the work. */
    background: linear-gradient(
        180deg,
        rgba(4, 16, 31, 0.72) 0%,
        rgba(4, 16, 31, 0.62) 45%,
        rgba(4, 16, 31, 0.74) 100%
    );
}
.hero-slider__inner {
    position: relative;
    z-index: 3;
    min-height: 560px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 150px 20px 70px;
}
.hero-slider__title {
    color: #ffffff;
    font-size: 46px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0 0 18px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}
.hero-slider__sub {
    color: #ffffff;
    font-size: 21px;
    font-weight: 300;
    margin: 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
/* The blinking cursor after the typed word, as on the live site. */
.hero-typed__cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: #FF9800;
    vertical-align: text-bottom;
    margin-left: 3px;
    animation: pt-caret 1s step-end infinite;
}
@keyframes pt-caret { 50% { opacity: 0; } }

.hero-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    background: transparent;
    border: 0;
    color: #ffffff;
    font-size: 46px;
    line-height: 1;
    padding: 10px 18px;
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.2s ease;
}
.hero-slider__arrow:hover { opacity: 1; }
.hero-slider__arrow--prev { left: 10px; }
.hero-slider__arrow--next { right: 10px; }

@media (max-width: 991px) {
    .hero-slider, .hero-slider__inner { min-height: 420px; }
    .hero-slider__title { font-size: 30px; }
    .hero-slider__sub { font-size: 16px; }
    .hero-slider__inner { padding: 110px 20px 60px; }
}
@media (max-width: 430px) {
    .hero-slider, .hero-slider__inner { min-height: 340px; }
    .hero-slider__title { font-size: 23px; }
    .hero-slider__sub { font-size: 14px; }
    .hero-slider__inner { padding: 40px 16px 40px; }
    .hero-slider__arrow { font-size: 30px; padding: 6px 10px; }
}

/* ---- Scroll-reveal ----
   Pairs with the IntersectionObserver in site.js. Elements start hidden
   and offset, then animate in once they cross into view. prefers-reduced-
   motion is respected — some visitors get real motion sickness from this
   kind of animation, so they get the plain, already-visible version. */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-revealed {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* Stagger children of a reveal group without hand-numbering every element */
[data-reveal-group] [data-reveal]:nth-child(1) { transition-delay: 0.05s; }
[data-reveal-group] [data-reveal]:nth-child(2) { transition-delay: 0.15s; }
[data-reveal-group] [data-reveal]:nth-child(3) { transition-delay: 0.25s; }
[data-reveal-group] [data-reveal]:nth-child(4) { transition-delay: 0.35s; }

/* ---- Card + button hover polish ---- */
.wt-box,
.wt-icon-box-wraper {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.wt-box:hover,
.wt-icon-box-wraper:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}
.site-button,
.site-button-secondry {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.site-button:hover,
.site-button-secondry:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(255, 152, 0, 0.28);
}

/* ---- Working marquee ----
   tickerNews.min.js is a rotating-slide plugin, not a continuous scroll —
   getting its exact config right is fragile. A CSS keyframe marquee is
   simpler and always animates the same way regardless of JS load timing.
   site.js duplicates the ticker content once so the loop has no visible
   seam; this rule just does the actual scrolling. */
.TickerNews .ti_wrapper { overflow: hidden; }
.TickerNews .ti_slide {
    display: flex;
    width: max-content;
    animation: pt-marquee 38s linear infinite;
}
.TickerNews:hover .ti_slide { animation-play-state: paused; }
@keyframes pt-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .TickerNews .ti_slide { animation: none; }
}

/* ---- Animated stat counters ----
   The number itself fades/scales in on reveal; the counting-up motion is
   handled in JS. This is the "static until scrolled to" part. */
.stat-num { display: inline-block; }

/* ---- Blog cards (photo + title + meta + excerpt) ---- */
.blog-card { height: 100%; }
.blog-card__img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 2px;
}

/* =====================================================================
   Client brief revisions
   ===================================================================== */

/* ---- Header: smaller logo, readable over the hero (brief §1) ----
   The logo was oversized and disappeared into the first slide. Smaller,
   with a soft dark plate behind it so it holds up against a busy image
   without changing the brand mark itself. */
.pt-logo img {
    width: auto;
    max-height: 52px;
    padding: 6px 10px;
    background: rgba(8, 12, 20, 0.55);
    border-radius: 4px;
}
@media (max-width: 767px) {
    .pt-logo img { max-height: 40px; }
}

/* CTA in the nav */
.header-nav .nav > li.pt-nav-cta > a {
    background: #FF9800;
    color: #ffffff !important;
    border-radius: 3px;
    margin: 22px 0 0 10px;
    padding: 8px 18px !important;
    transition: background 0.2s ease, transform 0.2s ease;
}
.header-nav .nav > li.pt-nav-cta > a:hover {
    background: #e88a00;
    transform: translateY(-1px);
}
@media (max-width: 991px) {
    .header-nav .nav > li.pt-nav-cta > a {
        margin: 0;
        border-radius: 0;
        color: #ffffff !important;
    }
}

/* Sticky black bar on scroll (brief §1). The theme adds .is-fixed; this
   keeps it compact and animates it in rather than snapping. */
.site-header.header-style-3 .is-fixed .main-bar {
    background: #000000;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
    animation: pt-slide-down 0.28s ease;
}
.site-header.header-style-3 .is-fixed .pt-logo img {
    max-height: 42px;
    background: none;
    padding: 0;
}
@keyframes pt-slide-down {
    from { transform: translateY(-100%); }
    to   { transform: translateY(0); }
}

/* ---- Compact sections (brief §10) ----
   The theme's default 80px top/bottom on every block made the page feel
   oversized. Trimmed globally rather than per-section. */
.section-full.p-tb80 { padding-top: 55px; padding-bottom: 55px; }
.section-full.p-tb100 { padding-top: 60px; padding-bottom: 60px; }
@media (max-width: 767px) {
    .section-full.p-tb80,
    .section-full.p-tb100 { padding-top: 36px; padding-bottom: 36px; }
}

/* ---- Statistics (brief §4) ---- */
.pt-stat {
    padding: 18px 8px;
    border-radius: 6px;
    transition: transform 0.25s ease, background 0.25s ease;
}
.pt-stat:hover {
    transform: translateY(-4px);
    background: rgba(255, 152, 0, 0.08);
}
.pt-stat i {
    font-size: 22px;
    color: #ffffff;
    opacity: 0.75;
    margin-bottom: 8px;
    display: block;
}
.pt-stat h2 { font-size: 34px; font-weight: 800; }
.pt-stat p { margin: 4px 0 0; font-size: 13px; letter-spacing: 0.5px; }

/* ---- Rocket (brief §3) ----
   Larger, tilted, and bobbing on the spot rather than flying across the
   panel. The earlier version translated a long way horizontally, which read
   as erratic; holding position and moving up/down keeps the market-movement
   idea while staying visually settled. */
.pt-rocket-wrap {
    position: relative;
    max-width: 300px;
    height: 260px;
    margin: 0 auto;
    display: grid;
    place-items: center;
}
.pt-rocket-path {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
}
.pt-rocket {
    position: relative;
    width: 150px;
    max-width: 60%;
    transform-origin: 50% 50%;
    animation: pt-rocket-bob 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
}
/* Up, small pullback, further up, settle — all on the spot. */
@keyframes pt-rocket-bob {
    0%   { transform: translateY(10px)  rotate(-18deg); }
    25%  { transform: translateY(-14px) rotate(-16deg); }
    45%  { transform: translateY(-4px)  rotate(-20deg); }
    70%  { transform: translateY(-22px) rotate(-15deg); }
    100% { transform: translateY(10px)  rotate(-18deg); }
}
@media (prefers-reduced-motion: reduce) {
    .pt-rocket { animation: none; transform: rotate(-18deg); }
}
@media (max-width: 767px) {
    .pt-rocket-wrap { height: 200px; max-width: 240px; }
    .pt-rocket { width: 120px; }
}

/* ---- Interactive course cards (brief §6) ---- */
.course-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.course-card:hover,
.course-card:focus-within,
.course-card.is-open {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(23, 31, 44, 0.18);
    border-color: #FF9800;
}
.course-card__badge {
    position: absolute;
    top: 12px;
    right: -34px;
    background: #FF9800;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 40px;
    transform: rotate(45deg);
    z-index: 2;
}
.course-card__head {
    background: #171f2c;
    color: #ffffff;
    text-align: center;
    padding: 22px 16px 18px;
    position: relative;
    overflow: hidden;
}
/* Subtle sheen that sweeps across the header on hover. */
.course-card__head::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    transition: left 0.6s ease;
}
.course-card:hover .course-card__head::after { left: 120%; }

.course-card__tier {
    display: block;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.75;
    margin-bottom: 6px;
}
.course-card__price {
    font-size: 30px;
    font-weight: 800;
    color: #FF9800;
    transition: transform 0.3s ease;
}
.course-card:hover .course-card__price { transform: scale(1.06); }

.course-card__body {
    padding: 20px 22px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.course-card__title {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 12px;
    color: #171f2c;
}

/* The detail list is collapsed until hover (or tap on touch devices), which
   is what keeps the three cards compact side by side. */
.course-card__reveal {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.45s ease, opacity 0.35s ease;
}
.course-card:hover .course-card__reveal,
.course-card:focus-within .course-card__reveal,
.course-card.is-open .course-card__reveal {
    max-height: 420px;
    opacity: 1;
}
.course-card__list { list-style: none; padding: 0; margin: 0 0 6px; }
.course-card__list li {
    font-size: 13px;
    padding: 7px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #555555;
}
.course-card__list li:last-child { border-bottom: 0; }
.course-card__list i { color: #FF9800; margin-right: 7px; }

.course-card__cta {
    display: inline-block;
    margin-top: auto;
    padding-top: 14px;
    color: #171f2c;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.25s ease;
}
.course-card__cta i { transition: transform 0.25s ease; margin-left: 4px; }
.course-card:hover .course-card__cta { color: #FF9800; }
.course-card:hover .course-card__cta i { transform: translateX(5px); }

/* Featured (middle) tier reads as the recommended one. */
.course-card--featured { border-color: #FF9800; }
@media (min-width: 992px) {
    .course-card--featured { transform: scale(1.04); }
    .course-card--featured:hover { transform: scale(1.04) translateY(-8px); }
}

/* On touch, the reveal is always open — there is no hover to trigger it,
   and a hidden list the user can never see would be worse than a taller card. */
@media (hover: none) {
    .course-card__reveal { max-height: 420px; opacity: 1; }
}

/* ---- Footer risk disclosure (brief §11) ---- */
.pt-risk {
    color: #9aa4b5;
    font-size: 12px;
    line-height: 1.75;
    margin: 0;
    text-align: justify;
}
.pt-risk strong { color: #FF9800; }

/* ---- About: mission / vision cards ---- */
.pt-mv {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pt-mv:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 34px rgba(23, 31, 44, 0.14);
}
.pt-mv__img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.pt-mv:hover .pt-mv__img { transform: scale(1.05); }
.pt-mv__body { padding: 22px 24px 26px; }
.pt-mv__body h3 { font-size: 19px; }

/* Small utility the about page uses for tighter paragraph spacing. */
.m-b8 { margin-bottom: 8px; }

/* ---- Course page ---- */
.course-hero__tier {
    display: inline-block;
    color: #FF9800;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: rgba(255, 152, 0, 0.12);
    border: 1px solid rgba(255, 152, 0, 0.4);
    padding: 5px 16px;
    border-radius: 20px;
}
.course-hero__price {
    color: #ffffff;
    font-size: 32px;
    font-weight: 800;
}
.pt-learn {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
}
.pt-learn i { margin-top: 3px; }
.pt-modules { padding-left: 18px; }
.pt-modules li { padding: 9px 0; border-bottom: 1px solid #eee; font-size: 14px; }
.pt-modules li:last-child { border-bottom: 0; }

.pt-course-side {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
}
.pt-course-side__price {
    background: #171f2c;
    color: #ffffff;
    text-align: center;
    padding: 20px 16px;
}
.pt-course-side__price span {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.7;
}
.pt-course-side__price h2 { color: #FF9800; margin: 6px 0 0; font-weight: 800; }
.pt-course-feat { list-style: none; padding: 0; margin: 0; }
.pt-course-feat li { padding: 9px 0; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.pt-course-feat li:last-child { border-bottom: 0; }
.pt-course-feat i { margin-right: 8px; }
.m-b12 { margin-bottom: 12px; }

/* =====================================================================
   Floating dock + instant assistant
   ===================================================================== */

.pt-dock {
    position: fixed;
    right: 20px;
    bottom: 22px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pt-dock__btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 0;
}
.pt-dock__btn:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34); }
.pt-dock__btn--wa { background: #25D366; overflow: hidden; }
.pt-dock__btn--wa img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pt-dock__btn--chat { background: #FF9800; color: #ffffff; font-size: 22px; }

/* Gentle nudge so the assistant is noticed without nagging — three pulses,
   then it settles down and stays quiet. */
.pt-dock__btn--chat::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #FF9800;
    animation: pt-pulse 2.2s ease-out 3;
}
.pt-dock__btn--chat { position: relative; }
@keyframes pt-pulse {
    0%   { transform: scale(1);   opacity: 0.7; }
    100% { transform: scale(1.7); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .pt-dock__btn--chat::after { animation: none; }
}

/* ---- Chat panel ---- */
.pt-chat {
    position: fixed;
    right: 20px;
    bottom: 92px;
    z-index: 1201;
    width: 360px;
    max-width: calc(100vw - 32px);
    /* Bounded so the panel can never grow taller than the screen — that is
       what pushed the header off the top and left it looking headless. */
    max-height: min(620px, calc(100vh - 130px));
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(11, 14, 23, 0.30);
    overflow: hidden;
    display: none;
    flex-direction: column;
    /* Match the site's own typography rather than inheriting from a parent. */
    font-family: 'Open Sans', 'Roboto', -apple-system, 'Segoe UI', Arial, sans-serif;
    font-size: 14px;
}
.pt-chat[data-open="true"] {
    display: flex;
    animation: pt-chat-in 0.25s ease;
}
@keyframes pt-chat-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.pt-chat__head {
    background: #171f2c;
    color: #ffffff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex: 0 0 auto;
}
.pt-chat__head strong { display: block; font-size: 14px; }
.pt-chat__head span { display: block; font-size: 11px; opacity: 0.7; }
.pt-chat__close {
    background: none;
    border: 0;
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
}
.pt-chat__close:hover { opacity: 1; }

.pt-chat__log {
    padding: 14px;
    flex: 1 1 auto;
    min-height: 160px;
    overflow-y: auto;
    background: #f7f8fa;
    overscroll-behavior: contain;
}
.pt-msg {
    max-width: 85%;
    padding: 9px 13px;
    border-radius: 12px;
    margin-bottom: 9px;
    font-size: 13.5px;
    line-height: 1.55;
    white-space: pre-wrap;
}
.pt-msg--bot  { background: #ffffff; border: 1px solid #e7e9ee; color: #2d3748; }
.pt-msg--user { background: #FF9800; color: #ffffff; margin-left: auto; }

/* Live course/seminar cards inside a reply */
.pt-msg-card {
    display: block;
    background: #ffffff;
    border: 1px solid #e7e9ee;
    border-left: 3px solid #FF9800;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 8px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pt-msg-card:hover { transform: translateX(3px); box-shadow: 0 6px 16px rgba(0,0,0,0.08); }
.pt-msg-card b { display: block; font-size: 13px; color: #171f2c; }
.pt-msg-card small { display: block; font-size: 11.5px; color: #718096; margin-top: 2px; }
.pt-msg-card span { font-size: 11.5px; color: #FF9800; font-weight: 700; }

.pt-chat__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 14px 10px;
    background: #f7f8fa;
    flex: 0 0 auto;
    max-height: 116px;
    overflow-y: auto;
}
.pt-chip {
    background: #ffffff;
    border: 1px solid #dfe3ea;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    color: #2d3748;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.pt-chip:hover { background: #FF9800; border-color: #FF9800; color: #ffffff; }

.pt-chat__form {
    display: flex;
    border-top: 1px solid #e7e9ee;
    background: #ffffff;
    flex: 0 0 auto;
}
.pt-chat__form input {
    flex: 1;
    border: 0;
    padding: 13px 14px;
    font-size: 13.5px;
    outline: none;
}
.pt-chat__form button {
    border: 0;
    background: #FF9800;
    color: #ffffff;
    padding: 0 18px;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.2s ease;
}
.pt-chat__form button:hover { background: #e88a00; }

.pt-chat__foot {
    margin: 0;
    padding: 8px 14px;
    background: #171f2c;
    color: #8c97a8;
    font-size: 10.5px;
    text-align: center;
    flex: 0 0 auto;
}

/* Typing indicator */
.pt-typing span {
    display: inline-block;
    width: 6px; height: 6px;
    margin-right: 3px;
    background: #b6bdc9;
    border-radius: 50%;
    animation: pt-typing 1.2s infinite ease-in-out;
}
.pt-typing span:nth-child(2) { animation-delay: 0.15s; }
.pt-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes pt-typing {
    0%, 60%, 100% { transform: translateY(0);   opacity: 0.5; }
    30%           { transform: translateY(-4px); opacity: 1; }
}

/* ---- Chat on phones ----
   A bottom sheet rather than a full-screen takeover. The page stays visible
   above it, so the assistant reads as part of the site instead of a separate
   app, while the log still gets real room and comfortable tap targets. */
@media (max-width: 600px) {
    .pt-chat {
        right: 10px;
        left: 10px;
        bottom: 84px;
        top: auto;
        width: auto;
        max-width: none;
        height: 68vh;
        max-height: calc(100vh - 150px);
        border-radius: 14px;
    }

    .pt-chat__head { padding: 14px 16px; }
    .pt-chat__head strong { font-size: 14.5px; }
    .pt-chat__head span { font-size: 11px; }
    .pt-chat__close { font-size: 28px; padding: 0 4px; }

    .pt-chat__log { padding: 14px; }
    .pt-msg { max-width: 88%; font-size: 14px; padding: 10px 13px; }

    .pt-chat__chips { padding: 0 12px 10px; max-height: 96px; }
    .pt-chip { padding: 8px 13px; font-size: 12.5px; }

    /* 16px keeps iOS from zooming the page when the field takes focus. */
    .pt-chat__form input { padding: 14px; font-size: 16px; }
    .pt-chat__form button { padding: 0 20px; font-size: 16px; }

    .pt-dock { right: 14px; bottom: 14px; gap: 10px; }
    .pt-dock__btn { width: 50px; height: 50px; }

    /* Keep the chat button reachable to close the sheet, but drop the
       WhatsApp one so the two do not stack behind the panel. */
    body.pt-chat-open .pt-dock__btn--wa { display: none; }
}

/* Landscape phones are short — give the sheet most of the height. */
@media (max-width: 900px) and (max-height: 480px) {
    .pt-chat { height: calc(100vh - 96px); bottom: 74px; }
}

/* =====================================================================
   Responsive corrections
   The theme is Bootstrap 3 (no flex grid, fixed widths in places), so a
   few things need help on small screens. Grouped here rather than
   scattered so they are easy to find later.
   ===================================================================== */

/* Nothing should ever force a horizontal scrollbar. A single wide element
   makes the whole page slide sideways, which is the most common "it looks
   broken on my phone" report. */
html, body { overflow-x: hidden; max-width: 100%; }
img, svg, video { max-width: 100%; height: auto; }

/* Bootstrap 3 rows use floats; several sections here rely on
   align-items:center, which only applies once the row is flex. Restoring
   float behaviour below the desktop breakpoint stops columns overlapping. */
@media (max-width: 991px) {
    .row[style*="align-items"] { display: block !important; }
}

/* Tables inside content (order history, account pages) must scroll rather
   than stretch the page. */
@media (max-width: 767px) {
    .page-content table { display: block; overflow-x: auto; white-space: nowrap; }
}

@media (max-width: 767px) {
    /* Section headings were sized for desktop and wrapped awkwardly. */
    .section-head h2,
    .page-content h2 { font-size: 24px; line-height: 1.3; }
    .page-content h3 { font-size: 19px; }
    .page-content h4 { font-size: 16px; }

    /* Buttons sat side by side and overflowed; stack them full width. */
    .site-button,
    .site-button-secondry {
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
    /* …except where they are deliberately inline in a tight row. */
    .toolbar .site-button,
    .pricing-card__foot .site-button { width: auto; display: inline-block; }

    /* Course cards: the featured tier's scale() made it overlap its
       neighbours once stacked. */
    .course-card--featured { transform: none !important; }
    .course-card__badge { right: -38px; font-size: 10px; }

    /* Stats: four across is unreadable on a phone; two across works. */
    .pt-stats .col-xs-3 { width: 50%; }
    .pt-stat h2 { font-size: 27px; }

    /* Home query form and cards need breathing room when stacked. */
    .p-a30 { padding: 20px !important; }
    .p-a20 { padding: 16px !important; }

    /* Footer columns ran together. */
    .footer-top .widget { margin-bottom: 26px; }
    .pt-risk { text-align: left; font-size: 11.5px; }
}

@media (max-width: 575px) {
    /* Breadcrumbs wrapped mid-word on long course names. */
    .wt-breadcrumb { font-size: 12px; }
    .wt-breadcrumb li { display: inline-block; }

    /* The top bar's email/phone/social row was cramped; centre and wrap it. */
    .top-bar .e-p-bx { text-align: center; float: none !important; }
    .top-bar .e-p-bx li { float: none; display: inline-block; margin: 2px 6px; font-size: 12px; }
    .wt-topbar-left, .wt-topbar-right { float: none !important; width: 100%; }
    .language-select { float: none !important; text-align: center; }
    .language-select ul { display: inline-block; margin: 4px 0 0 !important; }

    /* Blog/mission images were fixed-height and cropped oddly. */
    .blog-card__img { height: 190px; }
    .pt-mv__img { height: 170px; }

    /* Course page sidebar sat flush against the content above it. */
    .pt-course-side { margin-top: 22px; }
}

/* Very small phones (375px and below, per the brief's target sizes). */
@media (max-width: 380px) {
    .hero-slider__title { font-size: 20px; }
    .hero-slider__sub { font-size: 13px; }
    .course-card__price { font-size: 25px; }
    .pt-stat h2 { font-size: 23px; }
    .pt-logo img { max-height: 34px; }
}
