/* Framework-specific styles */

.framework-content {
    min-height: 60vh;
    padding: 4rem 2rem;
}

.content-section {
    margin-bottom: 4rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.content-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    text-align: center;
}

.content-section h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    text-align: center;
    margin-top: 4rem;
}

.content-section > .container > p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #4a4a4a;
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.examples-section {
    margin: 4rem 0;
}

/* Table Styles */
.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.table-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    text-align: center;
}

.table-info {
    color: #6c757d;
    font-size: 0.95rem;
}

.table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Pagination Styles */
.pagination {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.page-btn {
    min-width: 44px;
    height: 44px;
    padding: 0 1rem;
    background: #ffffff;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    color: #495057;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.page-btn:hover:not(.disabled):not(.active) {
    background: #f8f9fa;
    border-color: #adb5bd;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.page-btn.active {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ffffff;
    border-color: #2c3e50;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
}

.page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f8f9fa;
    color: #adb5bd;
}

.page-ellipsis {
    padding: 0 0.5rem;
    color: #adb5bd;
    font-weight: 600;
    font-size: 1.2rem;
}

.crossfactors-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    font-size: 1rem;
}

.crossfactors-table thead {
    background: #2c3e50;
    color: #ffffff;
}

.crossfactors-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.crossfactors-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.crossfactors-table tbody tr:hover {
    background-color: #f8f9fa;
}

.crossfactors-table tbody tr:last-child {
    border-bottom: none;
}

.crossfactors-table td {
    padding: 1rem;
    vertical-align: top;
}

.number-cell {
    width: 60px;
    text-align: center;
    font-weight: 600;
    color: #6c757d;
    font-size: 0.9rem;
}

.name-cell {
    width: 30%;
    min-width: 200px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.05rem;
}

.description-cell {
    color: #4a4a4a;
    line-height: 1.6;
}

.framework-approach {
    margin-top: 4rem;
    padding: 3rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #2c3e50;
}

.framework-approach p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a4a4a;
    margin: 0;
}

/* Card Grid Styles (if you want to switch back) */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.card h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-weight: 600;
}

.card p {
    color: #6c757d;
    line-height: 1.6;
    font-size: 0.95rem;
}

.nav-link.active {
    font-weight: 600;
    color: #2c3e50;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .framework-content {
        padding: 2rem 1rem;
    }
    
    .content-section h2 {
        font-size: 2rem;
    }
    
    .content-section h3 {
        font-size: 1.75rem;
        margin-top: 3rem;
    }
    
    .table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .table-info {
        font-size: 0.85rem;
    }
    
    .table-container {
        border-radius: 0;
    }
    
    .crossfactors-table {
        font-size: 0.9rem;
    }
    
    .crossfactors-table th,
    .crossfactors-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .number-cell {
        width: 40px;
    }
    
    .name-cell {
        width: 40%;
        min-width: 150px;
        font-size: 1rem;
    }
    
    .pagination-controls {
        gap: 0.5rem;
    }
    
    .page-numbers {
        gap: 0.25rem;
    }
    
    .page-btn {
        min-width: 40px;
        height: 40px;
        padding: 0 0.75rem;
        font-size: 0.9rem;
    }
    
    .page-ellipsis {
        font-size: 1rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .framework-approach {
        padding: 2rem 1.5rem;
    }
}

/* Very small screens - stack table vertically */
@media (max-width: 600px) {
    .crossfactors-table thead {
        display: none;
    }
    
    .crossfactors-table tbody tr {
        display: block;
        margin-bottom: 1.5rem;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        padding: 1rem;
    }
    
    .crossfactors-table tbody tr:hover {
        background-color: #ffffff;
    }
    
    .crossfactors-table td {
        display: block;
        padding: 0.5rem 0;
        border: none;
    }
    
    .number-cell {
        width: 100%;
        text-align: left;
        font-size: 0.8rem;
        color: #adb5bd;
        margin-bottom: 0.5rem;
        display: none;
    }
    
    .name-cell {
        width: 100%;
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .description-cell {
        width: 100%;
    }
}
