/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

/* Navigation */
.navbar {
    background-color: #223a64;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.navbar li a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.navbar li a:hover {
    background-color: #3457a6;
}

/* Homepage Hero Image */
.image-showcase {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.image-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 60px 40px;
    text-align: center;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    max-width: 600px;
    width: 90%;
}

.image-overlay h3 {
    font-size: 3rem;
    margin: 0 0 20px 0;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.image-overlay p {
    font-size: 1.3rem;
    margin: 0 0 30px 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.image-overlay .cta-button {
    display: inline-block;
    background: #223a64;
    color: white;
    padding: 15px 35px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.image-overlay .cta-button:hover {
    background: #3457a6;
    transform: translateY(-2px);
}

.image-credits {
    position: absolute;
    bottom: 20px;
    right: 20px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
}

.image-credits p {
    font-size: 0.8rem;
    color: #333;
    margin: 0;
}

.image-credits a {
    color: #223a64;
    text-decoration: none;
}

/* Hero Section */
.hero-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    text-align: center;
    margin-bottom: 40px; /* Added bottom margin */
}

.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto 40px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h2 {
    color: #223a64;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background: #223a64;
    color: white;
    padding: 15px 35px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #3457a6;
    transform: translateY(-2px);
}

/* How It Works Section */
.how-it-works {
    background: white;
    padding: 80px 20px;
    max-width: 1000px;
    margin: 80px auto; /* Added top and bottom margin for spacing */
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-radius: 15px;
}

.how-it-works h2 {
    font-size: 2.5rem;
    color: #223a64;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.how-it-works-content {
    max-width: 800px;
    margin: 0 auto;
}

.how-it-works-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
    text-align: center;
}

/* Camera Page Styles */
.webcam-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
}

.camera-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.instructions-section {
    background: white;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.camera-section h1 {
    color: #223a64;
    margin-bottom: 10px;
}

.camera-section h2 {
    color: #666;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.exercise-buttons {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.exercise-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #3498db;
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.exercise-btn:hover {
    background-color: #2980b9;
}

.exercise-btn.active {
    background-color: #2980b9;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

#startBtn {
    padding: 12px 24px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 20px 0;
    font-size: 16px;
    transition: all 0.3s ease;
}

#startBtn:hover:not(:disabled) {
    background-color: #0056b3;
    transform: translateY(-2px);
}

#startBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#canvas {
    width: 400px;
    height: 400px;
    border-radius: 8px;
    margin: 10px 0;
    background: #f8f9fa;
}

