/* Base Styles */
:root {
    --primary-color: #6c5ce7;
    --primary-dark: #5649c0;
    --secondary-color: #00cec9;
    --accent-color: #fd79a8;
    --text-color: #2d3436;
    --text-light: #636e72;
    --bg-light: #f5f6fa;
    --white: #ffffff;
    --black: #000000;
    --success-color: #00b894;
    --warning-color: #fdcb6e;
    --danger-color: #d63031;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    margin-bottom: 5px;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: rgb(255, 255, 255);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: rgba(108, 92, 231, 0.1);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-like, .btn-report {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 5px 10px;
    border-radius: 4px;
}

.btn-like:hover, .btn-report:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.btn-like i, .btn-report i {
    margin-right: 5px;
}

/* Hero Section */
.course-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 60px 0;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-text {
    flex: 1;
    max-width: 700px;
}

.hero-image {
    flex: 1;
    max-width: 500px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.course-banner {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.subtitle {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.rating-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.star-rating-display {
    position: relative;
    display: inline-block;
    font-size: 1rem;
    color: #FFD700;
}

.star-rating-display .stars {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    overflow: hidden;
    color: #FFD700;
}

.rating-text {
    font-size: 1rem;
    opacity: 0.9;
}

.meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.meta-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-info i {
    font-size: 0.9rem;
}

.cta-buttons-mobile {
    display: none;
}

/* Main Content Layout */
.course-main-container {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.course-content-column {
    flex: 2;
}

.course-sidebar {
    flex: 1;
    max-width: 350px;
}

/* Course Sections */
.course-section {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    margin-bottom: 30px;
}

.course-section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.course-section h2 i {
    font-size: 1.5rem;
}

/* Highlights Section */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.highlight-item i {
    color: var(--success-color);
    margin-top: 3px;
}

/* Learning Section */
.learning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.learning-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    background-color: rgba(0, 206, 201, 0.1);
    border-radius: 6px;
}

.learning-item i {
    color: var(--secondary-color);
    margin-top: 3px;
}

/* Content Section */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.content-meta {
    font-size: 0.9rem;
    color: var(--text-light);
}

.accordion {
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid #eee;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    padding: 15px 20px;
    background-color: var(--white);
    border: none;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.accordion-header:hover {
    background-color: #f9f9f9;
}

.accordion-title {
    font-weight: 600;
    flex: 1;
}

.lecture-meta {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0 15px;
}

.accordion-header i {
    transition: var(--transition);
}

.accordion-header.active i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #f9f9f9;
}

.accordion-content.show {
    max-height: 1000px;
}

.lecture-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    gap: 15px;
    border-bottom: 1px solid #eee;
}

.lecture-item:last-child {
    border-bottom: none;
}

.lecture-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Requirements Section */
.requirements-list {
    list-style-type: none;
}

.requirements-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.requirements-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    line-height: 1;
}

/* Description Section */
.description-content {
    line-height: 1.8;
}

/* Instructor Section */
.instructor-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.instructor-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    flex-shrink: 0;
}

.instructor-info {
    flex: 1;
}

