/* Core Styles */
.comparison-table-wrapper {
    margin: 30px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow-x: auto;
}

.ct-title {
    text-align: center;
    margin: 0 0 25px;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

/* Table Structure */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    background: white;
}

/* Headers - Centered by default */
.ct-header {
    padding: 15px 20px;
    text-align: center;
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e9ecef;
    vertical-align: middle;
}

/* Feature Column - Left by default */
.ct-feature-col {
    padding: 12px 20px;
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e9ecef;
    min-width: 200px;
    text-align: left;
}

/* Feature Rows */
.ct-feature-name {
    background: #f8f9fa;
    padding: 12px 20px;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600; /* Changed from 500 to 600 for bold */
    text-align: left;
    vertical-align: top;
}

.ct-feature-name-text {
    font-weight: 600; /* Bold for feature name */
    display: block;
}

.ct-feature-desc {
    font-weight: normal; /* Normal weight for description */
    display: block;
    font-size: 0.85em;
    color: #666;
    margin-top: 6px;
    line-height: 1.4;
}

.ct-feature-value {
    background: white;
    padding: 12px 20px;
    border-bottom: 1px solid #e9ecef;
    text-align: center;
    vertical-align: middle;
}

/* Sections */
.ct-section-title {
    background: #e9ecef;
    padding: 15px 20px;
    font-weight: 600;
    color: #212529;
    border-bottom: 1px solid #dee2e6;
}

.ct-section-title-text {
    font-weight: 600; /* Bold for section title */
    display: block;
}

.ct-section-desc {
    font-weight: normal; /* Normal weight for description */
    display: block;
    font-size: 0.9em;
    color: #555;
    margin-top: 8px;
    line-height: 1.5;
}

/* RTL Layout - Overrides for right-to-left */
.comparison-table-wrapper.rtl .comparison-table {
    direction: rtl;
}

.comparison-table-wrapper.rtl .ct-feature-col,
.comparison-table-wrapper.rtl .ct-feature-name,
.comparison-table-wrapper.rtl .ct-section-title {
    text-align: right;
}

.comparison-table-wrapper.rtl .comparison-table {
    text-align: right;
}

.comparison-table-wrapper.rtl .ct-header {
    text-align: center;
}

.comparison-table-wrapper.rtl .ct-section-desc,
.comparison-table-wrapper.rtl .ct-feature-desc {
    text-align: right;
    direction: rtl;
}

/* Responsive */
@media (max-width: 768px) {
    .comparison-table {
        display: block;
    }
    
    .ct-header {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .ct-feature-col,
    .ct-feature-name,
    .ct-feature-value,
    .ct-section-title {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .ct-section-desc {
        font-size: 0.85em;
    }
    
    .ct-feature-desc {
        font-size: 0.8em;
    }
}





/* Add these new rules to your existing CSS */

.comparison-table {
    table-layout: fixed; /* Ensures columns respect the width settings */
}

/* Features column width - will be 30% when there are 3 plans */
.ct-feature-col {
    width: 30%;
}

/* Plan columns width - will be 35% each when there are 3 plans */
.ct-header:not(.ct-feature-col) {
    width: 35%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .comparison-table {
        table-layout: auto; /* Revert to auto layout on mobile */
    }
    
    .ct-feature-col,
    .ct-header:not(.ct-feature-col) {
        width: auto; /* Let columns size naturally on mobile */
    }
}


