/* ============================================
   PACEMAKER PAGE - STYLES
   Theme: Medical blue with heartbeat animations
   ============================================ */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --pm-primary: #2563eb;
    --pm-secondary: #06b6d4;
    --pm-accent: #8b5cf6;
    --pm-dark: #0f172a;
    --pm-darker: #060d1f;
    --pm-light: #f8fafc;
    --pm-gradient: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    --pm-gradient-accent: linear-gradient(135deg, #8b5cf6 0%, #2563eb 100%);
    --pm-heart: #ef4444;
    --pm-success: #10b981;
    --pm-warning: #f59e0b;
    --pm-danger: #ef4444;
    --pm-glow: 0 0 30px rgba(37, 99, 235, 0.5);
    --pm-text: #e2e8f0;
    --pm-text-muted: #94a3b8;
}

/* ============================================
   GLOBAL
   ============================================ */
html {
    scroll-behavior: smooth;
}

body.pacemaker-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--pm-darker);
    color: var(--pm-text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ============================================
   ECG BACKGROUND
   ============================================ */
.ecg-background-pm {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.08;
    overflow: hidden;
}

.ecg-line-pm {
    position: absolute;
    width: 300%;
    height: 100px;
    top: 50%;
    transform: translateY(-50%);
    animation: ecgScrollPm 8s linear infinite;
}

.ecg-path-pm {
    fill: none;
    stroke: var(--pm-primary);
    stroke-width: 2;
    stroke-linecap: round;
    filter: drop-shadow(0 0 10px var(--pm-primary));
}

@keyframes ecgScrollPm {
    0% { transform: translateY(-50%) translateX(0); }
    100% { transform: translateY(-50%) translateX(-66.66%); }
}

/* ============================================
   FLOATING PULSES
   ============================================ */
.floating-pulses {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.pulse-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--pm-primary);
    border-radius: 50%;
    opacity: 0;
    animation: floatPulseDot linear infinite;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid var(--pm-primary);
    animation: pulseRing 2s ease-out infinite;
}

.pulse-dot:nth-child(1) { left: 10%; animation-duration: 20s; animation-delay: 0s; }
.pulse-dot:nth-child(2) { left: 30%; animation-duration: 25s; animation-delay: 4s; }
.pulse-dot:nth-child(3) { left: 50%; animation-duration: 22s; animation-delay: 8s; }
.pulse-dot:nth-child(4) { left: 70%; animation-duration: 28s; animation-delay: 2s; }
.pulse-dot:nth-child(5) { left: 90%; animation-duration: 24s; animation-delay: 6s; }

@keyframes floatPulseDot {
    0% { bottom: -20px; opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { bottom: 110%; opacity: 0; }
}

@keyframes pulseRing {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(3); opacity: 0; }
}

/* ============================================
   BACK NAVIGATION
   ============================================ */
.back-nav-pm {
    position: fixed;
    top: 30px;
    left: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    text-decoration: none;
    color: var(--pm-text);
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.back-nav-pm:hover {
    transform: translateX(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
    color: var(--pm-secondary);
}

.back-nav-pm i {
    transition: transform 0.3s ease;
}

.back-nav-pm:hover i {
    transform: translateX(-3px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.pm-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #060d1f 0%, #0f172a 50%, #1e293b 100%);
    overflow: hidden;
    padding: 60px 0;
}

.pm-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(37, 99, 235, 0.12) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
}

.pm-hero-waves .pm-wave {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    border: 1px solid rgba(37, 99, 235, 0.15);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pmWave 4s ease-out infinite;
}

.pm-hero-waves .pm-wave:nth-child(2) { animation-delay: 1.3s; }
.pm-hero-waves .pm-wave:nth-child(3) { animation-delay: 2.6s; }

@keyframes pmWave {
    0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0; }
    50% { opacity: 0.4; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

.pm-hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.pm-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.3);
    padding: 10px 20px;
    border-radius: 50px;
    color: var(--pm-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    animation: fadeInUpPm 0.8s ease-out;
}

.pm-hero-badge i {
    animation: heartPulse 1.5s ease-in-out infinite;
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); color: var(--pm-heart); }
}

