/* ============================================
   Pre-MedTalks Page — Uses site globals + btn-3d
   ============================================ */

.pm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Section shell */
.pm-section {
    padding: 5rem 0;
}
.pm-bg-light {
    background: #f8fafc;
}

.pm-section-title {
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    font-weight: 800;
    color: #0a3547;
    margin: 0 0 1rem;
    line-height: 1.2;
    text-align: center;
}
.pm-section-sub {
    color: #475569;
    max-width: 780px;
    margin: 0 auto 2.5rem;
    text-align: center;
    font-size: 1rem;
    line-height: 1.6;
}
.pm-sub-heading {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0a3547;
    margin: 2.5rem 0 1.25rem;
    text-align: center;
}

/* ===== Hero ===== */
.pm-hero {
    background: #f1f5f9;
    padding: 5rem 0 4rem;
    text-align: center;
}
.pm-hero-title {
    font-size: clamp(2.6rem, 6vw, 4.5rem);
    font-weight: 900;
    letter-spacing: 2px;
    color: #0a3547;
    margin: 0 0 0.5rem;
    line-height: 1;
}
.pm-hero-tag {
    color: #e13732;
    font-weight: 600;
    font-style: italic;
    margin: 0 0 1.5rem;
    font-size: 1rem;
}
.pm-hero-headline {
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    color: #0f172a;
    font-weight: 800;
    max-width: 900px;
    margin: 0 auto 1rem;
    line-height: 1.25;
}
.pm-hl {
    color: #e13732;
}
.pm-hero-sub {
    max-width: 780px;
    margin: 0 auto 2rem;
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.6;
}
.pm-hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

/* Keep all Pre-MedTalks CTAs visually consistent with the shared 3D button system. */
.pm-cta-btn {
    min-width: 220px;
}

.pm-cta-btn .inner {
    padding: 14px 30px;
    white-space: nowrap;
}

.pm-hero-badges {
    list-style: none;
    padding: 0;
    margin: 1rem auto 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 1150px;
}
.pm-hero-badges-row-2 { margin-top: 1rem; }
.pm-hero-badges li {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    padding: 0.95rem 1.4rem 0.95rem 0.95rem;
    color: #0f172a;
    text-align: left;
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
    min-width: 210px;
}
.pm-bi {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pm-bi svg { display: block; }
.pm-bi-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.pm-bi-text strong {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}
.pm-bi-text span {
    font-size: 0.82rem;
    color: #64748b;
    margin-top: 3px;
}
@media (max-width: 720px) {
    .pm-hero-badges {
        gap: 0.75rem;
        padding: 0 0.5rem;
    }
    .pm-hero-badges li {
        min-width: 0;
        flex: 1 1 calc(50% - 0.375rem);
        padding: 0.75rem;
        gap: 0.6rem;
    }
    .pm-bi {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }
    .pm-bi-text strong {
        font-size: 0.88rem;
    }
    .pm-bi-text span {
        font-size: 0.75rem;
    }
}

@media (max-width: 420px) {
    .pm-hero-badges li {
        flex: 1 1 100%;
    }
}

/* ===== Two-column intro (legacy) ===== */
.pm-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto 2rem;
    color: #334155;
    font-size: 1rem;
    line-height: 1.75;
}
@media (max-width: 768px) {
    .pm-two-col { grid-template-columns: 1fr; gap: 1rem; }
}

/* ===== Split intro: graphic + copy ===== */
.pm-intro-split {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto 3rem;
}
.pm-intro-title {
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    font-weight: 800;
    color: #0a3547;
    line-height: 1.2;
    margin: 0 0 1.25rem;
}
.pm-intro-copy p {
    color: #334155;
    font-size: 1rem;
    line-height: 1.75;
    margin: 0 0 1rem;
}

/* ===== Split intro: graphic + copy (Mockup style) ===== */
.pm-mockup-wrap {
    position: relative;
    max-width: 540px;
    margin: 0 auto;
    z-index: 5;
}

