/*
 * Inner pages: about, courses, course detail, blog listing and post,
 * contact, legal pages, thank-you, 404 — plus the demo-booking modal and
 * shared form fields. Builds on the tokens and components in ui.css.
 */

/* ======================================================= shared additions */
.hp-btn-block {
    width: 100%;
}

.hp-stats-flush {
    margin-top: 0;
}

/* a trimmed course list shows equal-width cards, three to a row */
.hp-courses-even .hp-course,
.hp-courses-even .hp-course:nth-child(-n+2) {
    grid-column: span 2;
}


/* ================================================================= forms */
.hp-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hp-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.hp-input {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.hp-input > span {
    color: var(--hp-ink);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.hp-input > span em {
    color: var(--hp-muted);
    font-style: normal;
    font-weight: 600;
}

.hp-input input,
.hp-input select,
.hp-input textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--hp-tint);
    border: 1.5px solid var(--hp-line);
    border-radius: 12px;
    color: var(--hp-ink);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

/* iPhones zoom the whole page in when a field's text is under 16px */
@media (max-width: 768px) {
    .hp-input input,
    .hp-input select,
    .hp-input textarea {
        font-size: 16px;
    }
}

.hp-input select {
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2366758c' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}

.hp-input textarea {
    min-height: 96px;
    line-height: 1.5;
    resize: vertical;
}

.hp-input input::placeholder,
.hp-input textarea::placeholder {
    color: #98a4b6;
}

.hp-input input:focus,
.hp-input select:focus,
.hp-input textarea:focus {
    background: #fff;
    border-color: var(--hp-gold);
    box-shadow: 0 0 0 4px rgba(219, 151, 18, 0.18);
}

.form-alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.form-alert-error {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #9f1239;
}

.form-alert-success {
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    color: #166534;
}


/* ============================================================= page hero */
.pg-hero {
    position: relative;
    overflow: hidden;
    /* 80px fixed header + breathing room */
    padding: 132px 0 80px;
    background:
        radial-gradient(560px 380px at 8% 0%, rgba(219, 151, 18, 0.16), transparent 65%),
        radial-gradient(640px 460px at 96% 40%, rgba(47, 95, 208, 0.12), transparent 65%),
        linear-gradient(180deg, #fffaf1 0%, #f3f6fc 100%);
    text-align: center;
}

.pg-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(0, 29, 66, 0.09) 1px, transparent 1px);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 0%, transparent 70%);
    mask-image: radial-gradient(ellipse at 50% 20%, #000 0%, transparent 70%);
    pointer-events: none;
}

/* decorative ring, right edge */
.pg-hero::after {
    content: '';
    position: absolute;
    top: 90px;
    right: -120px;
    width: 300px;
    height: 300px;
    border: 36px solid rgba(219, 151, 18, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.pg-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.pg-hero-compact {
    padding-bottom: 56px;
}

.pg-crumbs ol {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--hp-line);
    border-radius: 999px;
    box-shadow: var(--hp-shadow-sm);
    color: var(--hp-muted);
    font-size: 0.82rem;
    font-weight: 700;
    list-style: none;
}

.pg-crumbs li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.pg-crumbs li + li::before {
    content: '\203A';
    color: #b3bfd0;
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1;
}

.pg-crumbs a {
    color: var(--hp-navy);
    text-decoration: none;
    transition: color 0.2s ease;
}

.pg-crumbs a:hover {
    color: var(--hp-gold);
}

.pg-crumbs a i {
    margin-right: 4px;
    color: var(--hp-gold);
}

.pg-crumbs [aria-current] {
    max-width: 300px;
    overflow: hidden;
    color: var(--hp-gold);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pg-hero .hp-eyebrow {
    display: flex;
    justify-content: center;
    margin: 26px 0 0;
}

.pg-hero .hp-eyebrow::after {
    content: '';
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.pg-title {
    margin-top: 16px;
    color: var(--hp-ink);
    font-size: clamp(2.3rem, 4.6vw, 3.8rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.pg-crumbs + .pg-title {
    margin-top: 26px;
}

.pg-lead {
    max-width: 680px;
    margin: 20px auto 0;
    color: var(--hp-text);
    font-size: 1.12rem;
    line-height: 1.7;
}

.pg-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 32px;
}


/* ================================================================= about */
.pg-split {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    align-items: center;
    gap: 72px;
}

.pg-media {
    position: relative;
}

.pg-media::before {
    content: '';
    position: absolute;
    top: -26px;
    left: -26px;
    width: 150px;
    height: 150px;
    background-image: radial-gradient(var(--hp-gold) 2px, transparent 2px);
    background-size: 16px 16px;
    opacity: 0.45;
}

.pg-media::after {
    content: '';
    position: absolute;
    right: -30px;
    bottom: -30px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--hp-navy-grad);
}

.pg-media-frame {
    position: relative;
    z-index: 1;
    overflow: hidden;
    aspect-ratio: 4 / 3.4;
    border: 8px solid #fff;
    border-radius: 28px;
    box-shadow: var(--hp-shadow-lg);
}

.pg-media-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pg-media-chip {
    bottom: 36px;
    left: -24px;
}

.pg-copy .hp-title {
    margin-bottom: 18px;
}

.pg-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
    list-style: none;
}

.pg-checks li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--hp-tint);
    border: 1px solid var(--hp-line);
    border-radius: 12px;
    color: var(--hp-navy);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.pg-checks i {
    color: var(--hp-gold);
}

.pg-mv {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.pg-mv-card {
    position: relative;
    overflow: hidden;
    padding: 42px;
    background: #fff;
    border: 1px solid var(--hp-line);
    border-radius: var(--hp-radius-lg);
    box-shadow: var(--hp-shadow-sm);
}

.pg-mv-card > * {
    position: relative;
}

.pg-mv-icon {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: var(--hp-gold-soft);
    color: var(--hp-gold);
    font-size: 1.5rem;
}

.pg-mv-card h3 {
    margin-top: 22px;
    color: var(--hp-ink);
    font-size: 1.6rem;
    font-weight: 900;
}

.pg-mv-card p {
    margin-top: 12px;
    color: var(--hp-muted);
    font-size: 1.02rem;
    line-height: 1.75;
}

.pg-mv-card-dark {
    background: var(--hp-navy-grad);
    border-color: transparent;
}

.pg-mv-card-dark::before {
    content: '';
    position: absolute;
    top: -140px;
    right: -100px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(219, 151, 18, 0.3), transparent 70%);
}

.pg-mv-card-dark .pg-mv-icon {
    background: var(--hp-gold-grad);
    color: var(--hp-navy);
}

.pg-mv-card-dark h3 {
    color: #fff;
}

.pg-mv-card-dark p {
    color: var(--hp-on-dark);
}

.pg-diff {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.pg-diff-card {
    position: relative;
    overflow: hidden;
    padding: 30px 26px;
    background: #fff;
    border: 1px solid var(--hp-line);
    border-radius: var(--hp-radius);
    box-shadow: var(--hp-shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pg-diff-card::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 4px;
    background: var(--hp-gold-grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.pg-diff-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hp-shadow);
}

.pg-diff-card:hover::after {
    transform: scaleX(1);
}

.pg-diff-num {
    display: block;
    color: var(--hp-gold);
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
}

.pg-diff-card h3 {
    margin-top: 18px;
    color: var(--hp-ink);
    font-size: 1.15rem;
    font-weight: 900;
}

.pg-diff-card p {
    margin-top: 8px;
    color: var(--hp-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}


/* ================================================================= prose */
/* Rich text from the admin editor (about copy, blog posts, legal pages). */
.pg-prose {
    color: var(--hp-text);
    font-size: 1.02rem;
    line-height: 1.8;
}

.pg-prose-lg {
    font-size: 1.07rem;
}

.pg-prose > * + * {
    margin-top: 1.1em;
}

.pg-prose strong {
    color: var(--hp-ink);
}

.pg-prose a {
    color: #b87800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pg-prose h2 {
    margin-top: 1.8em;
    color: var(--hp-ink);
    font-size: 1.55rem;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: -0.01em;
    scroll-margin-top: 110px;
}

.pg-prose h3 {
    margin-top: 1.5em;
    color: var(--hp-ink);
    font-size: 1.22rem;
    font-weight: 900;
}

.pg-prose > h2:first-child,
.pg-prose > h3:first-child {
    margin-top: 0;
}

.pg-prose ul,
.pg-prose ol {
    display: grid;
    gap: 0.6em;
    padding: 0;
    list-style: none;
}

.pg-prose ul li {
    position: relative;
    padding-left: 28px;
}

.pg-prose ul li::before {
    content: '';
    position: absolute;
    top: 0.72em;
    left: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--hp-gold);
    box-shadow: 0 0 0 4px var(--hp-gold-soft);
}

.pg-prose ol {
    counter-reset: pg-ol;
}

.pg-prose ol li {
    position: relative;
    padding-left: 40px;
    counter-increment: pg-ol;
}

.pg-prose ol li::before {
    content: counter(pg-ol);
    position: absolute;
    top: 0.2em;
    left: 0;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--hp-navy);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 900;
    line-height: 1;
}

/* style.css gives every blockquote a blog style; restate it here */
.pg-prose blockquote {
    margin: 1.6em 0 0;
    padding: 22px 26px;
    background: var(--hp-gold-soft);
    border: 0;
    border-left: 4px solid var(--hp-gold);
    border-radius: 0 16px 16px 0;
    color: var(--hp-ink);
    font-size: 1.08rem;
    font-style: normal;
    font-weight: 700;
    line-height: 1.6;
}

.pg-prose .lead {
    color: var(--hp-ink);
    font-size: 1.2rem;
    line-height: 1.7;
}

.pg-prose img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}


/* ========================================================= course detail */
.pg-hero-split {
    padding-bottom: 88px;
    text-align: left;
}

.pg-course-hero {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    align-items: center;
    gap: 56px;
}

.pg-hero-split .pg-crumbs ol {
    justify-content: flex-start;
}

.pg-hero-split .hp-eyebrow {
    display: inline-flex;
    margin: 26px 0 0;
}

.pg-hero-split .hp-eyebrow::after {
    content: none;
}

.pg-hero-split .pg-lead {
    max-width: 600px;
    margin-left: 0;
}

.pg-hero-split .pg-actions {
    justify-content: flex-start;
}

.pg-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-top: 28px;
    color: var(--hp-muted);
    font-size: 0.92rem;
    font-weight: 700;
    list-style: none;
}

.pg-facts i {
    margin-right: 6px;
    color: var(--hp-gold);
}

.pg-enroll {
    position: relative;
    padding: 30px 28px 26px;
    background: #fff;
    border: 1px solid var(--hp-line);
    border-radius: 24px;
    box-shadow: var(--hp-shadow-lg);
}

.pg-enroll::before {
    content: '';
    position: absolute;
    top: 0;
    right: 28px;
    left: 28px;
    height: 4px;
    border-radius: 0 0 4px 4px;
    background: var(--hp-gold-grad);
}

/* uploaded course image across the top of the enrol card */
.pg-enroll.has-img {
    padding-top: 14px;
}

.pg-enroll.has-img::before {
    display: none;
}

.pg-enroll-media {
    overflow: hidden;
    margin: 0 -14px 20px;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
}

.pg-enroll-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pg-enroll-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--hp-line);
}