@keyframes fadeInUpPm {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.pm-hero-title {
    margin-bottom: 10px;
    animation: fadeInUpPm 0.8s ease-out 0.2s backwards;
}

.title-gradient {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #94a3b8 50%, #ffffff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerPm 3s ease-in-out infinite;
    line-height: 1.2;
}

@keyframes shimmerPm {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.pm-hero-subtitle {
    font-size: 1.3rem;
    color: var(--pm-secondary);
    font-weight: 600;
    margin-bottom: 20px;
    animation: fadeInUpPm 0.8s ease-out 0.3s backwards;
}

.pm-hero-desc {
    font-size: 1.05rem;
    color: var(--pm-text-muted);
    line-height: 1.8;
    margin-bottom: 40px;
    animation: fadeInUpPm 0.8s ease-out 0.4s backwards;
}

.pm-hero-stats {
    display: flex;
    gap: 30px;
    animation: fadeInUpPm 0.8s ease-out 0.5s backwards;
}

.pm-stat {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    flex: 1;
}

.pm-stat:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: var(--pm-glow);
}

.pm-stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--pm-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pm-stat-suffix {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--pm-secondary);
    margin-top: -5px;
}

.pm-stat-label {
    font-size: 0.8rem;
    color: var(--pm-text-muted);
    margin-top: 5px;
}

/* Hero Device Visual */
.pm-hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUpPm 1s ease-out 0.6s backwards;
}

.pm-device-visual {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pm-pulse-rings .pm-pulse-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(37, 99, 235, 0.2);
    animation: pmPulseRing 3s ease-out infinite;
}

.pm-pulse-rings .pm-pulse-ring:nth-child(2) { animation-delay: 1s; }
.pm-pulse-rings .pm-pulse-ring:nth-child(3) { animation-delay: 2s; }

@keyframes pmPulseRing {
    0% { transform: scale(0.5); opacity: 0; }
    50% { opacity: 0.5; }
    100% { transform: scale(1.3); opacity: 0; }
}

.pm-heart-icon {
    width: 120px;
    height: 120px;
    background: var(--pm-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 50px rgba(37, 99, 235, 0.4), 0 0 100px rgba(37, 99, 235, 0.2);
    animation: heartBeat 1.5s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.pm-heart-icon i {
    font-size: 3rem;
    color: white;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); box-shadow: 0 0 50px rgba(37, 99, 235, 0.4), 0 0 100px rgba(37, 99, 235, 0.2); }
    15% { transform: scale(1.15); box-shadow: 0 0 60px rgba(37, 99, 235, 0.6), 0 0 120px rgba(37, 99, 235, 0.3); }
    30% { transform: scale(1); }
    45% { transform: scale(1.1); box-shadow: 0 0 55px rgba(37, 99, 235, 0.5), 0 0 110px rgba(37, 99, 235, 0.25); }
}

/* Scroll Indicator */
.pm-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: fadeInUpPm 0.8s ease-out 1s backwards;
}

.pm-mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    position: relative;
}

.pm-mouse-wheel {
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% { top: 8px; opacity: 1; }
    50% { top: 20px; opacity: 0.3; }
}

/* ============================================
   SECTIONS COMMON STYLES
   ============================================ */
.pm-section {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

.pm-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    top: -250px;
    right: -250px;
    pointer-events: none;
}

.pm-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.pm-section-tag {
    display: inline-block;
    background: var(--pm-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.pm-section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
    line-height: 1.2;
}

.pm-section-desc {
    font-size: 1.1rem;
    color: var(--pm-text-muted);
}

/* ============================================
   EXPLANATION CARDS
   ============================================ */
.pm-explanation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pm-explanation-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pm-explanation-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(37, 99, 235, 0.1);
}

.pm-card-icon {
    width: 70px;
    height: 70px;
    background: var(--pm-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: white;
    transition: all 0.4s ease;
}

.pm-explanation-card:hover .pm-card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}

.pm-explanation-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.pm-explanation-card p {
    font-size: 0.95rem;
    color: var(--pm-text-muted);
    line-height: 1.7;
}

/* ============================================
   SYMPTOMS
   ============================================ */
.pm-symptoms {
    background: linear-gradient(180deg, var(--pm-darker) 0%, rgba(15, 23, 42, 0.8) 100%);
}

.pm-symptoms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pm-symptom-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 30px 24px;
    text-align: center;
    transition: all 0.4s ease;
}

.pm-symptom-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.pm-symptom-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05));
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.3rem;
    color: var(--pm-heart);
    transition: all 0.4s ease;
}

.pm-symptom-card:hover .pm-symptom-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(239, 68, 68, 0.1));
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.pm-symptom-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.pm-symptom-card p {
    font-size: 0.85rem;
    color: var(--pm-text-muted);
}

/* ============================================
   TYPES
   ============================================ */
