/* -------------------------------------------------
   Review System – Global Variables
   ------------------------------------------------- */
:root {
    --primary: #862E03;
    --light: #FFF0E7;
    --gray: #666;
    --text: #333;
    --border: #eee;
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 30px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

/* -------------------------------------------------
   Form Widget – Modern & Clean
   ------------------------------------------------- */
   

   
.review-form-widget {
    background: var(--light);
    padding: 2.5rem;
    border-radius: 16px;
    font-family: 'Poppins', sans-serif;
    max-width: 460px;
    margin: 2rem auto;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(134, 46, 3, 0.1);
}
.review-form-widget h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    margin-bottom: 1.8rem;
    text-align: center;
    font-size: 1.9rem;
    font-weight: 600;
}
.review-form-widget .form-group {
    margin-bottom: 1.2rem;
}
.review-form-widget label {
    display: block;
    margin-bottom: .5rem;
    font-weight: 500;
    color: var(--primary);
    font-size: 0.95rem;
}
.review-form-widget input,
.review-form-widget textarea {
    width: 100%;
    padding: .9rem 1rem;
    border: 1.5px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: #fff;
}
.review-form-widget input:focus,
.review-form-widget textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(134, 46, 3, 0.15);
}
.review-form-widget .star-rating {
    display: flex;
    gap: .5rem;
    justify-content: center;
    margin: 1.2rem 0;
    direction: rtl;
    unicode-bidi: bidi-override;
}
.review-form-widget .star-rating input { display: none; }
.review-form-widget .star-rating label {
    cursor: pointer;
    font-size: 2rem;
    color: #ddd;
    transition: color .2s;
}
.review-form-widget .star-rating input:checked ~ label,
.review-form-widget .star-rating label:hover,
.review-form-widget .star-rating label:hover ~ label {
    color: #ffc107;
}



.review-form-widget button,
.review-form-widget button[type="submit"],
#review-submit-form button,
div.review-form-widget button {
    border-radius: 0 !important;
    background: #fae2d4 !important;
    color: #862F04 !important;
    border: 2px solid #862F04 !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    transition: all 0.35s ease !important;
    font-size: 1.15rem !important;            /* ← Bigger text */
    line-height: 1.4 !important;
    height: 80px;
}

.review-form-widget button:hover,
.review-form-widget button[type="submit"]:hover,
#review-submit-form button:hover,
div.review-form-widget button:hover {
    background: #862F04 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(134, 46, 4, 0.25) !important;
}



.review-form-widget .msg {
    margin-top: 1rem;
    text-align: center;
    font-weight: 500;
    font-size: 0.95rem;
}

/* -------------------------------------------------
   Reviews List Widget – Compact & Modern
   ------------------------------------------------- */
.review-list-widget {
    font-family: 'Poppins', sans-serif;
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    margin: 2rem auto;
    max-width: 1100px;
}
.review-list-widget h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    margin-bottom: 1.8rem;
    text-align: center;
    font-size: 2.1rem;
    font-weight: 600;
}

/* Grid: 2 cards per row on desktop */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    justify-content: center;
}

/* Individual Review Card – Compact */
.review-item {
    background: #fff;
    border: 1px solid rgba(134, 46, 3, 0.1);
    border-radius: 14px;
    padding: 1.4rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: fit-content;
    min-height: 180px;
    max-height: 220px;
    overflow: hidden;
}

.review-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(134, 46, 3, 0.25);
}

/* Avatar + Name – Centered, Avatar Left */
.review-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    margin-bottom: 0.8rem;
}

.review-avatar {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    background: #862E03 !important;
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    box-shadow: 0 3px 8px rgba(134, 46, 3, 0.22);
}

.review-name-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.3;
}

.review-name {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.15rem;
    margin: 0;
}

.review-occupation {
    font-size: 0.82rem;
    color: var(--gray);
    margin-top: 0.1rem;
    font-weight: 500;
}