.pg-enroll-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--hp-navy-grad);
    color: var(--hp-gold-2);
    font-size: 1.35rem;
}

.pg-enroll-head small {
    display: block;
    color: var(--hp-gold);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pg-enroll-head strong {
    display: block;
    color: var(--hp-ink);
    font-size: 1.35rem;
    font-weight: 900;
}

.pg-enroll-label {
    margin: 20px 0 12px;
    color: var(--hp-muted);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pg-enroll-list {
    display: grid;
    gap: 10px;
    margin-bottom: 24px;
    list-style: none;
}

.pg-enroll-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--hp-text);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
}

.pg-enroll-list i {
    margin-top: 2px;
    color: #1f8a55;
}

.pg-enroll-perks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 16px;
    margin-top: 16px;
    color: var(--hp-muted);
    font-size: 0.8rem;
    font-weight: 700;
    list-style: none;
}

.pg-enroll-perks i {
    margin-right: 4px;
    color: var(--hp-gold);
}

.pg-subjects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.pg-subject {
    padding: 26px;
    background: #fff;
    border: 1px solid var(--hp-line);
    border-radius: var(--hp-radius);
    box-shadow: var(--hp-shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.pg-subject:hover {
    transform: translateY(-4px);
    border-color: rgba(219, 151, 18, 0.45);
    box-shadow: var(--hp-shadow);
}

.pg-subject:hover .hp-feature-icon {
    background: var(--hp-navy);
    color: var(--hp-gold-2);
}

.pg-subject-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 18px;
}

.pg-subject-top .hp-feature-icon {
    margin-bottom: 0;
}

.pg-subject-num {
    color: transparent;
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
    -webkit-text-stroke: 1.5px #cfd7e3;
}

.pg-subject h3 {
    margin-bottom: 8px;
    color: var(--hp-ink);
    font-size: 1.12rem;
    font-weight: 900;
    line-height: 1.3;
}

.pg-subject p {
    color: var(--hp-muted);
    font-size: 0.94rem;
    line-height: 1.6;
}

.pg-perks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    max-width: 980px;
    margin: 0 auto;
}