/* Camera feedback styles */
.camera-active-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.predictions-container {
    width: 100%;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.reference-image {
    width: 100%;
    text-align: center;
}

.reference-image img {
    max-width: 300px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.reference-image h3 {
    color: #1976d2;
    font-size: 16px;
    margin: 10px 0;
}

.good-form {
    color: #388e3c;
    background: #e8f5e9;
    padding: 8px;
    border-radius: 4px;
    margin: 5px 0;
}

.bad-form {
    color: #d32f2f;
    background: #ffebee;
    padding: 8px;
    border-radius: 4px;
    margin: 5px 0;
}

/* Instructions */
.instructions-detailed {
    max-width: 100%;
}

.instruction-step {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    margin-bottom: 20px;
    align-items: center;
}

.instruction-step img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.step-content h4 {
    color: #223a64;
    margin-bottom: 10px;
}

.step-content ul {
    list-style: none;
    padding: 0;
}

.step-content li {
    margin: 8px 0;
    padding-left: 20px;
    position: relative;
}

.step-content li:before {
    content: "•";
    color: #223a64;
    position: absolute;
    left: 0;
}

.instruction-credits {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.instruction-credits a {
    color: #3498db;
    text-decoration: none;
}

.start-instruction {
    text-align: center;
    padding: 15px;
    margin: 20px 0;
    background: #e3f2fd;
    border-radius: 8px;
}

.start-instruction p {
    color: #1976d2;
    font-size: 16px;
    margin: 0;
    font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .webcam-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px;
    }

    .image-showcase {
        height: 70vh;
    }

    .image-overlay {
        padding: 40px 20px;
    }

    .image-overlay h3 {
        font-size: 2rem;
    }

    .features-container {
        grid-template-columns: 1fr;
    }

    #canvas {
        width: 100%;
        max-width: 400px;
        height: auto;
    }

    .instruction-step {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .exercise-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Exercise Library Page Styles */
.exercise-library {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.exercise-library h1 {
    color: #223a64;
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
}

.exercise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.exercise-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.exercise-item:hover {
    transform: translateY(-5px);
}

.exercise-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.exercise-content {
    padding: 20px;
}

.exercise-content h2 {
    color: #223a64;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.exercise-content p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.exercise-item .cta-button {
    padding: 10px 20px;
    font-size: 1rem;
    margin-top: 10px;
}

/* Exercise Details Styles */
.exercise-detail {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.exercise-detail h1 {
    color: #223a64;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5rem;
}

.exercise-overview {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-bottom: 40px;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.exercise-image img {
    width: 100%;
    border-radius: 8px;
}

.exercise-info h2 {
    color: #223a64;
    margin-bottom: 15px;
}

.exercise-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.exercise-info ul {
    list-style: none;
    padding: 0;
}

.exercise-info li {
    color: #555;
    padding: 5px 0;
    position: relative;
    padding-left: 25px;
}

.exercise-info li:before {
    content: "✓";
    color: #28a745;
    position: absolute;
    left: 0;
}

/* Center text in instruction steps when no image */
.instruction-step:not(:has(img)) {
    grid-template-columns: 1fr;
    text-align: center;
}

.instruction-step:not(:has(img)) .step-content {
    text-align: center;
}

/* How It Works - Add boxes */
.how-it-works-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.how-it-works-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.how-it-works-box:hover {
    transform: translateY(-5px);
}

.how-it-works-box .step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: #223a64;
    color: white;
    border-radius: 50%;
    line-height: 50px;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.how-it-works-box h3 {
    color: #223a64;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.how-it-works-box p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* About Page Styles */
.about-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.about-container h1 {
    color: #223a64;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5rem;
}

.about-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.about-content h2 {
    color: #223a64;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.about-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-content ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.about-content li {
    color: #555;
    padding: 8px 0;
    position: relative;
    padding-left: 30px;
    font-size: 1.1rem;
}

.about-content li:before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 8px;
}

/* Contact Page Styles */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
}

.contact-container h1 {
    color: #223a64;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5rem;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #223a64;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #223a64;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.submit-btn {
    background: #223a64;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background: #3457a6;
}

/* Mobile responsive updates */
@media (max-width: 768px) {
    .exercise-grid {
        grid-template-columns: 1fr;
    }

    .exercise-overview {
        grid-template-columns: 1fr;
    }

    .how-it-works-content {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 25px;
    }
}
/* Exercise Library Specific Styles */
.section-description {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.exercise-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.category-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    padding: 30px;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card h2 {
    color: #223a64;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.exercise-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.exercise-list li {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: background 0.3s ease;
}

.exercise-list li:hover {
    background: #e9ecef;
}

.exercise-list li:last-child {
    margin-bottom: 0;
}

.exercise-list h3 {
    color: #223a64;
    font-size: 1.3rem;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.exercise-list p {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 15px 0;
}

.exercise-list .exercise-btn {
    display: inline-block;
    background: #223a64;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.exercise-list .exercise-btn:hover {
    background: #3457a6;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(34, 58, 100, 0.3);
}

/* Footer */
footer {
    background: #223a64;
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
}

footer p {
    margin: 0;
    font-size: 1rem;
}

/* Mobile responsive for exercises page */
@media (max-width: 768px) {
    .exercise-categories {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-card {
        padding: 20px;
    }
    
    .category-card h2 {
        font-size: 1.5rem;
    }
    
    .exercise-list li {
        padding: 15px;
    }
}
/* Update the How It Works section */
.how-it-works {
    background: white;
    padding: 80px 20px;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* Added box shadow */
    border-radius: 15px; /* Added border radius for better look */
}

.how-it-works h2 {
    font-size: 2.5rem;
    color: #223a64;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

/* Bio Section */
.bio-section {
    max-width: 800px;
    margin: 80px auto; /* Increased margin for more spacing */
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
}

.bio-section h2 {
    font-size: 2rem;
    color: #223a64;
    margin-bottom: 20px;
    text-align: center;
}

.bio-section p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-align: center; /* Center paragraph text */
}

/* Center the list items while keeping the checkmarks aligned */
.bio-section ul {
    list-style: none;
    margin: 30px 0;
    display: inline-block; /* Center the list */
    text-align: left; /* Keep list items left-aligned within the centered block */
}

.bio-section li {
    font-size: 1.1rem;
    color: #555;
    padding: 8px 0;
    position: relative;
    padding-left: 30px;
}

.bio-section li:before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 8px;
}

/* Enhanced How It Works boxes with better shadows */
.how-it-works-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12); /* Enhanced shadow */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.how-it-works-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.18); /* Deeper shadow on hover */
}

.how-it-works-box .step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: #223a64;
    color: white;
    border-radius: 50%;
    line-height: 50px;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(34, 58, 100, 0.3); /* Enhanced shadow for numbers */
}

/* Style for Rehab Buddy title in image-showcase */
.image-showcase h1 {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    z-index: 10;
    margin: 0;
    letter-spacing: 2px;
    text-align: center;
}

/* Alternative: If you want it centered in the middle */
.image-showcase h1.centered {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 4rem;
    font-weight: 700;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.8);
    z-index: 10;
    margin: 0;
    letter-spacing: 3px;
    text-align: center;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .image-showcase h1 {
        font-size: 2.2rem;
        top: 20px;
        letter-spacing: 1px;
    }
    
    .image-showcase h1.centered {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }
}

/* About Arthritis Foundation Section */
.about-arthritis-org {
    max-width: 1000px;
    margin: 80px auto;
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.about-arthritis-org h2 {
    font-size: 2.2rem;
    color: #223a64;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
}

.about-arthritis-org > p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: center;
}

.about-arthritis-org a {
    color: #223a64;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.about-arthritis-org a:hover {
    color: #3457a6;
    text-decoration: underline;
}

.foundation-mission,
.foundation-services {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    border-left: 4px solid #223a64;
}

.foundation-mission h3,
.foundation-services h3 {
    font-size: 1.5rem;
    color: #223a64;
    margin-bottom: 15px;
    font-weight: 600;
}

.foundation-mission p,
.foundation-services p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

.foundation-services ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.foundation-services li {
    font-size: 1.1rem;
    color: #555;
    padding: 8px 0;
    position: relative;
    padding-left: 30px;
    line-height: 1.6;
}

.foundation-services li:before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 8px;
    font-size: 1.2rem;
}

.foundation-link {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: #e3f2fd;
    border-radius: 10px;
    font-size: 1.1rem;
}

.foundation-link a {
    font-weight: 600;
    color: #1976d2;
}

.foundation-link a:hover {
    color: #0d47a1;
}

/* Mobile responsive for about section */
@media (max-width: 768px) {
    .about-arthritis-org {
        margin: 40px 20px;
        padding: 25px;
    }
    
    .about-arthritis-org h2 {
        font-size: 1.8rem;
    }
    
    .foundation-mission,
    .foundation-services {
        padding: 20px;
    }
}
/* Logo Styles */
.navbar {
    background-color: #223a64;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand img {
    height: 40px;
    width: auto;
    border-radius: 4px;
}

.navbar-brand span {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}

/* Bio Section with Foundation Logo */
.bio-section {
    max-width: 800px;
    margin: 80px auto;
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
}

.bio-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.bio-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Foundation Section with Logo */
.about-arthritis-org {
    max-width: 1000px;
    margin: 80px auto;
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.foundation-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.foundation-logo {
    width: 300px;
    height: 100px;
    margin-bottom: 20px;
    border-radius: 10px;
    object-fit: cover;
    
}

.foundation-header h2 {
    font-size: 2.2rem;
    color: #223a64;
    margin: 0;
    font-weight: 700;
}

/* Logo placeholder styles when no image is available */
.logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #223a64, #3457a6);
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    text-align: center;
    border-radius: 8px;
}

.bio-logo.logo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    font-size: 1rem;
}