.pm-mockup-img {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    display: block;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.pm-mockup-play {
    position: absolute;
    top: 50%;
    left: 24px;
    transform: translateY(-50%);
    width: 64px;
    height: 64px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    z-index: 3;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.pm-mockup-play:hover {
    transform: translateY(-50%) scale(1.05);
}

.pm-mockup-play-triangle {
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid #e13732;
    margin-left: 6px;
}

/* Chat structure */
.pm-mockup-chat {
    position: absolute;
    bottom: -150px;
    left: 10%;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 4;
}

.pm-mc-msg {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    max-width: 90%;
}

.pm-mc-msg.pm-mc-right {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.pm-mc-avi {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.pm-mc-avi-user {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.pm-mc-avi-dr {
    background: #e0e7ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
}

.pm-mc-bubble {
    background: #fff;
    color: #334155;
    padding: 1rem 1.25rem;
    border-radius: 20px;
    border-top-left-radius: 4px;
    font-size: 0.95rem;
    line-height: 1.5;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.pm-mc-dr-bubble {
    background: #0ea5e9;
    color: #fff;
    border-top-right-radius: 4px;
    border-top-left-radius: 20px;
}

@media (max-width: 900px) {
    .pm-intro-split { grid-template-columns: 1fr; gap: 2rem; }
    .pm-intro-copy { text-align: center; }
}
.pm-one-liner {
    max-width: 820px;
    margin: 0 auto 3rem;
    padding: 1.5rem 2rem;
    background: #fff7e6;
    border-left: 5px solid #ffd166;
    border-radius: 12px;
    color: #7a5a00;
    font-size: 1.1rem;
    text-align: center;
    font-style: italic;
}

/* ===== Pillars (6-column) ===== */
.pm-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 1rem;
}
.pm-pillar {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pm-pillar:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(10,53,71,0.08);
}
.pm-pillar-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.pm-pi-green { background: #dcfce7; color: #16a34a; }
.pm-pi-orange { background: #ffedd5; color: #ea580c; }
.pm-pi-teal { background: #ccfbf1; color: #0d9488; }
.pm-pillar h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0a3547;
    margin: 0 0 0.5rem;
}
.pm-pillar p {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.55;
    margin: 0;
}
@media (max-width: 900px) { .pm-pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pm-pillars { grid-template-columns: 1fr; } }

/* ===== Check list (Who for) ===== */
.pm-check-list {
    list-style: none;
    padding: 0;
    max-width: 920px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1.5rem;
}
.pm-check-list li {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    font-size: 0.95rem;
    color: #1e293b;
}
.pm-chk {
    color: #16a34a;
    font-size: 1.05rem;
    flex-shrink: 0;
}
@media (max-width: 768px) { .pm-check-list { grid-template-columns: 1fr; } }

/* ===== Quote block ===== */
.pm-quote {
    max-width: 900px;
    margin: 0 auto 2rem;
    padding: 2rem;
    background: #ecfdf5;
    border-left: 5px solid #16a34a;
    border-radius: 12px;
    color: #064e3b;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ===== Advantages (7) ===== */
.pm-advantages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.pm-adv {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.5rem;
}
.pm-adv-wide { grid-column: span 3; background: #0a3547; color: #fff; border: none; }
.pm-adv-wide h4 { color: #ffd166 !important; font-size: 1.2rem; }
.pm-adv-wide p { color: rgba(255,255,255,0.92) !important; opacity: 1; }
.pm-adv-wide .pm-adv-icon { font-size: 2rem; }
.pm-adv-icon {
    font-size: 1.5rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}
.pm-adv h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #0a3547;
    margin: 0 0 0.5rem;
}
.pm-adv p {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.55;
    margin: 0;
}
@media (max-width: 900px) {
    .pm-advantages { grid-template-columns: 1fr 1fr; }
    .pm-adv-wide { grid-column: span 2; }
}
@media (max-width: 560px) {
    .pm-advantages { grid-template-columns: 1fr; }
    .pm-adv-wide { grid-column: span 1; }
}

/* ===== Learn grid ===== */
.pm-learn-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto;
}
.pm-learn-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.5rem;
}
.pm-learn-wide { grid-column: span 3; background: linear-gradient(135deg, #fef3c7, #fde68a); }
.pm-learn-icon { font-size: 1.5rem; display: inline-block; margin-bottom: 0.5rem; }
.pm-learn-card h4 { font-size: 1rem; color: #0a3547; margin: 0 0 0.35rem; }
.pm-learn-card p { font-size: 0.88rem; color: #475569; margin: 0; line-height: 1.5; }
@media (max-width: 900px) {
    .pm-learn-grid { grid-template-columns: 1fr 1fr; }
    .pm-learn-wide { grid-column: span 2; }
}
@media (max-width: 560px) {
    .pm-learn-grid { grid-template-columns: 1fr; }
    .pm-learn-wide { grid-column: span 1; }
}

/* ===== Comparison table ===== */
.pm-compare-wrap { overflow-x: auto; max-width: 1100px; margin: 0 auto; }
.pm-compare {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    min-width: 720px;
}
.pm-compare thead th {
    background: #0a3547;
    color: #fff;
    font-size: 0.9rem;
    text-align: left;
    padding: 1rem 1.25rem;
}
.pm-compare .pm-th-us { background: #14b8a6; }
.pm-compare .pm-th-them { background: #64748b; }
.pm-compare tbody td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9rem;
    color: #1e293b;
    vertical-align: top;
}
.pm-compare tbody tr:last-child td { border-bottom: none; }
.pm-compare tbody td:nth-child(2) { background: #ecfdf5; color: #064e3b; font-weight: 600; }
.pm-compare tbody td:nth-child(3) { background: #fef2f2; color: #7f1d1d; }

/* ===== Structure / Timeline ===== */
.pm-structure {
    max-width: 950px;
    margin: 0 auto 2rem;
    text-align: center;
}
.pm-structure h3 {
    font-size: 1.2rem;
    color: #0a3547;
    margin: 0 0 0.75rem;
}
.pm-structure p {
    color: #475569;
    line-height: 1.7;
    margin: 0;
}
.pm-timeline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}
.pm-tl-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
}
.pm-tl-icon { font-size: 1.35rem; flex-shrink: 0; }
.pm-tl-item h4 { margin: 0 0 0.25rem; font-size: 0.98rem; color: #0a3547; }
.pm-tl-item p { margin: 0; font-size: 0.85rem; color: #64748b; }
@media (max-width: 768px) { .pm-timeline { grid-template-columns: 1fr; } }

/* ===== Steps (Step-by-step start) ===== */
.pm-steps {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 900px;
    counter-reset: pm-step;
    display: grid;
    gap: 0.85rem;
}
.pm-steps li {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.pm-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e13732;
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pm-steps h4 { margin: 0 0 0.25rem; color: #0a3547; font-size: 1rem; }
.pm-steps p { margin: 0; color: #64748b; font-size: 0.88rem; }
.pm-steps p:empty { display: none; }

.pm-step-actions {
    display: flex;
    justify-content: center;
    margin: 0 0 1.25rem;
}

/* ===== Pricing included + CTA ===== */
.pm-included-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    max-width: 1100px;
    margin: 0 auto 3rem;
}
.pm-inc {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.95rem 1.1rem;
    font-size: 0.9rem;
    color: #1e293b;
}
@media (max-width: 900px) { .pm-included-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pm-included-grid { grid-template-columns: 1fr; } }

.pm-price-cta {
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem;
    background: linear-gradient(135deg, #0a3547, #082935);
    border-radius: 20px;
    color: #fff;
    text-align: center;
    box-shadow: 0 20px 40px rgba(10,53,71,0.25);
}
.pm-price-cta h3 {
    font-size: 1.35rem;
    color: #ffd166;
    margin: 0 0 0.75rem;
}
.pm-price-cta p {
    color: rgba(255,255,255,0.85);
    max-width: 680px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}
.pm-price-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}
.pm-price-note {
    font-size: 0.82rem;
    opacity: 0.75;
    margin: 0;
}

/* ===== FAQ ===== */
.pm-faq {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 0.75rem;
}
.pm-faq details {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    transition: box-shadow 0.2s ease;
}
.pm-faq details[open] {
    box-shadow: 0 6px 18px rgba(10,53,71,0.08);
}
.pm-faq summary {
    font-weight: 700;
    color: #0a3547;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
}
.pm-faq summary::-webkit-details-marker { display: none; }
.pm-faq summary::after {
    content: '+';
    font-size: 1.4rem;
    color: #e13732;
    font-weight: 400;
    transition: transform 0.2s ease;
}
.pm-faq details[open] summary::after { content: '–'; }
.pm-faq p {
    margin: 0.75rem 0 0;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== Final CTA + Testimonials ===== */
.pm-final {
    background: linear-gradient(135deg, #0a3547 0%, #06202b 100%);
    color: #fff;
    padding: 5rem 0;
    text-align: center;
}
.pm-final-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin: 1rem 0 0.75rem;
    color: #fff;
}
.pm-final-sub {
    max-width: 780px;
    margin: 0 auto 3rem;
    color: rgba(255,255,255,0.85);
    font-size: 1.05rem;
    line-height: 1.6;
}
.pm-testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 1100px;
    margin: 0 auto 3rem;
}
.pm-testi {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    margin: 0;
    text-align: left;
    backdrop-filter: blur(6px);
}
.pm-testi blockquote {
    margin: 0 0 0.9rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.95);
    font-style: italic;
}
.pm-testi figcaption {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffd166;
}
.pm-testi-accent {
    background: #e5e7eb;
    border: none;
}
.pm-testi-accent blockquote { color: #0f172a; }
.pm-testi-accent figcaption { color: #e13732; }
@media (max-width: 900px) { .pm-testimonials { grid-template-columns: 1fr; } }

.pm-final-ctas {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .pm-hero-ctas .pm-cta-btn,
    .pm-price-actions .pm-cta-btn,
    .pm-final-ctas .pm-cta-btn {
        width: min(100%, 320px);
    }

    .pm-hero-ctas .pm-cta-btn .inner,
    .pm-price-actions .pm-cta-btn .inner,
    .pm-final-ctas .pm-cta-btn .inner {
        white-space: normal;
        line-height: 1.25;
    }
}