.pg-perk {
    display: flex;
    gap: 16px;
    padding: 26px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.pg-perk:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(245, 185, 66, 0.5);
}

.pg-perk-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--hp-gold-grad);
    color: var(--hp-navy);
    font-size: 1.1rem;
}

.pg-perk h3 {
    margin-bottom: 6px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 900;
}

.pg-perk p {
    color: var(--hp-on-dark);
    font-size: 0.95rem;
    line-height: 1.6;
}

.pg-others {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.pg-other {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--hp-line);
    border-radius: 18px;
    box-shadow: var(--hp-shadow-sm);
    text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.pg-other:hover {
    transform: translateY(-3px);
    border-color: var(--hp-gold);
    box-shadow: var(--hp-shadow);
}

.pg-other-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--hp-gold-soft);
    color: var(--hp-gold);
    font-size: 1.15rem;
}

.pg-other-text {
    flex: 1;
    min-width: 0;
}

.pg-other-text small {
    display: block;
    color: var(--hp-muted);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pg-other-text strong {
    display: block;
    color: var(--hp-ink);
    font-size: 1.05rem;
    font-weight: 900;
}

.pg-other-arrow {
    color: var(--hp-gold);
    transition: transform 0.25s ease;
}

.pg-other:hover .pg-other-arrow {
    transform: translateX(4px);
}


/* ========================================================== blog listing */
.pg-blog-section {
    padding-top: 56px;
}

.pg-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.pg-filter {
    padding: 10px 20px;
    background: #fff;
    border: 1px solid var(--hp-line);
    border-radius: 999px;
    box-shadow: var(--hp-shadow-sm);
    color: var(--hp-text);
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.pg-filter:hover {
    border-color: var(--hp-navy);
    color: var(--hp-navy);
}

.pg-filter.is-active {
    background: var(--hp-navy);
    border-color: var(--hp-navy);
    color: #fff;
}

.pg-featured {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    overflow: hidden;
    margin-bottom: 32px;
    background: #fff;
    border: 1px solid var(--hp-line);
    border-radius: var(--hp-radius-lg);
    box-shadow: var(--hp-shadow);
}

.pg-featured-img {
    position: relative;
    display: block;
    min-height: 360px;
    overflow: hidden;
}

.pg-featured-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.pg-featured:hover .pg-featured-img img {
    transform: scale(1.05);
}

.pg-featured-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 44px;
}

.pg-featured-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--hp-tint);
    border-radius: 999px;
    color: var(--hp-navy);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pg-featured h2 {
    margin-top: 18px;
    font-size: clamp(1.5rem, 2.4vw, 2.1rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.pg-featured h2 a {
    color: var(--hp-ink);
    text-decoration: none;
    transition: color 0.25s ease;
}

.pg-featured h2 a:hover {
    color: var(--hp-gold);
}

.pg-featured p {
    margin-top: 14px;
    color: var(--hp-muted);
    font-size: 1.02rem;
    line-height: 1.7;
}

.pg-featured .pg-meta {
    margin: 20px 0 28px;
}

.pg-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    color: var(--hp-muted);
    font-size: 0.82rem;
    font-weight: 700;
    list-style: none;
}

.pg-meta i {
    margin-right: 5px;
    color: var(--hp-gold);
}

.hp-blog-body .pg-meta {
    margin-bottom: 12px;
}

/* auto-fit: two leftover posts share the row instead of leaving a gap */
.pg-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.pg-blog-grid > .hp-blog:only-child {
    max-width: 420px;
}

.pg-blog-grid .hp-blog-img {
    aspect-ratio: 16 / 9;
}

.pg-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.pg-page {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    background: #fff;
    border: 1px solid var(--hp-line);
    border-radius: 12px;
    color: var(--hp-navy);
    font-weight: 900;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.pg-page:hover {
    border-color: var(--hp-navy);
}

.pg-page.is-active {
    background: var(--hp-navy);
    border-color: var(--hp-navy);
    color: #fff;
}

.pg-empty {
    max-width: 520px;
    margin: 0 auto;
    padding: 48px 32px;
    background: #fff;
    border: 1px dashed #d5dce8;
    border-radius: var(--hp-radius-lg);
    text-align: center;
}

.pg-empty-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto;
    border-radius: 50%;
    background: var(--hp-gold-soft);
    color: var(--hp-gold);
    font-size: 1.5rem;
}

.pg-empty h2 {
    margin-top: 18px;
    color: var(--hp-ink);
    font-size: 1.4rem;
    font-weight: 900;
}

.pg-empty p {
    margin: 10px 0 24px;
    color: var(--hp-muted);
    line-height: 1.6;
}


/* ============================================================= blog post */
.pg-hero-article {
    padding-bottom: 150px;
}

.pg-title-article {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.pg-byline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 14px;
    margin-top: 26px;
    color: var(--hp-muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.pg-byline i {
    margin-right: 5px;
    color: var(--hp-gold);
}

.pg-byline strong {
    color: var(--hp-ink);
}

.pg-avatar {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--hp-navy);
    color: var(--hp-gold-2);
    font-weight: 900;
}

.pg-byline-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #c3ccda;
}

.pg-article-wrap {
    position: relative;
    z-index: 2;
    margin-top: -110px;
    padding-bottom: 24px;
}

.pg-cover {
    overflow: hidden;
    max-width: 1060px;
    margin: 0 auto;
    aspect-ratio: 16 / 7.5;
    border: 8px solid #fff;
    border-radius: 28px;
    box-shadow: var(--hp-shadow-lg);
}

.pg-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pg-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
    gap: 56px;
    margin-top: 56px;
}

