/* ==========================================================================
   News Card & News Preview Card Components
   ========================================================================== */

.news-preview-card {
    background: #fff;
    border-radius: 22px;
    border: 1px solid rgba(110, 92, 123, 0.10);
    box-shadow: 0 12px 24px rgba(110, 92, 123, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.news-preview-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.news-preview-card__body {
    padding: 20px;
    display: grid;
    gap: 10px;
    flex: 1;
}

.news-preview-date {
    color: #6E5C7B;
    font-size: 13px;
    font-weight: 700;
}

.news-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(166, 111, 38, .08);
    box-shadow: 0 18px 38px rgba(83, 53, 22, .08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 50px rgba(83, 53, 22, .12);
}

.news-card__media {
    display: block;
    height: 230px;
    overflow: hidden;
    background: #f4eadc;
}

.news-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s ease;
}

.news-card:hover .news-card__media img {
    transform: scale(1.06);
}

.news-card__body {
    padding: 22px 22px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card__date {
    color: #6E5C7B;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 12px;
}

.news-card h2 {
    margin: 0 0 14px;
    color: #2d1b12;
    font-size: 1.28rem;
    line-height: 1.45;
    font-weight: 900;
}

.news-card p {
    margin: 0 0 20px;
    color: #6c5546;
    font-size: .98rem;
    line-height: 1.8;
    flex: 1;
}

.news-card .soft-button-alt {
    align-self: flex-start;
    background: #fff;
    border: 1px solid rgba(166, 111, 38, .14);
    color: #2d1b12;
    box-shadow: 0 10px 22px rgba(83, 53, 22, .06);
    width: 100%;
}

.news-card .soft-button-alt:hover {
    background: #6E5C7B;
    color: #fff;
    border-color: #6E5C7B;
}


/* ==========================================================================
   Product Card Premium Component
   ========================================================================== */

.product-card-premium {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #fff;
    transition: .45s ease;
    box-shadow:
        0 15px 40px rgba(0, 0, 0, .05),
        0 2px 8px rgba(0, 0, 0, .03);
}

.product-card-premium:hover {
    transform: translateY(-8px);
    box-shadow:
        0 30px 60px rgba(110, 92, 123, .18),
        0 10px 20px rgba(0, 0, 0, .06);
}

.product-card-premium__image {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.product-card-premium__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.product-card-premium:hover img {
    transform: scale(1.08);
}

.product-card-premium__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top,
            rgba(0, 0, 0, .42),
            rgba(0, 0, 0, .04));
}

.product-card-premium__badge {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(10px);
    font-size: 11px;
    font-weight: 700;
    color: #6E5C7B;
}

html[dir="rtl"] .product-card-premium__badge {
    left: auto;
    right: 18px;
}

.product-card-premium__content {
    padding: 24px;
}

.product-card-premium__content h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #2f2735;
    margin-bottom: 12px;
    line-height: 1.4;
}

.product-card-premium__content p {
    color: #6a6272;
    line-height: 1.8;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-premium__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 700;
    color: #6E5C7B;
    transition: .3s ease;
}

.product-card-premium__link span {
    transition: .3s ease;
}

.product-card-premium:hover .product-card-premium__link span {
    transform: translateX(6px);
}

html[dir="rtl"] .product-card-premium:hover .product-card-premium__link span {
    transform: translateX(-6px);
}


/* ==========================================================================
   FAQ Card Component (Home & Page variations)
   ========================================================================== */

.faq-item {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 244, 251, 0.95));
    border: 1px solid rgba(110, 92, 123, 0.12);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 14px 28px rgba(110, 92, 123, 0.08);
    transition: border-color .25s ease, box-shadow .25s ease;
}

.faq-item.is-open {
    border-color: rgba(110, 92, 123, 0.24);
    box-shadow: 0 18px 36px rgba(110, 92, 123, 0.12);
}

.faq-question {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 20px 22px;
    text-align: start;
    font: inherit;
    font-weight: 700;
    color: #2f2735;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
}

.faq-question__icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(110, 92, 123, 0.14);
    background: #fff;
    color: #6E5C7B;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    font-weight: 700;
    line-height: 1;
    flex: 0 0 auto;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .32s ease;
}

.faq-answer__inner {
    overflow: hidden;
    padding: 0 22px;
    color: #5d576e;
    line-height: 1.8;
    transition: padding .32s ease;
}

.faq-item.is-open .faq-answer {
    grid-template-rows: 1fr;
}

.faq-item.is-open .faq-answer__inner {
    padding: 0 22px 22px;
}

.faq-item.is-open .faq-question__icon {
    background: #6E5C7B;
    color: #fff;
    border-color: #6E5C7B;
}

/* FAQ Page variation */

.faq-page-item {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 242, 250, 0.96));
    border: 1px solid rgba(110, 92, 123, 0.12);
    border-radius: 24px;
    box-shadow: 0 16px 30px rgba(110, 92, 123, 0.08);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.faq-page-item:hover {
    transform: translateY(-2px);
    border-color: rgba(110, 92, 123, 0.22);
    box-shadow: 0 20px 38px rgba(110, 92, 123, 0.12);
}

.faq-page-question {
    width: 100%;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    cursor: pointer;
    text-align: start;
    font: inherit;
    font-size: 1.02rem;
    font-weight: 700;
    color: #2f2735;
    transition: background-color .25s ease;
}