/* Stars – Compact */
.review-stars {
    color: #ffc107;
    font-size: 1rem;
    margin: 0.5rem 0;
    text-align: center;
    letter-spacing: 1px;
}

/* Review Text – With CLOSE Quotation Marks */
.review-text {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
    white-space: normal !important;
    display: block !important;
    max-height: none !important;
    overflow: visible !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: vertical;
}

.review-text::before,
.review-text::after {
    font-family: Georgia, serif;
    font-size: 1.8rem;
    color: var(--primary);
    opacity: 0.25;
    position: absolute;
    line-height: 1;
    font-weight: bold;
}

.review-text::before {
    content: '“';
    left: 0;
    top: -4px;
}

.review-text::after {
    content: '”';
    right: 0;
    bottom: -8px;
}

/* Date – Compact */
.review-date {
    font-size: 0.78rem;
    color: var(--gray);
    text-align: center;
    margin-top: auto;
    padding-top: 0.5rem;
    font-weight: 500;
    opacity: 0.9;
}

/* -------------------------------------------------
   RESPONSIVE: Stack on Mobile
   ------------------------------------------------- */
@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .review-list-widget,
    .review-form-widget {
        padding: 1.8rem;
        margin: 1.5rem auto;
    }

    .review-list-widget h3,
    .review-form-widget h3 {
        font-size: 1.75rem;
    }

    .review-item {
        padding: 1.2rem;
        min-height: 160px;
        max-height: 200px;
    }
}

@media (max-width: 480px) {
    .review-header {
        flex-direction: column;
        text-align: center;
        gap: 0.6rem;
    }

    .review-avatar {
        margin-bottom: 0.3rem;
    }

    .review-name-info {
        align-items: center;
        text-align: center;
    }

    .review-text {
        font-size: 0.92rem;
        padding: 0 0.5rem;
        -webkit-line-clamp: 2;
    }

    .review-text::before { font-size: 1.6rem; top: -3px; left: -2px; }
    .review-text::after { font-size: 1.6rem; bottom: -6px; right: -2px; }
}










/* ——————————————————————
   HORIZONTAL AUTO-SCROLLING CAROUSEL
   —————————————————————— */
.reviews-carousel-wrapper {
    overflow: hidden;
    padding: 2rem 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    margin: 2rem auto;
    max-width: 1100px;
}

.reviews-carousel {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: scrollReviews 50s linear infinite;
}

.review-item {
    flex: 0 0 380px;           /* Card width — adjust if you want bigger/smaller */
    background: #fff;
    border: 1px solid rgba(134, 46, 3, 0.1);
    border-radius: 14px;
    padding: 1.6rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    min-height: 220px;
    display: flex;
    flex-direction: column;
}