.pg-article {
    min-width: 0;
}

.pg-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 44px;
    padding: 20px 24px;
    background: var(--hp-tint);
    border: 1px solid var(--hp-line);
    border-radius: 18px;
}

.pg-share > span {
    color: var(--hp-ink);
    font-weight: 900;
}

.pg-share div {
    display: flex;
    gap: 10px;
}

.pg-share a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    background: #fff;
    border: 1px solid var(--hp-line);
    border-radius: 12px;
    color: var(--hp-navy);
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.pg-share a:hover {
    background: var(--hp-navy);
    border-color: var(--hp-navy);
    color: #fff;
}

.pg-sidebar {
    position: sticky;
    top: 104px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pg-side-promo {
    position: relative;
    overflow: hidden;
    padding: 28px;
    background: var(--hp-navy-grad);
    border-radius: 22px;
    color: #fff;
}

.pg-side-promo::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -90px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(219, 151, 18, 0.35), transparent 70%);
}

.pg-side-promo > * {
    position: relative;
}

.pg-side-promo-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--hp-gold-grad);
    color: var(--hp-navy);
    font-size: 1.2rem;
}

.pg-side-promo h3 {
    margin-top: 16px;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 900;
}

.pg-side-promo p {
    margin: 8px 0 20px;
    color: var(--hp-on-dark);
    font-size: 0.94rem;
    line-height: 1.6;
}

