#trc-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}
.trc-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.trc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.trc-card-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f7f7f7;
}
.trc-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}
.trc-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.trc-author-name {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
}
.trc-stars {
    margin: 0.5rem 0;
    font-size: 1rem;
    color: #FFD700;
}
.trc-course-name {
    font-size: 0.9rem;
    color: #555;
}
.trc-date {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: #777;
}
.trc-content {
    padding: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
    border-top: 1px solid #eee;
}
.trc-no-reviews {
    text-align: center;
    font-style: italic;
    color: #888;
    padding: 2rem;
}
/* --- Modal Styles --- */
.trc-modal {
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    display: none;
    align-items: center;
    justify-content: center;
}
.trc-modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    animation: trcFadeIn 0.3s;
}
@keyframes trcFadeIn {
    from {opacity: 0; transform: translateY(-20px);} 
    to {opacity: 1; transform: translateY(0);}
}
.trc-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}
.trc-close:hover,
.trc-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
.trc-rating-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.trc-stars-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}
.trc-stars-input input {
    display: none;
}
.trc-stars-input label {
    font-size: 30px;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
    margin: 0 2px;
}
.trc-stars-input input:checked ~ label,
.trc-stars-input label:hover,
.trc-stars-input label:hover ~ label {
    color: #ffd700;
}
.trc-form-group {
    margin-bottom: 20px;
}
.trc-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
}
.trc-submit-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}
.trc-submit-btn:hover {
    background: #2563eb;
}
.trc-message {
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
}
.trc-message.success { color: green; }
.trc-message.error { color: red; }

