/* c:\xampp\htdocs\cce32023\assets\css\landingRatingsV2.css */

.student-feedback-v2 {
    width: 100%;
    margin: 30px 0;
    font-family: 'Montserrat', sans-serif;
}

.feedback-header-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.feedback-title-v2 {
    font-size: 2rem;
    font-weight: 800;
    color: #000000;
    margin: 0;
    letter-spacing: -0.5px;
}

.btn-add-rating-v2 {
    background: #0b2d6a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(11, 45, 106, 0.15);
}

.btn-add-rating-v2:hover {
    background: #082150;
    transform: translateY(-1px);
}

/* 3-column card grid */
.ratings-cards-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.rating-card-v2 {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rating-card-v2:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.card-stars-v2 {
    display: flex;
    gap: 3px;
    margin-bottom: 14px;
}

.card-star-v2 {
    color: #ffb800;
    font-size: 15px;
}

.card-star-v2.empty {
    color: #e2e8f0;
}

.card-comment-v2 {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #334155;
    margin-bottom: 20px;
    font-weight: 400;
    flex-grow: 1;
}

.card-author-v2 {
    font-size: 0.9rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

/* Modal Overlays and Inputs */
.modal-rating-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-rating-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    font-family: 'Montserrat', sans-serif;
}

.modal-rating-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    margin-bottom: 10px;
}

.star-rating-input input {
    display: none;
}

.star-rating-input label {
    font-size: 28px;
    color: #ddd;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.2s ease;
}

.star-rating-input label:hover,
.star-rating-input label:hover~label,
.star-rating-input input:checked~label {
    color: #ffb800;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .ratings-cards-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 600px) {
    .ratings-cards-grid-v2 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feedback-title-v2 {
        font-size: 1.5rem;
    }
}