.pg-side-card {
    padding: 24px;
    background: #fff;
    border: 1px solid var(--hp-line);
    border-radius: 22px;
    box-shadow: var(--hp-shadow-sm);
}

.pg-side-card h3 {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--hp-line);
    color: var(--hp-ink);
    font-size: 1.05rem;
    font-weight: 900;
}

.pg-related {
    display: grid;
    gap: 14px;
    list-style: none;
}

.pg-related a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.pg-related img {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
}

.pg-related strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--hp-ink);
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.25s ease;
}

.pg-related small {
    display: block;
    margin-top: 4px;
    color: var(--hp-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.pg-related a:hover strong {
    color: var(--hp-gold);
}


/* =============================================================== contact */
.pg-contact-section {
    padding-top: 64px;
    background: var(--hp-tint);
}

.pg-contact {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: start;
    gap: 32px;
}

.pg-contact-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.pg-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--hp-line);
    border-radius: 20px;
    box-shadow: var(--hp-shadow-sm);
    text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

a.pg-tile:hover {
    transform: translateY(-3px);
    border-color: var(--hp-gold);
    box-shadow: var(--hp-shadow);
}

.pg-tile-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 12px;
    border-radius: 14px;
    background: var(--hp-gold-soft);
    color: var(--hp-gold);
    font-size: 1.1rem;
}

.pg-tile-wa .pg-tile-icon {
    background: #e3f6ec;
    color: #1f8a55;
}