.instructor-title {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.instructor-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.instructor-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.instructor-stats i {
    color: var(--primary-color);
}

.instructor-bio {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Reviews Section */
.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.overall-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5;
}
/* Rating Badge */
.rating-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.rating-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.rating-count {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Review Cards */
.review-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.review-header {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    flex-shrink: 0;
}

.reviewer-info {
    flex: 1;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.review-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

.review-content {
    margin-bottom: 15px;
    line-height: 1.7;
}

.review-actions {
    display: flex;
    gap: 15px;
}

/* Add Review Section */
.add-review-section {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-top: 30px;
    box-shadow: var(--box-shadow);
}

.add-review-section h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.rating-input {
    margin-bottom: 20px;
}

.rating-input label {
    font-weight: 600;
    margin-right: 15px;
}

.star-rating-input {
    display: inline-flex;
    gap: 5px;
}

.star-rating-input i {
    font-size: 1.5rem;
    color: #ccc;
    cursor: pointer;
    transition: var(--transition);
}

.star-rating-input i.hovered,
.star-rating-input i.selected {
    color: #FFD700;
}

.form-group {
    margin-bottom: 20px;
}

.form-group textarea {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    resize: vertical;
    font-family: inherit;
    transition: var(--transition);
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

.char-counter {
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 5px;
}

.login-prompt {
    text-align: center;
    padding: 20px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.login-prompt a {
    color: var(--primary-color);
    font-weight: 600;
}

/* Sidebar Styles */
.sidebar-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 25px;
    margin-bottom: 30px;
}

.course-thumbnail {
    width: 100%;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    height: 200px;
    object-fit: cover;
}

.price-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.current-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.original-price {
    font-size: 1.2rem;
    text-decoration: line-through;
    color: var(--text-light);
}

.discount-badge {
    background-color: var(--danger-color);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--danger-color);
    font-weight: 600;
    margin-bottom: 20px;
}

.pricing-timer i {
    font-size: 1.1rem;
}

.money-back-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(0, 206, 201, 0.1);
    padding: 10px 15px;
    border-radius: var(--border-radius);
    margin: 20px 0;
    color: var(--secondary-color);
    font-weight: 600;
}

.money-back-badge i {
    font-size: 1.2rem;
}

.includes-list {
    margin-top: 25px;
}

.includes-list h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.includes-list ul {
    list-style-type: none;
}

.includes-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.includes-list i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Training Card */
.training-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.training-card p {
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.program-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.program-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(108, 92, 231, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.program-icon i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.program-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.program-info p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* Share Card */
.share-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.social-share {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.social-btn.facebook {
    background-color: #3b5998;
}

.social-btn.twitter {
    background-color: #1da1f2;
}

.social-btn.linkedin {
    background-color: #0077b5;
}

.social-btn.whatsapp {
    background-color: #25d366;
}

.social-btn.mail {
    background-color: var(--text-light);
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* Benefits Section */
.benefits-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 80px 0;
}

.benefits-section h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-card {
    background-color: var(--white);
    color: var(--text-color);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.benefit-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.benefit-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.benefit-card p {
    font-size: 0.95rem;
}

/* Related Courses */
.related-courses {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.view-all {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.view-all:hover {
    color: var(--primary-dark);
}

.view-all i {
    font-size: 0.8rem;
}

.courses-slider {
    position: relative;
    padding: 0 40px;
}

.swiper {
    overflow: hidden;
}

.course-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 350px;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.course-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--danger-color);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 1;
}

.course-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.course-info {
    padding: 20px;
}

.course-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.instructor {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.stars {
    color: #FFD700;
    font-size: 0.9rem;
}

.rating-count {
    font-size: 0.8rem;
    color: var(--text-light);
}

.price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.current {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.original {
    font-size: 0.9rem;
    text-decoration: line-through;
    color: var(--text-light);
}

.swiper-button-next,
.swiper-button-prev {
    width: 40px;
    height: 40px;
    background-color: var(--white);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
    transition: var(--transition);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1rem;
    font-weight: bold;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 50px;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.faq-question {
    width: 100%;
    padding: 20px;
    background-color: var(--white);
    border: none;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: #f9f9f9;
}

.faq-question i {
    transition: var(--transition);
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #f9f9f9;
}

.faq-answer.show {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 20px 20px;
}

.faq-contact {
    text-align: center;
    margin-top: 40px;
}

.faq-contact a {
    color: var(--primary-color);
    font-weight: 600;
}

/* Floating Action Buttons */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.fab-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.fab-wishlist {
    background-color: var(--accent-color);
}

.fab-enroll {
    background-color: var(--primary-color);
    width: auto;
    padding: 0 25px;
    border-radius: 50px;
    display: none;
}

.fab-enroll span {
    margin-left: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

.fab-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.fab-btn:active {
    transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-image {
        max-width: 100%;
    }

    .meta-info {
        justify-content: center;
    }

    .course-main-container {
        flex-direction: column;
    }

    .course-sidebar {
        max-width: 100%;
    }

    .floating-actions {
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 40px 20px;
    }

    h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .rating-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .meta-info {
        justify-content: flex-start;
    }

    .cta-buttons-mobile {
        display: flex;
        gap: 15px;
        margin-top: 30px;
    }

    .btn-enroll, .btn-wishlist {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .original-price {
        display: none;
    }

    .floating-actions {
        bottom: 15px;
        right: 15px;
    }

    .fab-enroll {
        display: flex;
    }
}

@media (max-width: 576px) {
    .hero-content {
        padding: 30px 15px;
    }

    h1 {
        font-size: 1.8rem;
    }

    .highlights-grid, .learning-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .content-meta {
        font-size: 0.85rem;
    }

    .accordion-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .lecture-meta {
        margin-left: 0;
    }

    .instructor-card {
        flex-direction: column;
    }

    .instructor-avatar {
        margin-bottom: 15px;
    }

    .reviews-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .floating-actions {
        bottom: 10px;
        right: 10px;
    }

    .fab-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .fab-enroll span {
        display: none;
    }
}

.reviews-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    overflow: hidden;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}



/* Base Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    overflow: auto;
  }

  .comment-modal-content {
    position: relative;
    background-color: #fff;
    margin: 2% auto;
    padding: 24px;
    width: 90%;
    max-width: 800px;
    max-height: 600px;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
  }

  .close {
    position: absolute;
    right: 24px;
    top: 24px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
  }

  .close:hover {
    color: #333;
  }

  /* Header Section */
  .modal-header {
    margin-bottom: 20px;
  }

  .header-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
    font-weight: 600;
  }

  .review-stats {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .average-rating {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .rating-value {
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
  }

  .total-reviews {
    color: #666;
    font-size: 0.9rem;
  }

  /* Filter Section */
  .filter-section {
    margin-bottom: 20px;
  }

  .filter-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
  }

  .filter-group {
    flex: 1;
    min-width: 150px;
  }

  .filter-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
  }

  .styled-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    background-color: #f9f9f9;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
  }

  .search-group {
    position: relative;
  }

  #search-comments {
    width: 100%;
    padding: 10px 40px 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
  }

  .search-button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 40px;
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
  }

  /* Stats Bar */
  .stats-bar {
    display: flex;
    justify-content: space-around;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
  }

  .stat-item {
    text-align: center;
    padding: 0 10px;
  }

  .stat-value {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    color: #4a90e2;
  }

  .stat-label {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  /* Comments Container */
  .all-comments {
    flex: 1;
    overflow-y: auto;
    padding-right: 8px;
  }

  .comment {
    border: 1px solid #eee;
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 8px;
    background-color: #fff;
  }

  .comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
  }

  .user-info {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .model-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #4a90e2;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
  }

  .user-name {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
  }

  .rating-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #666;
  }

  .comment-content {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #444;
  }

  /* Loading Indicator */
  .loading-indicator {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #666;
    font-size: 0.9rem;
  }

  .spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(74, 144, 226, 0.2);
    border-radius: 50%;
    border-top-color: #4a90e2;
    animation: spin 1s linear infinite;
    margin-right: 10px;
  }

  @keyframes spin {
    to { transform: rotate(360deg); }
  }

  /* Star Rating */
  .stars {
    display: inline-flex;
    gap: 2px;
  }

  .stars span {
    color: #FFD700;
    font-size: 1rem;
  }

  /* Mobile Responsive Styles */
  @media (max-width: 768px) {
    .modal-content {
      width: 95%;
      margin: 10px auto;
      padding: 16px;
      max-height: 85vh;
    }

    .close {
      right: 16px;
      top: 16px;
      font-size: 24px;
    }

    .filter-row {
      flex-direction: column;
      gap: 8px;
    }

    .filter-group {
      min-width: 100%;
    }

    .stats-bar {
      padding: 8px;
    }

    .stat-value {
      font-size: 1rem;
    }

    .comment {
      padding: 12px;
    }

    .model-avatar {
      width: 32px;
      height: 32px;
      font-size: 0.9rem;
    }

    .user-name {
      font-size: 0.9rem;
    }

    .comment-content {
      font-size: 0.85rem;
    }
  }

  @media (max-width: 480px) {
    .modal-header h2 {
      font-size: 1.3rem;
    }

    .review-stats {
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
    }

    .stats-bar {
      flex-direction: column;
      gap: 8px;
      display: none;
    }

    .stat-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 4px 0;
    }

    .stat-label {
      font-size: 0.7rem;
    }
  }
  .report-button {
    width: 100%; /* Make the button fill the menu width */
    text-align: left; /* Align text to the left */
    padding: 8px 10px; /* Add padding to the button */
    border: none;
    background: none;
    cursor: pointer;
}

.report-button:hover {
    background-color: #f0f0f0; /* Highlight on hover */
}

.scroll-to-top {
    position: fixed;
    bottom: 70px;
    right: 15px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: white;
    border: none;
    cursor: pointer;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
    transition: all 0.3s ease;
    font-size: 20px;
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #5649c0, #8177d8);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

/* .reviews-modal .modal-content {
    background-color: white;
    margin: 30px auto;
    padding: 40px;
    border-radius: 12px;
    max-width: 900px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.reviews-modal.active .modal-content {
    transform: translateY(0);
}

.reviews-modal .modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #888;
    transition: all 0.2s ease;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.reviews-modal .modal-close:hover {
    color: #000;
    background-color: rgba(0, 0, 0, 0.05);
}

.reviews-modal h2 {
    margin-bottom: 30px;
    text-align: center;
    color: #2d3436;
    font-size: 28px;
    position: relative;
    padding-bottom: 15px;
}

.reviews-modal h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #6c5ce7, #a29bfe);
    border-radius: 3px;
}

.reviews-modal .reviews-container {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #6c5ce7 #f1f1f1;
    flex-grow: 1;
    padding-right: 10px;
    margin-right: -10px;
}

.reviews-modal .reviews-container::-webkit-scrollbar {
    width: 6px;
}

.reviews-modal .reviews-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.reviews-modal .reviews-container::-webkit-scrollbar-thumb {
    background: #6c5ce7;
    border-radius: 10px;
}

.reviews-modal .reviews-container::-webkit-scrollbar-thumb:hover {
    background: #5649c0;
}

.loading-indicator {
    text-align: center;
    padding: 15px;
    color: #666;
    display: none;
}

.no-reviews {
    text-align: center;
    padding: 30px;
    color: #666;
}

.reviews-stats {
    display: flex;
    justify-content: space-between;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    align-items: center;
}

.stats-item {
    text-align: center;
}

.stats-value {
    font-size: 24px;
    font-weight: 700;
}

.stats-label {
    font-size: 14px;
    opacity: 0.9;
}

.review-item {
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #6c5ce7;
    transition: transform 0.2s, box-shadow 0.2s;
}

.review-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    align-items: center;
}

.review-author {
    font-weight: 600;
    color: #2d3436;
}

.review-date {
    color: #888;
    font-size: 13px;
    margin-bottom: 10px;
}

.review-content {
    color: #555;
    line-height: 1.5;
}

.star-rating-display {
    position: relative;
    display: inline-block;
    color: #f39c12;
    font-size: 18px;
    unicode-bidi: bidi-override;
    direction: ltr;
}

.star-rating-display .stars {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    overflow: hidden;
}

.star-rating-display i {
    display: inline-block;
    margin-right: 2px;
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: white;
    border: none;
    cursor: pointer;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
    transition: all 0.3s ease;
    font-size: 20px;
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #5649c0, #8177d8);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

.reviews-filters {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: 500;
    color: #555;
}

.filter-group select,
.filter-group input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    min-width: 150px;
    transition: all 0.2s;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #6c5ce7;
    box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.2);
}

.filter-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: linear-gradient(135deg, #5649c0, #8177d8);
    transform: translateY(-2px);
}

.reset-btn {
    padding: 8px 20px;
    background: #f1f1f1;
    color: #555;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.reset-btn:hover {
    background: #e0e0e0;
}

.search-box {
    position: relative;
    flex-grow: 1;
    max-width: 300px;
}

.search-box input {
    width: 100%;
    padding: 8px 15px 8px 35px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
}

.search-box::before {
    content: '🔍';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.6;
}

@media (max-width: 768px) {
    .reviews-modal .modal-content {
        margin: 20px auto;
        padding: 25px;
        width: 90%;
    }

    .reviews-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        width: 100%;
    }

    .filter-group select,
    .filter-group input {
        width: 100%;
    }

    .search-box {
        max-width: 100%;
    }
} */