.reviews-page {
    background: #f7f8fb;
    color: #172033;
}

.reviews-hero {
    min-height: auto !important;
    padding-top: 140px !important;
    padding-bottom: 70px !important;
    color: #fff;
    position: relative;
    overflow: hidden;
    background: url('../../uploads/images/rev.jpg') no-repeat center center;
    background-size: cover;
}

.reviews-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 80%);
    pointer-events: none;
}

.reviews-hero .breadcrumb a,
.reviews-hero .breadcrumb-item,
.reviews-hero .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.76);
}

.review-kicker {
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.reviews-hero h1 {
    max-width: 820px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.1rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.04;
    margin-bottom: 18px;
}

.review-lead {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.08rem;
    line-height: 1.7;
}

.rating-panel,
.reviews-toolbar,
.review-form-shell {
    background: #fff;
    border: 1px solid #e6ebf2;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.04);
}

.rating-panel {
    color: #172033;
    padding: 28px;
    border: 1px solid #e5e7eb;
}

.rating-stars,
.review-stars {
    color: #fbbf24;
}

.rating-score {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    margin-top: 8px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-heading h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    margin: 0;
}

.reviews-toolbar {
    padding: 18px;
    border: 1px solid #e5e7eb;
}

.review-card {
    height: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.08);
}

.review-card-head {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f5f3ff;
    color: #6d28d9;
    display: grid;
    place-items: center;
    font-weight: 800;
    overflow: hidden;
    flex: 0 0 auto;
    border: 2px solid rgba(139, 92, 246, 0.2);
    padding: 2px;
    font-size: 0.9rem;
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.review-card h3 {
    font-size: 0.9rem;
    font-weight: 800;
    margin: 0;
    color: #1a1a2e;
}

.review-card-head p {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0;
}

.review-card h4 {
    font-size: 0.95rem;
    font-weight: 800;
    margin: 10px 0 4px;
    color: #1a1a2e;
}

.review-card p {
    color: #4b5563;
    margin-bottom: 0;
    font-size: 0.85rem;
    line-height: 1.5;
}

.review-card-meta,
.review-card-foot {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    color: #6b7280;
    font-size: 0.78rem;
}

.review-course {
    color: #7c3aed !important;
    font-weight: 700;
    margin-bottom: 8px !important;
    font-size: 0.8rem !important;
}

.review-read-more {
    display: inline-flex;
    align-items: center;
    border: 0;
    background: transparent;
    color: #7c3aed;
    font-weight: 800;
    padding: 8px 0 0;
    margin: 0;
    font-size: 0.8rem;
    transition: color 0.2s ease;
}

.review-read-more:hover,
.review-read-more:focus {
    color: #6d28d9;
    text-decoration: underline;
}

.verified-badge,
.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 800;
    border-radius: 999px;
    padding: 5px 9px;
}

.verified-badge {
    color: #047857;
    background: #ecfdf5;
}

.featured-badge {
    color: #92400e;
    background: #fffbeb;
}

.review-card-foot {
    border-top: 1px solid #eef2f7;
    margin-top: 18px;
    padding-top: 16px;
}

.review-full-modal .modal-content {
    border: 0;
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(139, 92, 246, 0.15);
}

.review-full-modal .modal-header,
.review-full-modal .modal-footer {
    border-color: #eef2f7;
    padding: 22px 24px;
}

.review-full-modal .modal-body {
    padding: 24px;
}

.review-modal-author {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 22px;
}

.review-modal-author h3 {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 3px;
    color: #1a1a2e;
}

.review-modal-author p {
    color: #6b7280;
    margin: 0 0 8px;
}

.review-full-text {
    color: #374151;
    font-size: 1rem;
    line-height: 1.8;
    white-space: normal;
}

.review-social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #7c3aed;
    font-weight: 800;
    text-decoration: none;
    transition: color 0.2s ease;
}

.review-social-link:hover {
    color: #6d28d9;
}

.empty-reviews {
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 36px;
    text-align: center;
    color: #6b7280;
}

.review-form-band {
    padding: 55px 0;
    background: #f5f3ff;
}

.review-form-shell {
    padding: 28px;
    border: 1px solid #e5e7eb;
}

.review-form {
    margin-top: 22px;
}

.review-prompts {
    color: #4b5563;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    font-size: 0.92rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .reviews-hero {
        padding-top: 30px !important;
        padding-bottom: 20px !important;
    }

    .review-form-shell,
    .rating-panel {
        padding: 20px;
        border-radius: 16px;
    }
}

/* ── Pagination ── */
.reviews-page .pagination {
    gap: 6px;
    margin-top: 3rem;
}

.reviews-page .page-item .page-link {
    border: 1px solid #e5e7eb;
    color: #4b5563;
    border-radius: 8px !important;
    padding: 8px 14px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.reviews-page .page-item .page-link:hover {
    background: #f5f3ff;
    border-color: #8b5cf6;
    color: #7c3aed;
}

.reviews-page .page-item.active .page-link {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

.reviews-page .page-item.disabled .page-link {
    color: #d1d5db;
    background: #f9fafb;
    border-color: #e5e7eb;
}

/* ── Bookmark Slide-to-Reveal Button Design ── */
.bookmarkBtn {
    width: 180px;
    height: 48px;
    border-radius: 40px;
    border: 1px solid #e5e7eb;
    background-color: rgb(255, 255, 255);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition-duration: .3s;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.IconContainer {
    width: 38px;
    height: 38px;
    background-color: rgb(124, 58, 237);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 2;
    transition-duration: .3s;
}

.icon {
    border-radius: 1px;
}

.bookmarkBtn .text {
    height: 100%;
    width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(26, 26, 26);
    z-index: 1;
    transition-duration: .3s;
    font-size: 0.92rem;
    font-weight: 700;
    margin: 0;
}

.bookmarkBtn:hover .IconContainer {
    width: 168px;
    border-radius: 40px;
    transition-duration: .3s;
}

.bookmarkBtn:hover .text {
    transform: translate(10px);
    width: 0;
    font-size: 0;
    transition-duration: .3s;
}

.bookmarkBtn:active {
    transform: scale(0.95);
    transition-duration: .3s;
}

.review-hero-btn-hint {
    font-size: 0.72rem !important;
    opacity: 0.65;
    font-weight: 400 !important;
    margin-top: 6px;
    color: #4b5563;
}

/* --- Rating Distribution breakdown bars --- */
.rating-distribution {
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
}

.distribution-row .progress-bar {
    background-color: #fbbf24 !important;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.distribution-row .stars-label {
    color: #4b5563;
}

/* --- Interactive Star Selector Widget --- */
.star-rating-interactive .star-item {
    color: #d1d5db;
    /* Default gray empty star */
    cursor: pointer;
    transform: scale(1);
    transition: transform 0.15s ease, color 0.15s ease;
}

.star-rating-interactive .star-item.active {
    color: #fbbf24;
    /* Yellow active star */
}

.star-rating-interactive .star-item.hover {
    color: #f59e0b;
    /* Darker amber star on hover */
    transform: scale(1.15);
}

.star-rating-interactive .rating-description {
    font-size: 0.85rem;
    font-weight: 600;
    color: #7c3aed !important;
}

/* --- Social verification badge in review cards --- */
.social-verify-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0284c7;
    background-color: #f0f9ff;
    padding: 4px 8px;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.social-verify-badge:hover {
    background-color: #e0f2fe;
    color: #0369a1;
}

.social-verify-badge i {
    font-size: 0.8rem;
}