/* How It Works Page Styles */

.page-content {
    margin-top: 70px;
}

.page-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

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

.page-hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 20px;
    opacity: 0.9;
}

.section {
    padding: 80px 20px;
}

.section:nth-child(even) {
    background: #f8f9fa;
}

.section h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    color: #1a1a1a;
}

/* Sensor Modules - SVG Roadmap */
.roadmap-container {
    position: relative;
    padding: 40px 0;
    overflow: visible;
}

.roadmap-svg {
    width: 100%;
    height: auto;
    max-width: 1200px;
    margin: 0 auto;
    display: block;
}



/* Emergency Protocol */
.protocol-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.signal-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.signal-step {
    text-align: center;
    padding: 20px;
}

.step-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}

.signal-step h4 {
    margin: 10px 0 5px;
    color: #333;
}

.signal-step p {
    color: #666;
    font-size: 14px;
}

.arrow {
    font-size: 36px;
    color: #0077c5;
    margin: 0 20px;
}

.protocol-details h3 {
    margin-bottom: 20px;
    color: #333;
}

.protocol-details ul {
    list-style: none;
    padding: 0;
}

.protocol-details li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
}

.protocol-details li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #0077c5;
    font-weight: bold;
}

/* Weekly Heartbeats */
.heartbeat-info {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
}

.heartbeat-visual {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.heartbeat-pulse {
    width: 20px;
    height: 60px;
    background: #FF6B6B;
    border-radius: 10px;
    animation: pulse-animation 1.5s ease-in-out infinite;
}

.heartbeat-pulse:nth-child(2) {
    height: 80px;
    animation-delay: 0.2s;
}

.heartbeat-pulse:nth-child(3) {
    height: 40px;
    animation-delay: 0.4s;
}

@keyframes pulse-animation {
    0%, 100% {
        transform: scaleY(0.5);
        opacity: 0.5;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

.data-points {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.data-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f0f4f8;
    border-radius: 10px;
}

.data-icon {
    font-size: 24px;
}

/* Data Pathways */
.pathways-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.pathway-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.pathway-card:hover {
    transform: translateY(-5px);
}

.pathway-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 20px;
}

.pathway-card h3 {
    margin-bottom: 15px;
    color: #333;
}

.pathway-card p {
    color: #666;
    line-height: 1.6;
}

/* Installation */
.install-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: center;
}

.install-steps {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.install-step {
    text-align: center;
    position: relative;
}

.step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background: #0077c5;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.install-step .step-icon {
    font-size: 64px;
    display: block;
    margin-bottom: 15px;
}

.install-step h4 {
    margin: 10px 0 5px;
    color: #333;
}

.install-step p {
    color: #666;
    font-size: 14px;
}

.install-benefits h3 {
    margin-bottom: 20px;
    color: #333;
}

.install-benefits ul {
    list-style: none;
    padding: 0;
}

.install-benefits li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
}

.install-benefits li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
    font-size: 20px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .roadmap-item.top-left {
        left: 10%;
    }
    
    .roadmap-item.top-right {
        right: 10%;
    }
}

@media (max-width: 968px) {
    /* Roadmap responsive */
    .roadmap-timeline {
        min-height: 900px;
    }
    
    .roadmap-item {
        width: 280px;
    }
    
    .roadmap-item.bottom-center {
        bottom: 0;
    }
    
    .roadmap-item.top-left {
        left: 50%;
        top: 0;
        transform: translateX(-50%);
    }
    
    .roadmap-item.top-right {
        left: 50%;
        right: auto;
        top: 280px;
        transform: translateX(-50%);
    }
    
    .fork-left-up,
    .fork-right-up {
        display: none;
    }
    
    .road-fork-up::after {
        content: '';
        position: absolute;
        left: -3px;
        bottom: 0;
        width: 6px;
        height: 550px;
        background: #333;
    }

@media (max-width: 968px) {
    .protocol-content,
    .heartbeat-info,
    .install-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .signal-flow {
        flex-direction: column;
    }
    
    .arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    
    .install-steps {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 36px;
    }
    
    .section h2 {
        font-size: 28px;
    }
    
    .sensors-grid,
    .pathways-grid {
        grid-template-columns: 1fr;
    }
}