/* Exercise Catalog Styles - Comprehensive Consolidated Version */

/* ===========================================
   CATALOG INTRODUCTION & BASE STYLES
   =========================================== */

.catalog-intro {
    background: #fbfaf4;
    border: 1px solid #e4e3d4;
    border-radius: 8px;
    padding: 24px;
    margin: 24px 0 32px;
}

.catalog-intro p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #091717;
}

.catalog-features,
.catalog-difference {
    margin: 24px 0;
}

.catalog-features h3,
.catalog-difference h3 {
    color: #3bc0b8;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.catalog-features ul,
.catalog-difference ul {
    padding-left: 24px;
    margin: 0;
}

.catalog-features li,
.catalog-difference li {
    margin-bottom: 10px;
    line-height: 1.5;
}

/* Detailed catalog information styling */
.detailed-catalog-info {
    margin-bottom: 3rem;
}

.catalog-section {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.catalog-section h2 {
    color: #2a7d7d;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.catalog-section h3 {
    color: #333;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.catalog-section ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.catalog-section li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.tip-box, .warning-box, .note-box {
    padding: 1rem;
    border-radius: 6px;
    margin: 1.5rem 0;
}

.tip-box {
    background-color: #e1f5fe;
    border-left: 4px solid #03a9f4;
}

.warning-box {
    background-color: #fff8e1;
    border-left: 4px solid #ffc107;
}

.note-box {
    background-color: #f1f8e9;
    border-left: 4px solid #8bc34a;
}

.ability-levels-breakdown {
    margin: 32px 0;
}

.ability-levels-breakdown h3 {
    color: #3bc0b8;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.level-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.level-card {
    background: white;
    border: 1px solid #e4e3d4;
    border-radius: 8px;
    overflow: hidden;
}

.level-header {
    background: #3bc0b8;
    color: white;
    padding: 12px 16px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bpm {
    font-size: 0.8rem;
    opacity: 0.8;
}

.level-card p {
    padding: 16px;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.catalog-closing {
    font-style: italic;
    font-weight: 500;
    text-align: center;
    margin-top: 32px;
}

/* ===========================================
   CATALOG INTRODUCTION (FROM catalog-intro.css)
   =========================================== */

.catalog-introduction {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background-color: #f8fcff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.catalog-introduction p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #2c3e50;
}

.catalog-introduction ul {
    padding-left: 1.5rem;
    margin: 1.2rem 0;
}

.catalog-introduction ul li {
    margin-bottom: 0.5rem;
    list-style-type: circle;
}

.benefits-highlight {
    margin: 1.5rem 0;
    padding: 1.2rem;
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
    border-radius: 4px;
}

.benefits-highlight h3 {
    margin-top: 0;
    color: #0d47a1;
    font-size: 1.3rem;
}

.benefits-highlight ul {
    padding-left: 1.2rem;
}

.benefits-highlight li strong {
    color: #0d47a1;
}

/* Ability Levels Section */
.ability-levels {
    margin-top: 2rem;
}

.ability-levels h3 {
    color: #333;
    text-align: center;
    margin-bottom: 1.5rem;
}

.level-card.level-1 {
    border-top-color: #4caf50; /* Green */
    background-color: #f1f8e9;
}

.level-card.level-2 {
    border-top-color: #8bc34a; /* Light Green */
    background-color: #f9fbe7;
}

.level-card.level-3 {
    border-top-color: #ffc107; /* Amber */
    background-color: #fffde7;
}

.level-card.level-4 {
    border-top-color: #ff9800; /* Orange */
    background-color: #fff3e0;
}

.level-card.level-5 {
    border-top-color: #f44336; /* Red */
    background-color: #ffebee;
}

/* Browse By Section Styles */
.browse-by-section {
    margin: 3rem 0 2rem;
}

.browse-by-section h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

.browse-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

.browse-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}

.browse-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.browse-icon {
    font-size: 1.8rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e3f2fd;
    border-radius: 50%;
    margin-bottom: 1rem;
    color: #1976d2;
    font-weight: bold;
}

.browse-option h3 {
    margin: 0 0 0.5rem;
    color: #1976d2;
    font-size: 1.2rem;
}

.browse-option p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

/* ===========================================
   TEMPLATE-SPECIFIC STYLES (FROM EMBEDDED CSS)
   =========================================== */

/* Category Section Styles (Main Template Pattern) */
.category-section {
    margin-bottom: 3rem;
}

.category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.category-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.category-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #333;
    text-align: center;
}

.category-description {
    color: #666;
    flex-grow: 1;
    margin-bottom: 1.25rem;
    text-align: center;
    line-height: 1.5;
}

.category-link {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    background-color: #3bc0b8;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.2s ease;
    margin-top: auto;
}

.category-link:hover {
    background-color: #32a69f;
    text-decoration: none;
    color: white;
}

.intro-section {
    background-color: #f5f7f9;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2.5rem;
}

.intro-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.intro-section p:last-child {
    margin-bottom: 0;
}

.section-header {
    margin-bottom: 1.5rem;
}

.section-header h2 {
    color: #333;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section-description {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

/* Missing Info and Utility Classes */
.missing-info {
    color: #6c757d;
    font-style: italic;
}

.no-results-message {
    text-align: center;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 2rem 0;
}

/* ===========================================
   EXERCISE CATEGORY TEMPLATE STYLES
   =========================================== */

.category-section.benefits,
.category-section.guidelines,
.category-section.tags,
.category-section.exercises {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background-color: #fbfbf7;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filter-controls {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f1f1e6;
    border-radius: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

/* ===========================================
   PURPOSE-SPECIFIC EXERCISE CARD STYLES
   =========================================== */

/* Purpose intro section */
.purpose-intro {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2.5rem;
    border-left: 5px solid #3bc0b8;
}

/* Purpose benefits section */
.purpose-benefits {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 2.5rem;
}

.purpose-benefits h2 {
    color: #333;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.purpose-benefits h2::before {
    content: "✅";
    font-size: 1.5rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    margin-bottom: 0.75rem;
    padding-left: 2rem;
    position: relative;
    line-height: 1.6;
}

.benefits-list li::before {
    content: "💪";
    position: absolute;
    left: 0;
    font-size: 1.1rem;
}

/* Exercise filters section */
.exercise-filters {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.exercise-filters h3 {
    margin-bottom: 1rem;
    color: #333;
}

.exercise-filters .filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
}

.filter-select {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
}

/* Enhanced exercise grid for purpose pages */
.exercises-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Enhanced exercise card styles for purpose pages */
.exercise-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.exercise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.exercise-card-header {
    background: linear-gradient(135deg, #3bc0b8 0%, #2aa09a 100%);
    color: white;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.exercise-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    flex-grow: 1;
    margin-right: 1rem;
}

.level-badge {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Level-specific color gradients for exercise card headers */
.exercise-card-header.level-1 {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
}

.exercise-card-header.level-2 {
    background: linear-gradient(135deg, #8BC34A 0%, #558B2F 100%);
}

.exercise-card-header.level-3 {
    background: linear-gradient(135deg, #FFC107 0%, #FF8F00 100%);
}

.exercise-card-header.level-4 {
    background: linear-gradient(135deg, #FF9800 0%, #E65100 100%);
}

.exercise-card-header.level-5 {
    background: linear-gradient(135deg, #F44336 0%, #C62828 100%);
}

/* Exercise card media section */
.exercise-card-media {
    position: relative;
    height: 200px;
    background-color: #f5f5f5;
    overflow: hidden;
}

.exercise-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.video-link:hover .video-overlay {
    background-color: rgba(59, 192, 184, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Exercise card summary section */
.exercise-card-summary {
    padding: 1.25rem;
}

.exercise-card-summary p {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.exercise-card-summary p:last-child {
    margin-bottom: 0;
}

.exercise-card-summary strong {
    color: #333;
    font-weight: 600;
}

/* Exercise card actions section */
.exercise-card-actions {
    padding: 0 1.25rem 1.25rem;
    display: flex;
    gap: 0.75rem;
}

.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: #3bc0b8;
    color: white;
    flex: 1;
}

.btn-primary:hover {
    background-color: #32a69f;
    text-decoration: none;
    color: white;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    flex: 0 0 auto;
}

.btn-secondary:hover {
    background-color: #545b62;
    text-decoration: none;
    color: white;
}

/* Guidelines section */
.guidelines-section {
    margin-top: 3rem;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.guidelines-section h2 {
    margin-bottom: 1.5rem;
    color: #333;
}

.guidelines-content {
    line-height: 1.6;
}

/* Category tags section */
.category-tags {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
}

.category-tags h3 {
    margin-bottom: 1rem;
    color: #333;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #e1f5fe;
    color: #0277bd;
    border-radius: 20px;
    font-size: 0.9rem;
    text-decoration: none;
}

.tag:hover {
    background-color: #b3e5fc;
    text-decoration: none;
    color: #01579b;
}

/* Responsive design for purpose pages */
@media (max-width: 768px) {
    .exercises-grid {
        grid-template-columns: 1fr;
    }

    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .exercise-card-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .level-badge {
        align-self: flex-end;
    }
}


/* ===========================================
   PURPOSE-SPECIFIC EXERCISE CARD STYLES (from category-cardio.html)
   =========================================== */

/* Purpose intro section */
.purpose-intro {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2.5rem;
    border-left: 5px solid #3bc0b8;
}

/* Purpose benefits section */
.purpose-benefits {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 2.5rem;
}

.purpose-benefits h2 {
    color: #333;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.purpose-benefits h2::before {
    content: "✅";
    font-size: 1.5rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    margin-bottom: 0.75rem;
    padding-left: 2rem;
    position: relative;
    line-height: 1.6;
}

.benefits-list li::before {
    content: "💪";
    position: absolute;
    left: 0;
    font-size: 1.1rem;
}

/* Exercise filters section */
.exercise-filters {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.exercise-filters h3 {
    margin-bottom: 1rem;
    color: #333;
}

.exercise-filters .filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
}

.filter-select {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
}

/* Enhanced exercise grid for purpose pages */
.exercises-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Enhanced exercise card styles for purpose pages */
.exercise-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.exercise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.exercise-card-header {
    background: linear-gradient(135deg, #3bc0b8 0%, #2aa09a 100%);
    color: white;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.exercise-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    flex-grow: 1;
    margin-right: 1rem;
}

.level-badge {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Level-specific color gradients for exercise card headers */
.exercise-card-header.level-1 {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
}

.exercise-card-header.level-2 {
    background: linear-gradient(135deg, #8BC34A 0%, #558B2F 100%);
}

.exercise-card-header.level-3 {
    background: linear-gradient(135deg, #FFC107 0%, #FF8F00 100%);
}

.exercise-card-header.level-4 {
    background: linear-gradient(135deg, #FF9800 0%, #E65100 100%);
}

.exercise-card-header.level-5 {
    background: linear-gradient(135deg, #F44336 0%, #C62828 100%);
}

/* Exercise card media section */
.exercise-card-media {
    position: relative;
    height: 200px;
    background-color: #f5f5f5;
    overflow: hidden;
}

.exercise-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.video-link:hover .video-overlay {
    background-color: rgba(59, 192, 184, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Exercise card summary section */
.exercise-card-summary {
    padding: 1.25rem;
}

.exercise-card-summary p {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.exercise-card-summary p:last-child {
    margin-bottom: 0;
}

.exercise-card-summary strong {
    color: #333;
    font-weight: 600;
}

/* Exercise card actions section */
.exercise-card-actions {
    padding: 0 1.25rem 1.25rem;
    display: flex;
    gap: 0.75rem;
}

.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: #3bc0b8;
    color: white;
    flex: 1;
}

.btn-primary:hover {
    background-color: #32a69f;
    text-decoration: none;
    color: white;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    flex: 0 0 auto;
}

.btn-secondary:hover {
    background-color: #545b62;
    text-decoration: none;
    color: white;
}

/* Guidelines section */
.guidelines-section {
    margin-top: 3rem;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.guidelines-section h2 {
    margin-bottom: 1.5rem;
    color: #333;
}

.guidelines-content {
    line-height: 1.6;
}

/* Category tags section */
.category-tags {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
}

.category-tags h3 {
    margin-bottom: 1rem;
    color: #333;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #e1f5fe;
    color: #0277bd;
    border-radius: 20px;
    font-size: 0.9rem;
    text-decoration: none;
}

.tag:hover {
    background-color: #b3e5fc;
    text-decoration: none;
    color: #01579b;
}

/* Responsive design for purpose pages */
@media (max-width: 768px) {
    .exercises-grid {
        grid-template-columns: 1fr;
    }

    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .exercise-card-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .level-badge {
        align-self: flex-end;
    }
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group select {
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.benefits-container,
.guidelines-content,
.tags-list {
    margin-top: 1rem;
}

.benefits-list {
    padding-left: 1.5rem;
    margin: 0;
}

/* ===========================================
   SOURCE TYPE TEMPLATE STYLES
   =========================================== */

.source-overview {
    max-width: 1000px;
    margin: 0 auto;
}

.source-intro {
    background-color: #f5f7f9;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2.5rem;
}

.source-intro p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.source-intro p:last-child {
    margin-bottom: 0;
}

.source-types {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.source-type-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.source-type-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.source-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3bc0b8, #32a69f);
}

.source-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f1f1e6, #e8e8d6);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    position: relative;
}

.source-icon {
    font-size: 2.5rem;
    text-align: center;
}

.source-icon img {
    width: 48px;
    height: 48px;
}

.source-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.source-description {
    color: #666;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.source-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.source-features li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    color: #555;
}

.source-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #3bc0b8;
    font-weight: bold;
}

.source-stats {
    display: flex;
    justify-content: space-between;
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.source-stat {
    text-align: center;
    flex: 1;
}

.source-stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #3bc0b8;
    display: block;
}

.source-stat-label {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.source-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #3bc0b8;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
    margin-top: auto;
}

.source-link:hover {
    background-color: #32a69f;
    text-decoration: none;
    color: white;
    transform: translateY(-2px);
}

.attribution-section {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-top: 3rem;
}

.attribution-section h2 {
    color: #333;
    margin-bottom: 1.5rem;
}

.attribution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.attribution-item {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3bc0b8;
}

.attribution-item h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

.attribution-item p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.quality-assurance {
    background-color: #e8f5f3;
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
    border: 1px solid #c3e6e0;
}

.quality-assurance h3 {
    color: #2d7a6f;
    margin-bottom: 1rem;
}

.quality-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.quality-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.quality-item::before {
    content: '🏆';
    font-size: 1.2rem;
    margin-top: 0.1rem;
}

/* ===========================================
   ALPHABETICAL TEMPLATE STYLES
   =========================================== */

.alphabetical-overview {
    max-width: 1000px;
    margin: 0 auto;
}

.alphabet-nav {
    background-color: #f5f7f9;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    text-align: center;
}

.alphabet-nav h3 {
    margin-bottom: 1rem;
    color: #333;
}

.alphabet-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.alphabet-link {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    background-color: #3bc0b8;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    min-width: 2.5rem;
    text-align: center;
}

.alphabet-link:hover {
    background-color: #32a69f;
    text-decoration: none;
    color: white;
}

.alphabet-link.disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.letter-section {
    margin-bottom: 3rem;
}

.letter-header {
    background: linear-gradient(135deg, #3bc0b8, #32a69f);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.letter-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.no-exercises-message {
    text-align: center;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    color: #666;
    font-style: italic;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #3bc0b8;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s ease, transform 0.2s ease;
    font-size: 1.2rem;
    display: none;
}

.back-to-top:hover {
    background-color: #32a69f;
    transform: translateY(-2px);
}

/* ===========================================
   EXERCISE DETAIL TEMPLATE STYLES
   =========================================== */

.exercise-detail {
    max-width: 900px;
    margin: 0 auto;
}

.exercise-header {
    background: linear-gradient(135deg, #3bc0b8, #32a69f);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
}

.exercise-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.exercise-purpose {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
}

.exercise-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
}

.meta-chip {
    display: inline-flex;
    align-items: center; /* keep content centered vertically */
    gap: 0.35rem;
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
    max-width: 100%; /* prevent chips from overflowing the container */
    white-space: normal; /* allow multi-line wrapping for long values */
}

.meta-chip-label {
    font-size: 0.8rem;
    opacity: 0.9;
}

.meta-chip-value {
    font-weight: 700;
    font-size: 0.95rem;
    white-space: normal; /* allow value text to wrap */
    overflow-wrap: anywhere; /* break long tokens/words/URLs as needed */
    word-break: break-word; /* ensure graceful wrapping for long sequences */
}

.exercise-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.meta-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
}

.meta-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.meta-value {
    font-weight: 600;
    font-size: 1.1rem;
}

/* -------------------------------------------
   Meta table rows (Attribution / External Source)
   Ensure readable spacing between label and value
   without requiring trailing spaces in HTML.
   ------------------------------------------- */
.meta-table {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.meta-row {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem; /* This provides the visual space between label and value */
}

.meta-row .meta-label {
    font-weight: 600;
}

.meta-row .meta-value a {
    word-break: break-all; /* Long URLs should wrap nicely */
}

/* Preserve line breaks and allow wrapping for longer additional metadata text */
.meta-row .meta-value.prewrap {
    white-space: pre-wrap;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    margin-bottom: 2rem;
}

.main-content-area {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.content-section {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3bc0b8;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    color: #6c757d;
    font-style: italic;
}

.instructions-list {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
}

.instructions-list li {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background-color: #f8f9fa;
    border-left: 4px solid #3bc0b8;
    border-radius: 4px;
    position: relative;
    padding-left: 3rem;
}

.instructions-list li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0.75rem;
    top: 0.75rem;
    background-color: #3bc0b8;
    color: white;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.muscles-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
}

.muscles-list li {
    background-color: #e8f5f3;
    color: #2d7a6f;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.equipment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
}

.equipment-list li {
    background-color: #f1f1e6;
    color: #666;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid #ddd;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background-color: #f8f9fa;
    color: #666;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.85rem;
    border: 1px solid #e9ecef;
}

.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.progression-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.progression-card {
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.progression-card.up {
    background-color: #e8f5f3;
    color: #2d7a6f;
    border: 1px solid #c3e6e0;
}

.progression-card.down {
    background-color: #f1f1e6;
    color: #666;
    border: 1px solid #ddd;
}

.related-exercises {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.related-card {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e9ecef;
}

.related-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
}

/* ===========================================
   EXERCISE FILTERS & SEARCH
   =========================================== */

.exercise-filters {
    background: #fbfaf4;
    border: 1px solid #e4e3d4;
    border-radius: 8px;
    padding: 20px;
    margin: 24px 0;
}

.exercise-filters h3 {
    margin-bottom: 5px;
}

.exercise-filters p {
    margin-bottom: 15px;
    color: #666;
    font-size: 0.9rem;
}

.search-input, .filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.search-input {
    flex: 1;
    min-width: 200px;
}

.filter-select {
    min-width: 150px;
}

/* ===========================================
   EXERCISE CARDS & GRID
   =========================================== */

.exercises-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.exercise-card {
    background: white;
    border: 1px solid #e4e3d4;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.exercise-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(9, 23, 23, 0.1);
}

.exercise-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e4e3d4;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.exercise-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: #091717;
}

.exercise-title a {
    text-decoration: none;
    color: inherit;
}

.exercise-title a:hover {
    color: #3bc0b8;
}

.exercise-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.exercise-level {
    background-color: #f1f1e6;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    color: #666;
    font-weight: 500;
}

.exercise-focus {
    background-color: #e8f5f3;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    color: #2d7a6f;
    font-weight: 500;
}

.exercise-description {
    color: #666;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.exercise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.exercise-tag {
    background-color: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #666;
    border: 1px solid #e9ecef;
}

.level-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.level-beginner {
    background: #d4edda;
    color: #155724;
}

.level-intermediate {
    background: #fff3cd;
    color: #856404;
}

.level-advanced {
    background: #f8d7da;
    color: #721c24;
}

/* Exercise Media */
.exercise-card-media {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.exercise-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(9, 23, 23, 0.8);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* Exercise Card Content */
.exercise-card-summary {
    padding: 16px 20px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #091717;
}

.exercise-card-summary p {
    margin: 8px 0;
}

.exercise-card-summary strong {
    color: #3bc0b8;
    font-weight: 600;
}

/* Exercise Actions */
.exercise-card-actions {
    padding: 16px 20px;
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-primary {
    background: #3bc0b8;
    color: white;
}

.btn-primary:hover {
    background: #2da39c;
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    color: white;
}

/* Exercise Source */
.exercise-card-source {
    padding: 12px 20px;
    background: #fbfaf4;
    border-top: 1px solid #e4e3d4;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
}

.source-label {
    color: #6c757d;
    font-weight: 500;
}

.source-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #3bc0b8;
    font-weight: 500;
}

.source-thumbnail {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    object-fit: cover;
}

/* Exercise Tags */
.exercise-card-tags {
    padding: 12px 20px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* ===========================================
   EXERCISE DETAIL PAGE COMPONENTS
   =========================================== */

.back-link {
    color: #3bc0b8;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 16px;
    display: inline-block;
}

.back-link:hover {
    text-decoration: underline;
}

/* Exercise Media Section */
.exercise-media-section {
    text-align: center;
    margin: 24px 0;
}

.video-overlay-large {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(9, 23, 23, 0.8);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.icon-play-large {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.exercise-detail-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(9, 23, 23, 0.1);
}

/* Exercise Info Grid */
.exercise-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 32px 0;
}

.info-card {
    background: #fbfaf4;
    border: 1px solid #e4e3d4;
    border-radius: 8px;
    padding: 20px;
}

.info-card h3 {
    color: #3bc0b8;
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */

@media (max-width: 768px) {
    .category-cards,
    .browse-options {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .intro-section,
    .catalog-introduction {
        padding: 1.5rem;
    }

    .category-card {
        padding: 1.25rem;
    }

    .level-cards {
        grid-template-columns: 1fr;
    }

    .source-types {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .source-intro {
        padding: 1.5rem;
    }

    .source-type-card {
        padding: 1.5rem;
    }

    .source-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .attribution-grid {
        grid-template-columns: 1fr;
    }

    .quality-list {
        grid-template-columns: 1fr;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .exercise-title {
        font-size: 1.8rem;
    }

    .exercise-purpose {
        font-size: 1.1rem;
    }

    .exercise-meta-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .progression-section {
        grid-template-columns: 1fr;
    }

    .content-section {
        padding: 1.25rem;
    }

    .exercises-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .alphabet-links {
        gap: 0.25rem;
    }

    .alphabet-link {
        min-width: 2rem;
        padding: 0.4rem 0.6rem;
        font-size: 0.9rem;
    }

    .exercise-card {
        padding: 1.25rem;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .browse-options {
        grid-template-columns: 1fr;
    }

    .filter-controls {
        flex-direction: column;
        gap: 0.5rem;
    }

    .exercise-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

.catalog-intro p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #091717;
}

.catalog-features,
.catalog-difference {
    margin: 24px 0;
}

.catalog-features h3,
.catalog-difference h3 {
    color: #3bc0b8;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.catalog-features ul,
.catalog-difference ul {
    padding-left: 24px;
    margin: 0;
}

/* Detailed catalog information styling */
.detailed-catalog-info {
    margin-bottom: 3rem;
}

.catalog-section {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.catalog-section h2 {
    color: #2a7d7d;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.catalog-section h3 {
    color: #333;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.catalog-section ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.catalog-section li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.tip-box, .warning-box, .note-box {
    padding: 1rem;
    border-radius: 6px;
    margin: 1.5rem 0;
}

.tip-box {
    background-color: #e1f5fe;
    border-left: 4px solid #03a9f4;
}

.warning-box {
    background-color: #fff8e1;
    border-left: 4px solid #ffc107;
}

.note-box {
    background-color: #f1f8e9;
    border-left: 4px solid #8bc34a;
}

.catalog-features li,
.catalog-difference li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.ability-levels-breakdown {
    margin: 32px 0;
}

.ability-levels-breakdown h3 {
    color: #3bc0b8;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.level-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.level-card {
    background: white;
    border: 1px solid #e4e3d4;
    border-radius: 8px;
    overflow: hidden;
}

.level-header {
    background: #3bc0b8;
    color: white;
    padding: 12px 16px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bpm {
    font-size: 0.8rem;
    opacity: 0.8;
}

.level-card p {
    padding: 16px;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.catalog-closing {
    font-style: italic;
    font-weight: 500;
    text-align: center;
    margin-top: 32px;
}

/* Exercise Filters */
.exercise-filters {
    background: #fbfaf4;
    border: 1px solid #e4e3d4;
    border-radius: 8px;
    padding: 20px;
    margin: 24px 0;
}

.exercise-filters h3 {
    margin-bottom: 5px;
}

.exercise-filters p {
    margin-bottom: 15px;
    color: #666;
    font-size: 0.9rem;
}

.filter-controls {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.search-input, .filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.search-input {
    flex: 1;
    min-width: 200px;
}

.filter-select {
    min-width: 150px;
}

/* Exercise Grid */
.exercises-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.exercise-card {
    background: white;
    border: 1px solid #e4e3d4;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.exercise-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(9, 23, 23, 0.1);
}

.exercise-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e4e3d4;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.exercise-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: #091717;
}

.level-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.level-beginner {
    background: #d4edda;
    color: #155724;
}

.level-intermediate {
    background: #fff3cd;
    color: #856404;
}

.level-advanced {
    background: #f8d7da;
    color: #721c24;
}

/* Exercise Media */
.exercise-card-media {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.exercise-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(9, 23, 23, 0.8);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* Exercise Card Content */
.exercise-card-summary {
    padding: 16px 20px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #091717;
}

.exercise-card-summary p {
    margin: 8px 0;
}

.exercise-card-summary strong {
    color: #3bc0b8;
    font-weight: 600;
}

/* Exercise Actions */
.exercise-card-actions {
    padding: 16px 20px;
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-primary {
    background: #3bc0b8;
    color: white;
}

.btn-primary:hover {
    background: #2da39c;
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    color: white;
}

/* Exercise Source */
.exercise-card-source {
    padding: 12px 20px;
    background: #fbfaf4;
    border-top: 1px solid #e4e3d4;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
}

.source-label {
    color: #6c757d;
    font-weight: 500;
}

.source-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #3bc0b8;
    font-weight: 500;
}

.source-thumbnail {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    object-fit: cover;
}

/* Exercise Tags */
.exercise-card-tags {
    padding: 12px 20px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    background: #e4e3d4;
    color: #495057;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* Exercise Detail Page Styles */
.exercise-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.back-link {
    color: #3bc0b8;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 16px;
    display: inline-block;
}

.back-link:hover {
    text-decoration: underline;
}

/* Exercise Media Section */
.exercise-media-section {
    text-align: center;
    margin: 24px 0;
}

.video-container {
    display: inline-block;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(9, 23, 23, 0.1);
}

.preview-image {
    max-width: 100%;
    height: auto;
    display: block;
}

.video-overlay-large {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(9, 23, 23, 0.8);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.icon-play-large {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.exercise-detail-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(9, 23, 23, 0.1);
}

/* Exercise Info Grid */
.exercise-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 32px 0;
}

.info-card {
    background: #fbfaf4;
    border: 1px solid #e4e3d4;
    border-radius: 8px;
    padding: 20px;
}

.info-card h3 {
    color: #3bc0b8;
    margin: 0 0 12px 0;
    font-size: 1rem;
    font-weight: 600;
}

.info-card p {
    margin: 0;
    color: #091717;
    line-height: 1.5;
}

.muscles-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.muscle-tag {
    background: #3bc0b8;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Exercise Instructions */
.exercise-instructions {
    margin: 32px 0;
}

.exercise-instructions h3 {
    color: #091717;
    margin-bottom: 16px;
    font-size: 1.3rem;
}

.instructions-list {
    background: #fbfaf4;
    border: 1px solid #e4e3d4;
    border-left: 4px solid #3bc0b8;
    border-radius: 8px;
    padding: 24px;
    margin: 0;
}

.instructions-list li {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #091717;
}

.execution-cues {
    background: #e8f5e8;
    border: 1px solid #d4edda;
    border-left: 4px solid #28a745;
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
}

.execution-cues h4 {
    color: #155724;
    margin: 0 0 8px 0;
    font-size: 1rem;
}

.execution-cues p {
    color: #155724;
    margin: 0;
    line-height: 1.5;
}

/* Exercise Guidance */
.exercise-guidance {
    margin: 32px 0;
}

.exercise-guidance h3 {
    color: #091717;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.guidance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.guidance-card {
    border-radius: 8px;
    padding: 20px;
    border: 1px solid;
}

.guidance-card h4 {
    margin: 0 0 12px 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Source Types Page Styles */
.source-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.source-type-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-top: 4px solid #6c757d;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.source-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.source-type-card.youtube {
    border-top-color: #ff0000;
}

.source-type-card.instagram {
    border-top-color: #c13584;
}

.source-type-card.blog {
    border-top-color: #1877f2;
}

.source-type-card.demo-video {
    border-top-color: #0075c4;
}

.source-type-card.community {
    border-top-color: #28a745;
}

.source-type-card .source-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
}

.source-type-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.source-type-card p {
    margin: 0 0 20px 0;
    font-size: 0.9rem;
    color: #555;
    flex-grow: 1;
}

.source-submission {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
    text-align: center;
}

.content-attribution {
    margin: 30px 0;
}

.guidance-card p {
    margin: 0;
    line-height: 1.5;
}

.safety {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.safety h4 {
    color: #721c24;
}

.progression {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.progression h4 {
    color: #155724;
}

.regression {
    background: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.regression h4 {
    color: #856404;
}

/* Exercise Meta */
.exercise-meta {
    margin: 32px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.meta-item h4 {
    color: #091717;
    margin: 0 0 12px 0;
    font-size: 1rem;
}

.placement-tags, .tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.placement-tag {
    background: #3bc0b8;
    color: white;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.tags-list .tag {
    background: #e4e3d4;
    color: #495057;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Exercise Sources */
.exercise-sources {
    margin: 32px 0;
    padding: 24px;
    background: #fbfaf4;
    border: 1px solid #e4e3d4;
    border-radius: 8px;
}

.exercise-sources h4 {
    color: #091717;
    margin: 0 0 16px 0;
    font-size: 1rem;
}

.source-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.source-link-detailed {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: white;
    border: 1px solid #e4e3d4;
    border-radius: 6px;
    text-decoration: none;
    color: #3bc0b8;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.source-link-detailed:hover {
    background: #f8f9fa;
    color: #2da39c;
}

.source-thumbnail-large {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    object-fit: cover;
}

/* Related Exercises */
.related-exercises {
    margin: 40px 0;
    padding: 32px 0;
    border-top: 2px solid #e4e3d4;
}

.related-exercises h3 {
    color: #091717;
    margin-bottom: 24px;
    font-size: 1.3rem;
}

.related-exercises-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.related-exercise-card {
    background: white;
    border: 1px solid #e4e3d4;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.related-exercise-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(9, 23, 23, 0.1);
}

.related-exercise-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 12px;
}

.related-exercise-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 12px;
}

.related-exercise-card h4 {
    margin: 0 0 8px 0;
    font-size: 0.95rem;
    color: #091717;
}

/* Category Pages Styles */
.category-benefits {
    background: #fbfaf4;
    border: 1px solid #e4e3d4;
    border-radius: 8px;
    padding: 24px;
    margin: 24px 0;
}

.category-benefits h2 {
    color: #3bc0b8;
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.3rem;
}

.benefits-list {
    margin: 0;
    padding-left: 24px;
}

.catalog-links {
    margin-top: 20px;
}

.btn-outline {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #0075c4;
    border-radius: 4px;
    color: #0075c4;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-outline:hover {
    background-color: #0075c4;
    color: white;
}

.benefits-list li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: #091717;
}

.category-exercises {
    margin: 32px 0;
}

.category-exercises h2 {
    color: #091717;
    margin-bottom: 24px;
    font-size: 1.3rem;
}

.category-guidelines {
    margin: 40px 0;
}

.category-guidelines h2 {
    color: #091717;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.guidelines-content {
    background: #fff;
    border: 1px solid #e4e3d4;
    border-radius: 8px;
    padding: 24px;
    line-height: 1.6;
    color: #091717;
}

.guidelines-content p {
    margin-top: 0;
}

.guideline-box {
    background: #f8f9fa;
    border: 1px solid #e4e3d4;
    border-left: 4px solid #3bc0b8;
    border-radius: 6px;
    padding: 16px 20px;
    margin: 20px 0;
}

.guideline-box h4 {
    color: #091717;
    margin: 0 0 12px 0;
    font-size: 1rem;
}

.guideline-box ul {
    margin: 0;
    padding-left: 24px;
}

.guideline-box li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.category-tags {
    margin: 32px 0;
}

.category-tags h3 {
    color: #091717;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

/* Categories Section */
.categories-section {
    margin: 32px 0;
}

.categories-section h2 {
    color: #091717;
    margin-bottom: 16px;
    font-size: 1.3rem;
    text-align: center;
}

.categories-section p {
    text-align: center;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .exercises-grid {
        grid-template-columns: 1fr;
    }

    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-input, .filter-select {
        width: 100%;
    }

    .exercise-info-grid, .guidance-grid {
        grid-template-columns: 1fr;
    }

    .exercise-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .exercise-card-actions {
        flex-direction: column;
    }

    .source-links {
        flex-direction: column;
    }

    .related-exercises-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

/* No Results Message */
.no-results-message {
    background: #f8f9fa;
    border: 1px solid #e4e3d4;
    border-radius: 8px;
    padding: 20px;
    margin: 24px 0;
    text-align: center;
}

.no-results-message p {
    margin-bottom: 16px;
    color: #6c757d;
    font-size: 1.1rem;
}

/* ===========================================
   CATEGORY PAGE CARD STYLES
   =========================================== */

/* Purpose/Goals Cards */
.purpose-section {
    margin-bottom: 3rem;
}

.purpose-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.purpose-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
}

.purpose-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.purpose-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.purpose-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.purpose-description {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.purpose-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
    margin-top: auto;
    background-color: #3bc0b8;
    color: white;
}

.purpose-link:hover {
    background-color: #32a69f;
    color: white;
    text-decoration: none;
}

/* Focus/Body Cards */
.focus-section {
    margin-bottom: 3rem;
}

.focus-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.focus-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
}

.focus-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.focus-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.focus-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.focus-description {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.focus-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
    margin-top: auto;
    background-color: #3bc0b8;
    color: white;
}

.focus-link:hover {
    background-color: #32a69f;
    color: white;
    text-decoration: none;
}

/* Position/Pool Depth Cards */
.position-section {
    margin-bottom: 3rem;
}

.position-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.position-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
}

.position-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.position-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.position-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.position-description {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.position-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
    margin-top: auto;
    background-color: #3bc0b8;
    color: white;
}

.position-link:hover {
    background-color: #32a69f;
    color: white;
    text-decoration: none;
}

/* Shared Intro Section */
.intro-section {
    background-color: #f5f7f9;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2.5rem;
}

.intro-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.intro-section p:last-child {
    margin-bottom: 0;
}

/* Shared Guidelines Styles */
.category-guidelines, .depth-guidelines {
    margin-top: 3rem;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.category-guidelines h2, .depth-guidelines h2 {
    margin-bottom: 1.5rem;
    color: #333;
}

.guidelines-content > p {
    margin-bottom: 2rem;
    color: #666;
    line-height: 1.6;
}

.guideline-box {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
    border-left: 4px solid #3bc0b8;
}

.guideline-box h4 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.1rem;
}

.guideline-box ul {
    list-style-type: none;
    padding-left: 0;
}

.guideline-box li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
}

.guideline-box li:before {
    content: "•";
    color: #3bc0b8;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Category Tags */
.category-tags {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
}

.category-tags h3 {
    margin-bottom: 1rem;
    color: #333;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #e1f5fe;
    color: #0277bd;
    border-radius: 20px;
    font-size: 0.9rem;
    text-decoration: none;
}

.tag:hover {
    background-color: #b3e5fc;
}

/* ===========================================
   CATEGORY PAGE CARD STYLES
   =========================================== */

/* Purpose/Goals Cards */
.purpose-section {
    margin-bottom: 3rem;
}

.purpose-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.purpose-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.purpose-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.purpose-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.purpose-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #333;
}

.purpose-description {
    color: #666;
    flex-grow: 1;
    margin-bottom: 1.25rem;
}

.purpose-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #3bc0b8;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.2s ease;
}

.purpose-link:hover {
    background-color: #32a69f;
}

/* Focus/Body Cards */
.focus-section {
    margin-bottom: 3rem;
}

.focus-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.focus-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.focus-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.focus-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.focus-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #333;
}

.focus-description {
    color: #666;
    flex-grow: 1;
    margin-bottom: 1.25rem;
}

.focus-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #3bc0b8;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.2s ease;
}

.focus-link:hover {
    background-color: #32a69f;
}

/* Position/Pool Depth Cards */
.position-section {
    margin-bottom: 3rem;
}

.position-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.position-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.position-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.position-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.position-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #333;
    text-align: center;
}

.position-description {
    color: #666;
    flex-grow: 1;
    margin-bottom: 1.25rem;
    text-align: center;
    line-height: 1.5;
}

.position-link {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    background-color: #3bc0b8;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.2s ease;
    margin-top: auto;
}

.position-link:hover {
    background-color: #32a69f;
    text-decoration: none;
    color: white;
}

/* Shared intro section styles */
.intro-section {
    background-color: #f5f7f9;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2.5rem;
}

.intro-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.intro-section p:last-child {
    margin-bottom: 0;
}

/* Category guidelines styles */
.category-guidelines {
    margin-top: 3rem;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.category-guidelines h2 {
    margin-bottom: 1.5rem;
    color: #333;
}

.guidelines-content > p {
    margin-bottom: 2rem;
    color: #666;
    line-height: 1.6;
}

.guideline-box {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
    border-left: 4px solid #3bc0b8;
}

.guideline-box h4 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.1rem;
}

.guideline-box ul {
    list-style-type: none;
    padding-left: 0;
}

.guideline-box li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
}

.guideline-box li:before {
    content: "•";
    color: #3bc0b8;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Category tags styles */
.category-tags {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
}

.category-tags h3 {
    margin-bottom: 1rem;
    color: #333;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #e1f5fe;
    color: #0277bd;
    border-radius: 20px;
    font-size: 0.9rem;
    text-decoration: none;
}

.tag:hover {
    background-color: #b3e5fc;
}

/* Depth guidelines styles */
.depth-guidelines {
    margin-top: 3rem;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.depth-guidelines h2 {
    margin-bottom: 1.5rem;
    color: #333;
}

/* Print Styles */
@media print {
    .exercise-filters,
    .exercise-card-actions,
    .source-links,
    .related-exercises {
        display: none;
    }

    .exercise-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}


/* Compact title tweaks for A–Z and 1–5 cards on main catalog */
.source-type-card.compact-title h3 {
    font-size: 1.05rem;
    line-height: 1.15;
}

.source-type-card.card-az .source-icon,
.source-type-card.card-15 .source-icon {
    font-size: 1rem;
    line-height: 1;
}

@media (max-width: 600px) {
    .source-type-card.compact-title h3 {
        font-size: 1rem;
    }
}


/* Icon-style badges for A–Z and 1–5 on main catalog */
.source-type-card.card-az .source-icon,
.source-type-card.card-15 .source-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.05rem; /* slightly larger to feel like an icon */
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* Distinct background hues to differentiate the two browsing modes */
.source-type-card.card-az .source-icon {
    background: #2a7d7d; /* teal (brand-aligned) */
}

.source-type-card.card-15 .source-icon {
    background: #0075c4; /* blue variant */
}

@media (max-width: 600px) {
    .source-type-card.card-az .source-icon,
    .source-type-card.card-15 .source-icon {
        font-size: 0.95rem; /* tighten on small screens */
    }
}