.pg-tile small,
.pg-map-head small {
    display: block;
    color: var(--hp-muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pg-tile strong {
    color: var(--hp-ink);
    font-size: 1rem;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.pg-map-card {
    overflow: hidden;
    margin-top: 16px;
    background: #fff;
    border: 1px solid var(--hp-line);
    border-radius: 20px;
    box-shadow: var(--hp-shadow-sm);
}

.pg-map-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 22px;
}

.pg-map-head .pg-tile-icon {
    margin: 0;
}

.pg-map-head > div {
    flex: 1;
    min-width: 0;
}

.pg-map-head p {
    margin-top: 4px;
    color: var(--hp-ink);
    font-weight: 800;
    line-height: 1.5;
}

.pg-map-link {
    align-self: center;
    padding: 10px 14px;
    font-size: 0.85rem;
}

.pg-map {
    height: 280px;
    border-top: 1px solid var(--hp-line);
    background: var(--hp-tint);
}

.pg-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.pg-form-card {
    position: sticky;
    top: 104px;
    padding: 36px;
    background: #fff;
    border: 1px solid var(--hp-line);
    border-radius: var(--hp-radius-lg);
    box-shadow: var(--hp-shadow-lg);
}

.pg-form-card .hp-eyebrow {
    margin-bottom: 10px;
}

.pg-form-card h2 {
    color: var(--hp-ink);
    font-size: 1.7rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.pg-form-sub {
    margin: 8px 0 24px;
    color: var(--hp-muted);
    line-height: 1.6;
}


/* ========================================================== legal pages */
.pg-doc-section {
    padding-top: 56px;
    background: var(--hp-tint);
}

.pg-doc {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: start;
    gap: 40px;
}

.pg-doc-single {
    grid-template-columns: minmax(0, 860px);
    justify-content: center;
}

.pg-toc {
    position: sticky;
    top: 104px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pg-toc ol {
    display: grid;
    gap: 4px;
    counter-reset: pg-toc;
    list-style: none;
}

.pg-toc li a {
    display: flex;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--hp-text);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.pg-toc li a::before {
    counter-increment: pg-toc;
    content: counter(pg-toc, decimal-leading-zero);
    color: var(--hp-gold);
    font-size: 0.8rem;
    font-weight: 900;
}

.pg-toc li a:hover {
    background: var(--hp-tint);
    color: var(--hp-navy);
}

.pg-side-help a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    color: var(--hp-navy);
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.pg-side-help i {
    width: 16px;
    color: var(--hp-gold);
}

.pg-doc-body {
    padding: 44px 48px;
    background: #fff;
    border: 1px solid var(--hp-line);
    border-radius: var(--hp-radius-lg);
    box-shadow: var(--hp-shadow-sm);
}


/* =================================================================== 404 */
.pg-404 {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 140px 0 100px;
}

.pg-404-code {
    display: block;
    color: transparent;
    font-size: clamp(7rem, 18vw, 12rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.04em;
    -webkit-text-stroke: 2px rgba(0, 29, 66, 0.14);
}

.pg-404 .hp-eyebrow {
    margin-top: 8px;
}

.pg-404-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pg-404-links span {
    width: 100%;
    margin-bottom: 4px;
    color: var(--hp-muted);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.pg-404-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid var(--hp-line);
    border-radius: 999px;
    box-shadow: var(--hp-shadow-sm);
    color: var(--hp-navy);
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.pg-404-links a i {
    color: var(--hp-gold);
}

.pg-404-links a:hover {
    transform: translateY(-2px);
    border-color: var(--hp-navy);
}


/* ============================================================= thank-you */
.pg-ty {
    padding-bottom: 72px;
}

.pg-ty-check {
    width: 84px;
    height: 84px;
    margin: 0 auto 6px;
}

.pg-ty-check svg {
    display: block;
    width: 100%;
    height: 100%;
}

.pg-ty-check circle {
    fill: #ecfdf3;
    stroke: #22c55e;
    stroke-width: 2.5;
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
    animation: pg-draw 0.7s ease-out forwards;
}

.pg-ty-check path {
    stroke: #16a34a;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: pg-draw 0.45s 0.55s ease-out forwards;
}

@keyframes pg-draw {
    to { stroke-dashoffset: 0; }
}

.pg-ty-ref {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
    padding: 10px 10px 10px 20px;
    background: #fff;
    border: 1px dashed var(--hp-gold);
    border-radius: 16px;
    box-shadow: var(--hp-shadow-sm);
}

.pg-ty-ref span {
    color: var(--hp-muted);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pg-ty-ref strong {
    padding: 8px 14px;
    background: var(--hp-navy);
    border-radius: 10px;
    color: var(--hp-gold-2);
    font-weight: 900;
    letter-spacing: 0.08em;
}

.pg-ty-body {
    padding-top: 56px;
    background: var(--hp-tint);
}

.pg-ty-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
    gap: 24px;
}

.pg-ty-main {
    display: grid;
    gap: 24px;
}

.pg-card {
    padding: 30px;
    background: #fff;
    border: 1px solid var(--hp-line);
    border-radius: var(--hp-radius-lg);
    box-shadow: var(--hp-shadow-sm);
}

.pg-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--hp-ink);
    font-size: 1.2rem;
    font-weight: 900;
}

.pg-card-title > span {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--hp-gold-soft);
    color: var(--hp-gold);
    font-size: 1rem;
}

.pg-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.pg-summary div {
    padding: 14px 16px;
    background: var(--hp-tint);
    border-radius: 14px;
}

.pg-summary dt {
    color: var(--hp-muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pg-summary dd {
    margin-top: 4px;
    color: var(--hp-ink);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.pg-note {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    color: var(--hp-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.pg-note i {
    margin-top: 3px;
    color: var(--hp-gold);
}

.pg-steps {
    display: grid;
    gap: 18px;
    list-style: none;
}

.pg-steps li {
    display: flex;
    gap: 16px;
}

.pg-step-num {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--hp-navy);
    color: var(--hp-gold-2);
    font-weight: 900;
}

.pg-steps h3 {
    color: var(--hp-ink);
    font-size: 1.05rem;
    font-weight: 900;
}

.pg-steps p {
    margin-top: 4px;
    color: var(--hp-muted);
    font-size: 0.94rem;
    line-height: 1.6;
}

.pg-ty-side {
    position: sticky;
    top: 104px;
}

.pg-ty-contact p {
    margin: -8px 0 18px;
    color: var(--hp-muted);
    line-height: 1.6;
}

.pg-action {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
    padding: 14px;
    background: var(--hp-tint);
    border: 1px solid var(--hp-line);
    border-radius: 16px;
    text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.pg-action:hover {
    transform: translateY(-2px);
    border-color: var(--hp-navy);
}

.pg-action-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--hp-navy);
    color: var(--hp-gold-2);
}

.pg-action-wa .pg-action-icon {
    background: #1faa53;
    color: #fff;
}

.pg-action strong {
    display: block;
    color: var(--hp-ink);
    font-weight: 900;
}

.pg-action small {
    display: block;
    color: var(--hp-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.pg-ty-meta {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px dashed var(--hp-line);
    color: var(--hp-muted);
    font-size: 0.9rem;
    font-weight: 700;
    list-style: none;
    overflow-wrap: anywhere;
}

.pg-ty-meta i {
    margin-right: 8px;
    color: var(--hp-gold);
}

.pg-ty-explore {
    margin-top: 72px;
}

.pg-ty-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 48px;
}


/* ================================================================ modal */
/* "Book Free Demo" dialog: navy value panel on the left (what you get,
   what happens next, call / WhatsApp), the form on the right. Below
   1150px the panel folds into a short band above the form. */
.hp-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 20, 46, 0.72);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

/* the page behind must not scroll while the popup is up */
body.hp-modal-open {
    overflow: hidden;
}

.hp-modal-dialog {
    position: relative;
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    width: 100%;
    max-width: 960px;
    max-height: calc(100vh - 40px);
    overflow: auto;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
    animation: hp-modal-in 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes hp-modal-in {
    from { opacity: 0; transform: translateY(18px) scale(0.97); }
    to { opacity: 1; transform: none; }
}

.hp-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    background: #fff;
    border: 1px solid var(--hp-line);
    border-radius: 50%;
    box-shadow: var(--hp-shadow-sm);
    color: var(--hp-navy);
    font-size: 1.05rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.hp-modal-close:hover {
    background: var(--hp-navy);
    color: #fff;
    transform: rotate(90deg);
}

/* ---------------------------------------------------------- left panel */
.hp-modal-side {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 30px 28px 28px;
    background: var(--hp-navy-grad);
    color: #fff;
}

.hp-modal-side::before {
    content: '';
    position: absolute;
    top: -130px;
    right: -110px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(219, 151, 18, 0.38), transparent 70%);
}

.hp-modal-side::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--hp-dots);
    background-size: 22px 22px;
    pointer-events: none;
}

.hp-modal-side > * {
    position: relative;
    z-index: 1;
}

.hp-modal-side-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.hp-modal-logo {
    display: inline-flex;
    padding: 7px 12px;
    background: #fff;
    border-radius: 12px;
}

.hp-modal-logo img {
    display: block;
    width: auto;
    height: 40px;
}

.hp-modal-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: var(--hp-gold-2);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.hp-modal-side h3 {
    margin-top: 22px;
    color: #fff;
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1.2;
}

.hp-modal-side p {
    margin-top: 8px;
    color: var(--hp-on-dark);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* "what happens next" */
.hp-modal-steps {
    margin-top: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
}

.hp-modal-steps-title {
    display: block;
    margin-bottom: 10px;
    color: var(--hp-gold-2);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hp-modal-steps ol {
    display: grid;
    gap: 10px;
    list-style: none;
}

.hp-modal-steps li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.4;
}

.hp-modal-steps li span {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    background: var(--hp-gold-grad);
    border-radius: 50%;
    color: var(--hp-navy);
    font-size: 0.72rem;
    font-weight: 900;
}

.hp-modal-perks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    list-style: none;
}

.hp-modal-perks li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.hp-modal-perks i {
    color: var(--hp-gold-2);
}

.hp-modal-contact {
    margin-top: auto;
    padding-top: 22px;
}

.hp-modal-call {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 900;
    text-decoration: none;
}

.hp-modal-call > i {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--hp-gold-grad);
    color: var(--hp-navy);
}

.hp-modal-call small {
    display: block;
    color: var(--hp-on-dark);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hp-modal-wa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    color: var(--hp-on-dark);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    transition: color 0.2s ease;
}

.hp-modal-wa i {
    color: #25d366;
    font-size: 1.1rem;
}

.hp-modal-wa:hover {
    color: #fff;
}

/* ---------------------------------------------------------------- form */
.hp-modal-body {
    padding: 34px 36px 28px;
}

.hp-modal-body .hp-eyebrow {
    margin-bottom: 8px;
}

.hp-modal-body h2 {
    padding-right: 44px;
    color: var(--hp-ink);
    font-size: 1.85rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.hp-modal-sub {
    margin: 6px 0 20px;
    color: var(--hp-muted);
    line-height: 1.6;
}

/* icon inside the box, "+91" in front of the phone number */
.hp-input-wrap {
    position: relative;
    display: block;
}

.hp-input-wrap > i {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: #8a97ab;
    font-size: 0.95rem;
    pointer-events: none;
    transition: color 0.2s ease;
}

.hp-input-wrap:focus-within > i {
    color: var(--hp-gold);
}

.hp-input-wrap input,
.hp-input-wrap select {
    padding-left: 44px;
}

.hp-input-prefix {
    position: absolute;
    top: 50%;
    left: 42px;
    transform: translateY(-50%);
    color: var(--hp-ink);
    font-size: 0.9rem;
    font-weight: 900;
    pointer-events: none;
}

.hp-input-tel input {
    padding-left: 76px;
}

.hp-input:focus-within > span:first-child {
    color: var(--hp-navy);
}

.hp-modal-submit {
    margin-top: 18px;
    font-size: 1.02rem;
}

.hp-modal-fine {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 10px;
    margin-top: 12px;
    color: var(--hp-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
}

.hp-modal-fine > i {
    color: #22a06b;
}

.hp-modal-time {
    padding-left: 10px;
    border-left: 1px solid var(--hp-line);
}


/* ============================================================ responsive */
@media (max-width: 1150px) {
    .hp-courses-even .hp-course,
    .hp-courses-even .hp-course:nth-child(-n+2) {
        grid-column: auto;
    }

    .pg-course-hero {
        grid-template-columns: minmax(0, 1fr) 340px;
        gap: 40px;
    }

    .pg-split {
        gap: 48px;
    }

    .pg-article-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 40px;
    }
}

@media (max-width: 900px) {
    .pg-hero {
        padding: 116px 0 64px;
    }

    .pg-hero-split {
        padding-bottom: 72px;
    }

    .pg-course-hero {
        grid-template-columns: 1fr;
    }

    .pg-enroll {
        width: 100%;
        max-width: 520px;
    }

    .pg-split {
        grid-template-columns: 1fr;
    }

    .pg-media {
        width: 100%;
        max-width: 560px;
        margin: 0 auto;
    }

    .pg-mv {
        grid-template-columns: 1fr;
    }

    .pg-featured {
        grid-template-columns: 1fr;
    }

    .pg-featured-img {
        min-height: 260px;
    }

    .pg-article-layout {
        grid-template-columns: 1fr;
    }

    .pg-sidebar,
    .pg-form-card,
    .pg-toc,
    .pg-ty-side {
        position: static;
    }

    .pg-contact {
        grid-template-columns: 1fr;
    }

    .pg-doc {
        grid-template-columns: 1fr;
    }

    .pg-ty-grid {
        grid-template-columns: 1fr;
    }

    .hp-modal-dialog {
        grid-template-columns: 1fr;
        max-width: 580px;
    }

    /* the panel becomes a short band: logo, chip and the three perks */
    .hp-modal-side {
        padding: 18px 22px 16px;
    }

    .hp-modal-side h3,
    .hp-modal-side p,
    .hp-modal-steps,
    .hp-modal-contact {
        display: none;
    }

    .hp-modal-perks {
        margin-top: 12px;
    }

    .hp-modal-side-top {
        padding-right: 48px;
    }
}

@media (max-width: 640px) {
    .pg-hero {
        padding: 108px 0 56px;
    }

    .pg-hero::after {
        display: none;
    }

    .pg-title .hp-marker {
        white-space: normal;
    }

    .pg-crumbs [aria-current] {
        max-width: 150px;
    }

    .pg-lead {
        font-size: 1.04rem;
    }

    .pg-actions {
        flex-direction: column;
    }

    .pg-actions .hp-btn {
        width: 100%;
    }

    .pg-media::before {
        top: -14px;
        left: -8px;
        width: 110px;
        height: 110px;
    }

    .pg-media::after {
        right: -12px;
        width: 130px;
        height: 130px;
    }

    .pg-media-frame {
        border-width: 6px;
        border-radius: 22px;
    }

    .pg-media-chip {
        left: 12px;
        bottom: 16px;
    }

    .pg-mv-card {
        padding: 28px 22px;
    }

    .pg-enroll {
        padding: 26px 20px 22px;
    }

    .pg-featured-body {
        padding: 26px 22px;
    }

    .pg-blog-grid {
        grid-template-columns: 1fr;
    }

    .pg-blog-grid > .hp-blog:only-child {
        max-width: none;
    }

    .pg-hero-article {
        padding-bottom: 110px;
    }

    .pg-article-wrap {
        margin-top: -80px;
    }

    .pg-cover {
        aspect-ratio: 16 / 10;
        border-width: 5px;
        border-radius: 20px;
    }

    .pg-article-layout {
        margin-top: 36px;
    }

    .pg-share {
        flex-direction: column;
        align-items: flex-start;
    }

    .pg-contact-section,
    .pg-doc-section,
    .pg-ty-body {
        padding-top: 40px;
    }

    .pg-form-card {
        padding: 26px 20px;
    }

    .hp-form-grid {
        grid-template-columns: 1fr;
    }

    /* address gets the full width; the directions button drops below it */
    .pg-map-head {
        flex-wrap: wrap;
    }

    .pg-map-head > div {
        flex: 1 1 calc(100% - 60px);
    }

    .pg-map-link {
        margin-left: 60px;
    }

    .pg-byline-dot {
        display: none;
    }

    .pg-doc-body {
        padding: 28px 22px;
    }

    .pg-card {
        padding: 24px 20px;
    }

    .pg-summary {
        grid-template-columns: 1fr;
    }

    .pg-ty-ref {
        flex-direction: column;
        gap: 8px;
        padding: 14px;
    }

    .hp-modal {
        align-items: flex-end;
        padding: 0;
    }

    .hp-modal-dialog {
        max-height: 92vh;
        border-radius: 24px 24px 0 0;
    }

    .hp-modal-side {
        padding: 14px 18px 12px;
    }

    .hp-modal-logo img {
        height: 32px;
    }

    .hp-modal-perks {
        margin-top: 10px;
    }

    .hp-modal-body {
        padding: 22px 20px 22px;
    }

    .hp-modal-body h2 {
        font-size: 1.5rem;
    }

    .hp-modal-sub {
        margin-bottom: 16px;
    }

    .hp-modal-close {
        top: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 480px) {
    .pg-contact-tiles {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pg-ty-check circle,
    .pg-ty-check path {
        animation: none;
        stroke-dashoffset: 0;
    }

    .hp-modal-dialog {
        animation: none;
    }
}