.faq-page-question:hover,
.faq-page-question:focus-visible {
    background: rgba(110, 92, 123, 0.04);
    outline: none;
}

.faq-page-icon {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(110, 92, 123, 0.16);
    background: #fff;
    color: #6E5C7B;
    font-size: 20px;
    flex: 0 0 auto;
    transition: transform .28s ease, background-color .28s ease, color .28s ease;
}

.faq-page-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .34s ease;
}

.faq-page-answer__inner {
    overflow: hidden;
    padding: 0 24px;
    color: #5d576e;
    line-height: 1.9;
    transition: padding .34s ease;
}

.faq-page-item.is-open .faq-page-answer {
    grid-template-rows: 1fr;
}

.faq-page-item.is-open .faq-page-answer__inner {
    padding: 0 24px 24px;
}

.faq-page-item.is-open .faq-page-icon {
    transform: rotate(45deg);
    background: #6E5C7B;
    color: #fff;
}

/* Mobile Performance/Stability: Disable GPU-heavy backdrop blur on scrolls/animations */
@media (max-width: 1024px) {
    .product-card-premium__badge {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(255, 255, 255, 0.95) !important;
    }
}

/* ==========================================================================
   Testimonials Slider Component
   ========================================================================== */

.testimonials-slider {
    position: relative;
    max-width: 850px;
    margin: 40px auto 0;
    min-height: 250px;
}

.testimonials-track {
    position: relative;
    width: 100%;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 1;
}

.testimonial-slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.testimonial-card {
    background: #fff;
    border: 1px solid rgba(110, 92, 123, 0.10);
    border-radius: 22px;
    padding: 32px;
    box-shadow: 0 12px 28px rgba(110, 92, 123, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(110, 92, 123, 0.14);
    border-color: rgba(110, 92, 123, 0.22);
}

.testimonial-stars {
    margin-bottom: 18px;
    color: #6E5C7B;
    display: flex;
    gap: 4px;
}

.testimonial-text {
    font-size: 0.98rem;
    line-height: 1.85;
    color: #5d576e;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 16px;
    border-top: 1px solid rgba(110, 92, 123, 0.08);
    padding-top: 20px;
}

.testimonial-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(135deg, #c3b7cc, #6E5C7B);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    border: 1px solid rgba(110, 92, 123, 0.12);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.testimonial-user-info h4 {
    margin: 0 0 4px;
    font-size: 1.05rem;
    color: #2f2735;
    font-weight: 700;
}

.testimonial-user-info span {
    font-size: 0.85rem;
    color: #6E5C7B;
    font-weight: 600;
}

.testimonials-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
}

.testimonials-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(110, 92, 123, 0.15);
    background: #fff;
    color: #6E5C7B;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.25s, color 0.25s, border-color 0.25s;
    font-size: 14px;
}

.testimonials-arrow:hover {
    background: #6E5C7B;
    color: #fff;
    border-color: #6E5C7B;
}

.testimonials-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.testimonials-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: rgba(110, 92, 123, 0.2);
    cursor: pointer;
    transition: background-color 0.25s, transform 0.25s;
}

.testimonials-dot.is-active {
    background: #6E5C7B;
    transform: scale(1.22);
}

@media (max-width: 768px) {
    .testimonial-card {
        padding: 24px;
        border-radius: 20px;
    }
}

/* ===== RTL Arrow Flip & Alignment Adjustments ===== */
html[dir="rtl"] .testimonials-arrow i {
    transform: scaleX(-1);
    display: inline-block;
}

html[dir="rtl"] .product-hero__arrow span {
    transform: scaleX(-1);
    display: inline-block;
}

/* Neutral system overrides */
.news-preview-card,
.testimonial-card {
    background: var(--surface);
    border-color: var(--border);
    box-shadow: var(--shadow-soft);
}

.news-preview-date,
.news-card__date,
.testimonial-user-info span,
.testimonials-arrow,
.faq-question__icon,
.faq-page-icon {
    color: var(--accent);
}

.news-card .soft-button-alt:hover,
.faq-item.is-open .faq-question__icon,
.faq-page-item.is-open .faq-page-icon,
.testimonials-arrow:hover,
.testimonials-dot.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.faq-item,
.faq-page-item {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), var(--accent-tint)),
        radial-gradient(circle at top right, rgba(125, 211, 252, 0.08), transparent 24%);
    border-color: rgba(var(--accent-rgb), 0.12);
    box-shadow: var(--shadow-soft);
}

.faq-item.is-open,
.faq-page-item:hover,
.testimonial-card:hover {
    border-color: rgba(var(--accent-rgb), 0.22);
    box-shadow: var(--shadow-card);
}

.faq-question,
.faq-page-question,
.testimonial-user-info h4,
.product-card-premium__content h3 {
    color: var(--text-strong);
}

.faq-answer__inner,
.faq-page-answer__inner,
.testimonial-text,
.product-card-premium__content p {
    color: var(--text-muted);
}

.product-card-premium__badge,
.product-card-premium__link {
    color: var(--accent);
}

.testimonial-stars {
    color: #F59E0B;
}

.product-card-premium,
.news-preview-card,
.testimonial-card,
.faq-item,
.faq-page-item {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.faq-question:focus {
    outline: none !important;
}