/* General Styles */
:root {
    --primary-color: #0d6efd;
    --danger-color: #dc3545;
    --success-color: #198754;
    --dark-color: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(13, 110, 253, 0.9), rgba(13, 110, 253, 0.7)),
                url('../images/hero-bg.jpg') center/cover;
    color: white;
    padding: 100px 0;
    margin-bottom: 50px;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta-buttons {
    margin-top: 30px;
}

.cta-buttons .btn {
    margin: 0 10px;
    padding: 12px 30px;
}

/* Pulse Animation for Emergency Button */
.pulse-button {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section h2 {
    text-align: center;
    margin-bottom: 50px;
}

/* Emergency Panel */
.demo-emergency-panel {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.emergency-types {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.emergency-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border: none;
    border-radius: 10px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.emergency-type:hover {
    background: var(--primary-color);
    color: white;
}

.emergency-type i {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Training Cards */
.training-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

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

.card-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.card-icon i {
    font-size: 2rem;
}

/* Stats Section */
.stats {
    display: flex;
    justify-content: space-around;
    margin: 40px 0;
}

.stat-item {
    text-align: center;
}

.stat-item h4 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Feature List */
.feature-list {
    margin-top: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.feature-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 20px;
}

/* Footer */
.footer {
    padding: 40px 0;
}

.social-links a {
    color: white;
    margin-left: 20px;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Emergency Section */
.emergency-header {
    background: linear-gradient(45deg, var(--danger-color), #e35d6a);
}

.emergency-type {
    background: white;
    border: none;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 100%;
    cursor: pointer;
}

.emergency-type:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.emergency-type i {
    color: var(--danger-color);
}

.emergency-type h3 {
    margin: 1rem 0;
    color: var(--dark);
}

.emergency-type p {
    color: var(--secondary-color);
    margin-bottom: 0;
}

/* Page Navigation */
#homePage,
#emergencyPage {
    min-height: 100vh;
    transition: opacity 0.3s ease;
}

#emergencyPage {
    background-color: #fff;
}

#emergencyPage .emergency-header {
    background: linear-gradient(45deg, var(--danger-color), #e35d6a);
}

/* Remove modal styles since we're using page navigation */
.modal-fullscreen {
    display: none;
}

/* Page Transitions */
.page-section {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.page-section.fade-out {
    opacity: 0;
}

/* Module Pages */
.module-content {
    padding: 2rem 0;
    min-height: calc(100vh - 200px); /* Account for navbar and footer */
}

.module-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.module-header h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.module-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.module-nav {
    position: sticky;
    top: 2rem;
}

.module-nav .card {
    border: none;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.module-nav .nav-link {
    color: var(--dark-color);
    padding: 0.8rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.module-nav .nav-link:hover {
    background-color: rgba(13, 110, 253, 0.1);
}

.module-nav .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.module-section {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.module-section.active {
    display: block;
    opacity: 1;
}

.module-section h2 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.technique-steps {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.technique-steps h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.technique-steps ol > li {
    margin-bottom: 1.5rem;
}

.technique-steps h5 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.video-demo {
    margin: 2rem 0;
}

.video-demo img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.assessment {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.module-navigation {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.progress {
    height: 0.5rem;
    margin: 1rem 0;
    background-color: #e9ecef;
}

.progress-bar {
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

/* Quiz Styles */
.quiz-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.form-check {
    margin-bottom: 1rem;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.alert-info {
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #856404;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

/* Card Styles */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .emergency-types {
        flex-direction: column;
    }

    .stats {
        flex-direction: column;
    }

    .stat-item {
        margin-bottom: 20px;
    }
}
