/* Frontend Styles - Modern Design */
.dsu-table-wrapper {
    margin: 30px 0;
    overflow-x: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.dsu-comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.dsu-comparison-table thead {
    background: #d3d3d3; /* Gray header like in the image */
}

.dsu-comparison-table th {
    padding: 18px 25px;
    text-align: left;
    font-weight: 600;
    border: 1px solid #c0c0c0;
    color: #000;
    font-size: 16px;
    background: #d3d3d3;
}

.dsu-comparison-table th:first-child {
    text-align: left;
}

.dsu-comparison-table td {
    padding: 18px 25px;
    border: 1px solid #e0e0e0;
    color: #333;
    font-size: 15px;
    vertical-align: middle;
}

.dsu-comparison-table tbody tr {
    background: #fff;
    transition: background-color 0.2s ease;
}

.dsu-comparison-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.dsu-comparison-table tbody tr:hover {
    background: #f0f0f0;
}

.dsu-university-cell {
    font-weight: 500;
    min-width: 220px;
    padding: 0 !important; /* Remove padding so link fills entire cell */
}

/* Clickable university link - fills entire cell */
.dsu-university-link {
    display: block;
    padding: 18px 25px; /* Apply padding to link instead of cell */
    color: #0066cc;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dsu-university-link:hover {
    background-color: #e8f4f8;
    color: #0052a3;
}

.dsu-university-link:hover .dsu-university-name {
    text-decoration: underline;
}

/* Non-clickable university cell (when no URL) */
.dsu-university-cell > span,
.dsu-university-cell > img {
    padding: 18px 25px;
    display: block;
}

.dsu-university-logo {
    max-width: 50px;
    max-height: 35px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}

.dsu-university-name {
    display: inline-block;
    vertical-align: middle;
    font-size: 15px;
    color: inherit;
}

.dsu-data-cell {
    vertical-align: middle;
    text-align: center;
}

.dsu-university-header {
    text-align: left !important;
}

.dsu-price {
    font-weight: 600;
    color: #333;
    font-size: 15px;
    display: block;
}

.dsu-number {
    font-weight: 500;
    color: #333;
}

/* Centered text for data columns */
.dsu-comparison-table td:not(.dsu-university-cell) {
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .dsu-comparison-table {
        font-size: 13px;
    }
    
    .dsu-comparison-table th,
    .dsu-comparison-table td {
        padding: 12px 15px;
    }
    
    /* Update link padding for mobile */
    .dsu-university-link {
        padding: 12px 15px;
    }
    
    .dsu-university-cell > span,
    .dsu-university-cell > img {
        padding: 12px 15px;
    }
    
    .dsu-university-logo {
        max-width: 40px;
        max-height: 30px;
        margin-right: 8px;
    }
    
    .dsu-university-name {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .dsu-table-wrapper {
        margin: 20px -15px;
        border-radius: 0;
    }
    
    .dsu-comparison-table th,
    .dsu-comparison-table td {
        padding: 10px 8px;
        font-size: 12px;
    }
    
    /* Update link padding for small mobile */
    .dsu-university-link {
        padding: 10px 8px;
    }
    
    .dsu-university-cell > span,
    .dsu-university-cell > img {
        padding: 10px 8px;
    }
    
    .dsu-university-cell {
        min-width: 150px;
    }
}

/* Print Styles */
@media print {
    .dsu-table-wrapper {
        box-shadow: none;
    }
    
    .dsu-comparison-table {
        border: 1px solid #000;
    }
    
    .dsu-comparison-table th {
        background: #d3d3d3 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .dsu-comparison-table tbody tr:nth-child(even) {
        background: #fafafa !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