.pm-types-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.pm-type-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.pm-type-card:hover {
    transform: translateY(-6px);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.pm-type-card.featured {
    border-color: rgba(37, 99, 235, 0.3);
    background: rgba(37, 99, 235, 0.05);
}

.pm-type-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--pm-gradient);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
}

.pm-type-header {
    padding: 30px 30px 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.pm-type-icon {
    width: 50px;
    height: 50px;
    background: var(--pm-gradient);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pm-type-number {
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
}

.pm-type-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

.pm-type-body {
    padding: 20px 30px 30px;
}

.pm-type-body p {
    font-size: 0.95rem;
    color: var(--pm-text-muted);
    margin-bottom: 16px;
    line-height: 1.7;
}

.pm-type-detail {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.pm-type-detail i {
    color: var(--pm-success);
    font-size: 0.85rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.pm-type-detail span {
    font-size: 0.85rem;
    color: var(--pm-text-muted);
}

/* ============================================
   PROCEDURE TIMELINE
   ============================================ */
.pm-procedure {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.5) 0%, var(--pm-darker) 100%);
}

.pm-timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding-left: 60px;
}

.pm-timeline::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--pm-primary), var(--pm-secondary));
    opacity: 0.3;
}

.pm-timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding: 24px 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: all 0.4s ease;
}

.pm-timeline-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(37, 99, 235, 0.2);
    transform: translateX(5px);
}

.pm-timeline-marker {
    position: absolute;
    left: -47px;
    top: 24px;
    width: 44px;
    height: 44px;
    background: var(--pm-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
    z-index: 2;
}

.pm-timeline-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.pm-timeline-item p {
    font-size: 0.95rem;
    color: var(--pm-text-muted);
    line-height: 1.7;
}

/* ============================================
   AFTERCARE
   ============================================ */
.pm-aftercare-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.pm-aftercare-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.4s ease;
}

.pm-aftercare-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.pm-aftercare-card.warning {
    border-color: rgba(245, 158, 11, 0.2);
}

.pm-aftercare-card.warning:hover {
    border-color: rgba(245, 158, 11, 0.4);
}

.pm-aftercare-card.success {
    border-color: rgba(16, 185, 129, 0.2);
}

.pm-aftercare-card.success:hover {
    border-color: rgba(16, 185, 129, 0.4);
}

.pm-aftercare-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.pm-aftercare-card.warning .pm-aftercare-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--pm-warning);
}

.pm-aftercare-card.success .pm-aftercare-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--pm-success);
}

.pm-aftercare-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.pm-aftercare-card p {
    font-size: 0.9rem;
    color: var(--pm-text-muted);
    line-height: 1.7;
}

/* ============================================
   DAILY LIFE
   ============================================ */
.pm-daily-life {
    background: linear-gradient(180deg, var(--pm-darker) 0%, rgba(15, 23, 42, 0.8) 100%);
}

.pm-daily-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 24px;
}