.foundation-logo.logo-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    font-size: 1.1rem;
}

.navbar-brand .logo-placeholder {
    height: 40px;
    width: 40px;
    font-size: 0.8rem;
}

/* Mobile responsive for logos */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .navbar-brand {
        order: -1;
    }
    
    .bio-logo {
        width: 60px;
        height: 60px;
    }
    
    .foundation-logo {
        width: 80px;
        height: 80px;
    }
}
/* Daily Life Application Cards */
.positioning-card,
.daily-life-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 15px 0;
    border-left: 4px solid #223a64;
}

.positioning-card h3,
.daily-life-card h3 {
    color: #223a64;
    font-size: 1.2rem;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.positioning-card p {
    color: #555;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

.daily-life-card p {
    color: #555;
    font-size: 1rem;
    margin: 0 0 15px 0;
}

.applications-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.applications-list li {
    color: #666;
    font-size: 0.95rem;
    padding: 5px 0;
    position: relative;
    padding-left: 25px;
}

.applications-list li:before {
    content: "•";
    color: #28a745;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.benefits {
    background: #e8f5e9;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #2e7d32;
    line-height: 1.4;
}

.benefits strong {
    color: #1b5e20;
}

/* Prediction items styling */
.prediction-item {
    padding: 8px 12px;
    margin: 5px 0;
    border-radius: 6px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prediction-item.good-form {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 3px solid #4caf50;
}

.prediction-item.bad-form {
    background: #ffebee;
    color: #c62828;
    border-left: 3px solid #f44336;
}

/* Reference image styling */
.reference-image {
    text-align: center;
    margin: 20px 0;
}

.reference-image img {
    max-width: 100%;
    width: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.reference-image h4 {
    color: #223a64;
    font-size: 1.1rem;
    margin: 15px 0 5px 0;
    font-weight: 600;
}

/* Camera active container */
.camera-active-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 100%;
}

/* Navbar brand image fix */
.navbar-brand img {
    height: 40px;
    width: auto;
    border-radius: 4px;
    margin-right: 10px;
}

/* Update predictions container */
.predictions-container {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #223a64;
}

.predictions-container h3 {
    color: #223a64;
    font-size: 1.2rem;
    margin: 0 0 15px 0;
    font-weight: 600;
}

/* Instructions section improvements */
.instructions-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    max-height: 80vh;
    overflow-y: auto;
}

/* Start instruction styling */
.start-instruction {
    text-align: center;
    padding: 15px;
    margin: 20px 0;
    background: #e3f2fd;
    border-radius: 8px;
    border-left: 4px solid #1976d2;
}

.start-instruction p {
    color: #1976d2;
    font-size: 16px;
    margin: 0;
    font-weight: 500;
}

/* Instruction alert styling */
.instruction-alert {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    color: #856404;
}

.instruction-alert p {
    margin: 5px 0;
}

/* Footer styling */
footer {
    background: #223a64;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

footer p {
    margin: 0;
    font-size: 1rem;
}

/* Mobile responsive updates for camera page */
@media (max-width: 768px) {
    .webcam-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px;
    }

    .positioning-card,
    .daily-life-card {
        padding: 15px;
        margin: 10px 0;
    }

    .positioning-card h3,
    .daily-life-card h3 {
        font-size: 1.1rem;
    }

    .camera-section {
        padding: 20px;
    }

    .instructions-section {
        padding: 20px;
        max-height: none;
    }

    .reference-image img {
        width: 250px;
    }

    .exercise-buttons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .exercise-btn {
        font-size: 12px;
        padding: 8px 16px;
    }

}