.review-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* Smooth infinite scroll */
@keyframes scrollReviews {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Pause on hover (nice UX) */
.reviews-carousel-wrapper:hover .reviews-carousel {
    animation-play-state: paused;
}

/* Responsive – slow down on mobile & smaller cards */
@media (max-width: 768px) {
    .review-item { flex: 0 0 300px; }
    .reviews-carousel { animation: scrollReviews 40s linear infinite; }
}
@media (max-width: 480px) {
    .review-item { flex: 0 0 260px; }
}




/* ——————————————————————
   FIX TEXT CUTTING IN CAROUSEL
   —————————————————————— */
.reviews-carousel .review-item {
    /* Remove all the old height restrictions */
    min-height: auto !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    
    /* Let the card grow with content */
    flex: 0 0 380px;           /* desktop width */
    padding: 1.8rem 1.6rem;
}

/* Remove the 3-line clamp completely */
.reviews-carousel .review-text {
    display: block !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    overflow: visible !important;
    max-height: none !important;
    padding: 0 0.4rem;
}

/* Optional: make cards a bit wider/taller on desktop for breathing room */
@media (min-width: 1024px) {
    .reviews-carousel .review-item {
        flex: 0 0 420px;
    }
}

/* Mobile – smaller cards but still show full text */
@media (max-width: 768px) {
    .reviews-carousel .review-item {
        flex: 0 0 320px;
        padding: 1.6rem 1.4rem;
    }
}
@media (max-width: 480px) {
    .reviews-carousel .review-item {
        flex: 0 0 280px;
    }
}

.reviews-carousel-wrapper.paused .reviews-carousel,
.reviews-carousel-wrapper:hover .reviews-carousel {
    animation-play-state: paused !important;
}


























/*=============================================
=                Masonry Grid                =
=============================================*/

.reviews-masonry {
    column-count: 3;
    column-gap: 25px;
    padding-top: 15px;
}

@media (max-width: 1024px) {
    .reviews-masonry {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .reviews-masonry {
        column-count: 1;
    }
}

/* Masonry Cards */
.reviews-masonry .review-item {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    margin-bottom: 25px;

    background: #ffffff;
    padding: 25px 20px;
    border-radius: 14px;
    border: 1px solid #eaeaea;
    box-shadow: 0 3px 12px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reviews-masonry .review-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Avatar */
.review-avatar {
    width: 55px;
    height: 55px;
    background-color: #f1b70f; /* keep original color */
    border-radius: 50%;
    font-size: 22px;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    margin-bottom: 15px;
}

/* Header */
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.review-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1e1e1e;
}

.review-occupation {
    font-size: 0.9rem;
    color: #555;
}

/* Stars */
.review-stars {
    font-size: 1.1rem;
    color: #f1b70f;
}

/* Text */
.review-text {
    display: block !important;
    white-space: normal !important;

    /* Remove all line clamp behaviors */
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    overflow: visible !important;
    text-overflow: unset !important;

    /* Remove restrictive heights */
    max-height: none !important;
    height: auto !important;
}
/* Date */
.review-date {
    font-size: 0.85rem;
    color: #777;
    margin-top: 10px;
}

/* Remove ALL old carousel behavior */
.reviews-carousel-wrapper,
.reviews-carousel {
    display: block !important;
    overflow: visible !important;
    white-space: normal !important;
    animation: none !important;
}

.review-item {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}








/* -------------------------------------------------

:root {
    --primary: #862E03;
    --light: #FFF0E7;
    --gray: #666;
}


.review-form-widget {
    background: var(--light);
    padding: 2rem;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    max-width: 420px;
    margin: 0 auto;
}
.review-form-widget h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
}
.review-form-widget .form-group {
    margin-bottom: 1rem;
}
.review-form-widget label {
    display: block;
    margin-bottom: .4rem;
    font-weight: 500;
    color: var(--gray);
}
.review-form-widget input,
.review-form-widget textarea {
    width: 100%;
    padding: .75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
}
.review-form-widget .star-rating {
    display: flex;
    gap: .4rem;
    justify-content: center;
    margin: 1rem 0;
}
.review-form-widget .star-rating input { display:none; }
.review-form-widget .star-rating label {
    cursor: pointer;
    font-size: 1.8rem;
    color: #ddd;
    transition: color .2s;
}
.review-form-widget .star-rating input:checked ~ label,
.review-form-widget .star-rating label:hover,
.review-form-widget .star-rating label:hover ~ label {
    color: #ffc107;
}
.review-form-widget button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: .85rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: .5rem;
}
.review-form-widget button:hover { opacity: .9; }
.review-form-widget .msg { margin-top:1rem; text-align:center; }


.review-list-widget {
    font-family: 'Poppins', sans-serif;
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.review-list-widget h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
}
.review-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}
.review-item:last-child { border-bottom:none; }

.review-avatar {
    flex: 0 0 52px;
    width: 52px; height: 52px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}
.review-content {
    flex: 1;
}
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .4rem;
}
.review-name {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}
.review-occupation {
    font-size: .85rem;
    color: var(--gray);
}
.review-stars {
    color: #ffc107;
    font-size: .9rem;
}
.review-text {
    margin: .6rem 0;
    line-height: 1.5;
    color: #333;
}
.review-date {
    font-size: .8rem;
    color: var(--gray);
    
}    */