.pm-daily-column {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.pm-daily-column:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.pm-daily-header {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pm-daily-column.allowed .pm-daily-header {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.pm-daily-column.allowed .pm-daily-header i { color: var(--pm-success); }

.pm-daily-column.caution .pm-daily-header {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

.pm-daily-column.caution .pm-daily-header i { color: var(--pm-warning); }

.pm-daily-column.forbidden .pm-daily-header {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05));
    border-bottom: 1px solid rgba(239, 68, 68, 0.2);
}

.pm-daily-column.forbidden .pm-daily-header i { color: var(--pm-danger); }

.pm-daily-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

.pm-daily-header i {
    font-size: 1.2rem;
}

.pm-daily-items {
    padding: 20px 24px;
}

.pm-daily-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.pm-daily-item:last-child {
    border-bottom: none;
}

.pm-daily-item:hover {
    padding-left: 8px;
}

.pm-daily-item i {
    font-size: 1rem;
    color: var(--pm-text-muted);
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.pm-daily-item span {
    font-size: 0.9rem;
    color: var(--pm-text-muted);
}

/* ============================================
   FOLLOW-UP
   ============================================ */
.pm-followup-timeline {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pm-followup-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: all 0.4s ease;
}

.pm-followup-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(37, 99, 235, 0.2);
    transform: translateX(5px);
}

.pm-followup-item.highlight {
    border-color: rgba(37, 99, 235, 0.3);
    background: rgba(37, 99, 235, 0.05);
}

.pm-followup-period {
    background: var(--pm-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.2rem;
    font-weight: 800;
    min-width: 80px;
    text-align: center;
    flex-shrink: 0;
}

.pm-followup-item.highlight .pm-followup-period {
    -webkit-text-fill-color: unset;
    background: var(--pm-gradient);
    background-clip: unset;
    -webkit-background-clip: unset;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.pm-followup-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
}

.pm-followup-content p {
    font-size: 0.9rem;
    color: var(--pm-text-muted);
    line-height: 1.7;
}

.pm-followup-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    color: var(--pm-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.pm-followup-link:hover {
    gap: 12px;
    color: white;
}

/* ============================================
   FAQ
   ============================================ */
.pm-faq {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.5) 0%, var(--pm-darker) 100%);
}

.pm-faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pm-faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.pm-faq-item:hover {
    border-color: rgba(37, 99, 235, 0.2);
}

.pm-faq-question {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pm-faq-question:hover {
    background: rgba(255, 255, 255, 0.03);
}

.pm-faq-icon {
    width: 42px;
    height: 42px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pm-primary);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.pm-faq-question h4 {
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    color: white;
}

.pm-faq-arrow {
    color: var(--pm-text-muted);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.pm-faq-item.active .pm-faq-arrow {
    transform: rotate(180deg);
    color: var(--pm-primary);
}

.pm-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.pm-faq-item.active .pm-faq-answer {
    max-height: 500px;
    padding: 0 24px 24px 82px;
}

.pm-faq-answer p {
    font-size: 0.95rem;
    color: var(--pm-text-muted);
    line-height: 1.8;
    margin-bottom: 8px;
}

.pm-faq-answer p:last-child {
    margin-bottom: 0;
}

/* ============================================
   CTA SECTION
   ============================================ */
.pm-cta {
    padding: 80px 0;
}

.pm-cta-content {
    text-align: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(6, 182, 212, 0.05));
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 24px;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}

.pm-cta-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.pm-cta-icon {
    width: 70px;
    height: 70px;
    background: var(--pm-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 0 40px rgba(37, 99, 235, 0.4);
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 40px rgba(37, 99, 235, 0.4); }
    50% { box-shadow: 0 0 60px rgba(37, 99, 235, 0.6), 0 0 100px rgba(37, 99, 235, 0.2); }
}

.pm-cta-content h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    position: relative;
}

.pm-cta-content p {
    font-size: 1.05rem;
    color: var(--pm-text-muted);
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.7;
    position: relative;
}

.pm-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--pm-gradient);
    color: white;
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.4s ease;
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4);
    position: relative;
}

.pm-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.5);
}

/* ============================================
   FOOTER
   ============================================ */
.pm-footer {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 0;
    position: relative;
    z-index: 2;
}

.pm-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pm-footer-content p {
    color: var(--pm-text-muted);
    font-size: 0.85rem;
}

.pm-footer-webduo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pm-footer-webduo span {
    color: var(--pm-text-muted);
    font-size: 0.85rem;
}

.pm-webduo-link {
    display: flex;
    align-items: center;
}

.pm-webduo-logo {
    height: 25px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.pm-webduo-logo:hover {
    opacity: 1;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .pm-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .pm-hero-right {
        display: none;
    }

    .pm-hero-stats {
        justify-content: center;
    }

    .title-gradient {
        font-size: 2.8rem;
    }

    .pm-explanation-grid {
        grid-template-columns: 1fr;
    }

    .pm-symptoms-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pm-types-grid {
        grid-template-columns: 1fr;
    }

    .pm-daily-grid {
        grid-template-columns: 1fr;
    }

    .pm-aftercare-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container-pm {
        padding: 0 20px;
    }

    .pm-section {
        padding: 60px 0;
    }

    .pm-section-title {
        font-size: 1.8rem;
    }

    .title-gradient {
        font-size: 2.2rem;
    }

    .pm-hero-stats {
        flex-direction: column;
        gap: 12px;
    }

    .pm-hero-desc {
        font-size: 0.95rem;
    }

    .pm-symptoms-grid {
        grid-template-columns: 1fr;
    }

    .pm-timeline {
        padding-left: 50px;
    }

    .pm-timeline-marker {
        left: -40px;
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }

    .back-nav-pm {
        top: 15px;
        left: 15px;
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .pm-footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .pm-faq-item.active .pm-faq-answer {
        padding-left: 24px;
    }

    .pm-cta-content {
        padding: 40px 24px;
    }

    .pm-cta-content h2 {
        font-size: 1.4rem;
    }
}
