/* ==========================================
   HEADER
   NOTE: animation killing is handled by inline <style> in header.php
   which loads last in <head> and guaranteed wins the cascade.
   This file only handles transition and hide/show transform.
========================================== */

header {
    transition: transform 0.3s ease, background-color 0.4s ease, box-shadow 0.4s ease !important;
    will-change: transform;
    /* Start transparent at top of page */
    background-color: transparent !important;
    box-shadow: none !important;
}

header.fixed {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    transform: translateY(0);
    background: white !important;
}

header.header-scrolled {
    /* Solid background when scrolled */
    background-color: #fff !important;
    box-shadow: 0px 4px 34px 0px rgba(229, 229, 229, 0.25) !important;
}

header.header-hidden {
    transform: translateY(-100%) !important;
}

/* ==========================================
   LANGUAGE SWITCHER
========================================== */

.language-switcher {
    position: relative;
    margin-left: 15px;
}

.language-switcher .dropdown-toggle {
    background: linear-gradient(141deg, #273f52 40%, #52cdd4 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 8px 15px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    margin-right: 10px;
}

.language-switcher .dropdown-toggle:hover {
    background: linear-gradient(180deg, #52cdd4 40%, #273f52 100%);
    border-color: rgba(255, 255, 255, 0.5);
}

.language-switcher .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    display: none;
    z-index: 1000;
    overflow: hidden;
}

.language-switcher .dropdown-menu.show {
    display: block;
}

.language-switcher .dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #333;
    border: none;
    background: transparent;
}

.language-switcher .dropdown-item:hover {
    background: #273f52;
    color: white;
}

.language-switcher .dropdown-item.active {
    background: #e9ecef;
    font-weight: 600;
    color: #273f52;
}

.lang-flag {
    font-size: 20px;
    line-height: 1;
}

@media (max-width: 768px) {
    .language-switcher {
        margin-left: 10px;
    }

    .language-switcher .dropdown-toggle {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* ==========================================
   HERO CTA STACK
========================================== */

.hero-cta-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
}

[dir="rtl"] .hero-cta-stack {
    align-items: flex-start;
}

.hero-cta-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cta-primary-btn {
    background: #5abab5 !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    color: #fff !important;
    padding: 13px 28px !important;
    border-radius: 50px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    gap: 6px;
}

.cta-primary-btn:hover {
    background: rgba(90, 186, 181, 0.85) !important;
    color: #fff !important;
}

/* ==========================================
   SECTION SPACING
========================================== */

.feature-build {
    margin-bottom: 0 !important;
    padding-bottom: 100px !important;
}

/* ==========================================
   CONTACT FORM SECTION
========================================== */

.form-section {
    background: #f8f9fa;
    padding: 60px 0;
}

.form-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.form-card h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1e293b;
}

.form-card .subtitle {
    color: #64748b;
    margin-bottom: 30px;
}

.form-label {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.form-control,
.form-select {
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.btn-submit {
    background: #273f52;
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 600;
    color: white;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    background: #52cdd4;
}

/* ==========================================
   HERO SECTION — CTA BUTTONS
========================================== */

.cta-secondary {
    background: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    color: #fff !important;
    padding: 13px 28px !important;
    border-radius: 50px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    margin-top: 12px;
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.7) !important;
    color: #fff !important;
}

@media (max-width: 767px) {
    .cta-secondary {
        margin-top: 12px;
    }
}

/* ── Video Play Button ───────────────────────────────────────────────────────── */

.cta-play-btn {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    transition: background 0.3s ease, transform 0.2s ease;
    margin-top: 12px;
}

.cta-play-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.08);
    color: #fff;
}

.cta-play-btn i {
    font-size: 1rem;
    margin-left: 3px;
    position: relative;
    z-index: 1;
}

[dir="rtl"] .cta-play-btn i {
    margin-left: 0;
    margin-right: 3px;
}

.cta-play-btn::before,
.cta-play-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.45);
    animation: videoPulse 2s ease-out infinite;
}

.cta-play-btn::after {
    animation-delay: 0.9s;
}

@keyframes videoPulse {
    0%   { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(2); opacity: 0; }
}

/* ── Video Modal ──────────────────────────────────────────────────────────────── */

#videoModal .modal-dialog {
    max-width: 860px;
}

#videoModal .modal-content {
    background: #000;
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

#videoModal .modal-header {
    background: #000;
    border-bottom: none;
    padding: 12px 16px 0;
}

#videoModal .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

#videoModal .modal-body {
    padding: 8px 0 0;
}

#videoModal video {
    width: 100%;
    display: block;
    max-height: 480px;
    background: #000;
}

/* ==========================================
   STATS BAR
========================================== */

.stats-bar-section {
    background: #fff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 40px 0;
    position: relative;
    z-index: 2;
}

.stats-bar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stats-bar-item {
    text-align: center;
    padding: 20px 16px;
    position: relative;
}

.stats-bar-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: #e2e8f0;
}

[dir="rtl"] .stats-bar-item:not(:last-child)::after {
    right: auto;
    left: 0;
}

.stats-bar-number {
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: #273f52;
    line-height: 1;
    margin-bottom: 6px;
}

.stats-bar-label {
    font-size: 0.88rem;
    color: #64748b;
    font-weight: 500;
    line-height: 1.4;
}

@media (max-width: 767px) {
    .stats-bar-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-bar-item:nth-child(2)::after,
    .stats-bar-item:nth-child(4)::after {
        display: none;
    }

    .stats-bar-item:nth-child(1),
    .stats-bar-item:nth-child(2) {
        border-bottom: 1px solid #e2e8f0;
    }

    .stats-bar-number {
        font-size: 1.8rem;
    }
}

/* ==========================================
   PROBLEM SECTION
========================================== */

.problem-section {
    padding: 80px 0 60px;
    background: #f8fafc;
}

.problem-eyebrow {
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #52cdd4;
    margin-bottom: 12px;
    display: block;
}

.pain-card {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px 24px;
    height: 100%;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.pain-card:hover {
    border-color: #52cdd4;
    box-shadow: 0 8px 30px rgba(82, 205, 212, 0.12);
    transform: translateY(-4px);
}

.pain-icon {
    font-size: 2rem;
    margin-bottom: 14px;
    display: block;
}

.pain-card h5 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.pain-card p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.65;
    margin: 0;
}

.problem-solution-card {
    background: linear-gradient(135deg, #273f52 0%, #52cdd4 100%);
    border-radius: 16px;
    padding: 40px;
    color: #fff;
    margin-top: 40px;
}

.problem-solution-card h3 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.problem-solution-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    margin: 0;
    line-height: 1.7;
}

@media (max-width: 767px) {
    .problem-section {
        padding: 50px 0 40px;
    }

    .problem-solution-card {
        padding: 28px 20px;
    }

    .problem-solution-card h3 {
        font-size: 1.2rem;
    }
}

/* ==========================================
   PRICING SECTION
========================================== */

.pricing-section {
    padding: 100px 0;
    background: linear-gradient(140deg, #273f52 40%, #52cdd4 100%);
    position: relative;
    overflow: hidden;
}

.pricing-section .circle-2 {
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.3;
}

.pricing-section h1,
.pricing-section p {
    color: white;
}

.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(79, 70, 229, 0.2);
    border-color: #52cdd4;
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #273f52 0%, #52cdd4 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(82, 205, 212, 0.4);
    white-space: nowrap;
}

[dir="rtl"] .pricing-badge {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

.pricing-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.pricing-description {
    color: #64748b;
    font-size: 1rem;
}

.pricing-amount {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 30px;
    border-radius: 15px;
    margin: 0 -10px;
}

.price-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    direction: ltr;
}

.price-wrapper .currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: #273f52;
}

.price-wrapper .amount {
    font-size: 4rem;
    font-weight: 800;
    color: #273f52;
    line-height: 1;
}

.price-wrapper .period {
    font-size: 1rem;
    color: #64748b;
    font-weight: 500;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    padding: 12px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 1rem;
    color: #334155;
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li i {
    width: 24px;
    height: 24px;
    min-width: 24px;
    background: linear-gradient(135deg, #273f52 0%, #52cdd4 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    order: 0;
}

.features-list li span {
    flex: 1;
    order: 1;
}

[dir="rtl"] .features-list li {
    flex-direction: row-reverse;
    text-align: right;
}

[dir="rtl"] .features-list li i {
    order: 1;
}

[dir="rtl"] .features-list li span {
    order: 0;
    text-align: right;
}

.btn-pricing {
    background: linear-gradient(135deg, #273f52 0%, #52cdd4 100%);
    color: white;
    padding: 15px 50px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-pricing:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(82, 205, 212, 0.4);
    color: white;
}

[dir="rtl"] .btn-pricing {
    flex-direction: row-reverse;
}

.pricing-note {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

[dir="rtl"] .pricing-note {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    .pricing-section {
        padding: 60px 0;
    }

    .pricing-card {
        padding: 40px 25px;
    }

    .pricing-title {
        font-size: 1.5rem;
    }

    .price-wrapper .amount {
        font-size: 3rem;
    }

    .price-wrapper .currency {
        font-size: 1.2rem;
    }

    .btn-pricing {
        padding: 12px 40px;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }

    .features-list li {
        font-size: 0.95rem;
    }
}

/* ==========================================
   TESTIMONIALS SECTION
========================================== */

.testimonials-section-new {
    padding: 80px 0 60px;
    background: #fff;
}

.testimonial-card-new {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.testimonial-card-new:hover {
    border-color: #52cdd4;
    box-shadow: 0 8px 30px rgba(82, 205, 212, 0.12);
    transform: translateY(-4px);
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 0.85rem;
    margin-bottom: 14px;
    display: flex;
    gap: 2px;
}

[dir="rtl"] .testimonial-stars {
    flex-direction: row-reverse;
}

.testimonial-quote-text {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.75;
    flex: 1;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

[dir="rtl"] .testimonial-author {
    flex-direction: row;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #273f52 0%, #52cdd4 100%);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.testimonial-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2px;
}

.testimonial-role {
    font-size: 0.8rem;
    color: #64748b;
}

.trust-badge-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 48px;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
    transition: border-color 0.2s ease;
}

.trust-badge:hover {
    border-color: #52cdd4;
}

[dir="rtl"] .trust-badge {
    flex-direction: row-reverse;
}

@media (max-width: 767px) {
    .testimonials-section-new {
        padding: 50px 0 40px;
    }
}

/* ==========================================
   SOCIAL ICONS (FOOTER)
========================================== */

.social-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon-btn:hover {
    background: #52cdd4;
    color: #273f52;
    transform: translateY(-3px);
}

/* ==========================================
   FAQ MINI SECTION (footer.php)
========================================== */

.faq-footer-section {
    background: #f8fafc;
    padding: 80px 0 60px;
    border-top: 1px solid #e2e8f0;
}

.faq-footer-header {
    margin-bottom: 40px;
}

.faq-footer-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.faq-footer-header p {
    color: #64748b;
    font-size: 1rem;
}

.faq-footer-list {
    max-width: 760px;
    margin: 0 auto 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-footer-item {
    background: #fff;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-footer-item:has(.faq-footer-question.active) {
    border-color: #52cdd4;
    box-shadow: 0 4px 20px rgba(82, 205, 212, 0.12);
}

.faq-footer-question {
    width: 100%;
    background: none;
    border: none;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    text-align: start;
    font-size: 0.97rem;
    font-weight: 600;
    color: #1e293b;
    transition: color 0.2s ease;
}

.faq-footer-question.active {
    color: #273f52;
}

[dir="rtl"] .faq-footer-question {
    flex-direction: row-reverse;
    text-align: right;
}

[dir="rtl"] .faq-footer-question span {
    text-align: right;
    flex: 1;
}

[dir="rtl"] .faq-footer-question .faq-chevron {
    flex-shrink: 0;
}

.faq-chevron {
    font-size: 1.1rem;
    color: #94a3b8;
    flex-shrink: 0;
    transition: transform 0.3s ease, color 0.2s ease;
}

.faq-footer-question.active .faq-chevron {
    transform: rotate(180deg);
    color: #52cdd4;
}

.faq-footer-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.3s ease;
    padding: 0 22px;
}

.faq-footer-answer.open {
    max-height: 400px;
    padding-bottom: 20px;
}

.faq-footer-answer p {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.7;
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
}

[dir="rtl"] .faq-footer-answer p {
    text-align: right;
    direction: rtl;
}

.faq-view-more-btn {
    background: linear-gradient(135deg, #273f52 0%, #52cdd4 100%);
    color: #fff;
    padding: 13px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.faq-view-more-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(82, 205, 212, 0.4);
}

[dir="rtl"] .faq-view-more-btn {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    .faq-footer-section {
        padding: 50px 0 40px;
    }

    .faq-footer-header h2 {
        font-size: 1.5rem;
    }

    .faq-footer-question {
        font-size: 0.92rem;
        padding: 15px 18px;
    }
}

/* ==========================================
   FAQ FULL PAGE (faq.php)
========================================== */

.faq-hero {
    background: linear-gradient(140deg, #273f52 40%, #52cdd4 100%);
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.faq-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('assets/img/bg/hero-bg1.png') center/cover no-repeat;
    opacity: 0.05;
}

.faq-hero h1 {
    color: #fff;
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 14px;
    position: relative;
}

.faq-hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto 36px;
    position: relative;
}

.faq-search-wrapper {
    max-width: 560px;
    margin: 0 auto;
    position: relative;
}

.faq-search-input {
    width: 100%;
    border-radius: 50px;
    border: 2px solid transparent;
    font-size: 1rem;
    background: #fff;
    color: #1e293b;
    outline: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-search-input:focus {
    border-color: #52cdd4;
    box-shadow: 0 8px 30px rgba(82, 205, 212, 0.25);
}

[dir="ltr"] .faq-search-input { padding: 16px 52px 16px 22px; }
[dir="rtl"] .faq-search-input { padding: 16px 22px 16px 52px; }

.faq-search-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.2rem;
    pointer-events: none;
}

[dir="ltr"] .faq-search-icon { right: 20px; }
[dir="rtl"] .faq-search-icon { left: 20px; right: auto; }

.faq-clear-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #e2e8f0;
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: background 0.2s ease;
}

.faq-clear-btn:hover {
    background: #cbd5e1;
}

[dir="ltr"] .faq-clear-btn { right: 48px; }
[dir="rtl"] .faq-clear-btn { left: 48px; right: auto; }

.faq-page-content {
    background: #f8fafc;
    padding: 60px 0 80px;
    min-height: 60vh;
}

.faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 36px;
}

[dir="rtl"] .faq-categories {
    justify-content: flex-end;
}

.faq-cat-btn {
    padding: 8px 20px;
    border-radius: 50px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.faq-cat-btn:hover {
    border-color: #52cdd4;
    color: #273f52;
}

.faq-cat-btn.active {
    background: linear-gradient(135deg, #273f52 0%, #52cdd4 100%);
    border-color: transparent;
    color: #fff;
}

.faq-group {
    margin-bottom: 44px;
}

.faq-group-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #273f52;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

[dir="rtl"] .faq-group-title {
    flex-direction: row-reverse;
}

.faq-group-title i {
    color: #52cdd4;
    font-size: 1.2rem;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: #fff;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item.hidden {
    display: none;
}

.faq-item:has(.faq-question.active) {
    border-color: #52cdd4;
    box-shadow: 0 4px 20px rgba(82, 205, 212, 0.12);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    text-align: start;
    font-size: 0.97rem;
    font-weight: 600;
    color: #1e293b;
    transition: color 0.2s ease;
}

.faq-question.active {
    color: #273f52;
}

[dir="rtl"] .faq-question {
    flex-direction: row-reverse;
    text-align: right;
}

[dir="rtl"] .faq-question span,
[dir="rtl"] .faq-question > *:not(.faq-question-chevron) {
    text-align: right;
    flex: 1;
}

[dir="rtl"] .faq-question .faq-question-chevron {
    flex-shrink: 0;
}

.faq-question-chevron {
    font-size: 1.1rem;
    color: #94a3b8;
    flex-shrink: 0;
    transition: transform 0.3s ease, color 0.2s ease;
}

.faq-question.active .faq-question-chevron {
    transform: rotate(180deg);
    color: #52cdd4;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.3s ease;
    padding: 0 22px;
}

.faq-answer.open {
    max-height: 600px;
    padding-bottom: 20px;
}

.faq-answer p {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.75;
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
}

[dir="rtl"] .faq-answer p {
    text-align: right;
    direction: rtl;
}

.faq-highlight {
    background: rgba(82, 205, 212, 0.25);
    border-radius: 3px;
    padding: 0 2px;
    font-weight: 700;
    color: #273f52;
}

.faq-no-results {
    display: none;
    text-align: center;
    padding: 60px 20px;
}

.faq-no-results.visible {
    display: block;
}

.faq-no-results i {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 16px;
    display: block;
}

.faq-no-results h4 {
    color: #475569;
    margin-bottom: 8px;
}

.faq-no-results p {
    color: #94a3b8;
    font-size: 0.95rem;
}

.faq-contact-cta {
    background: linear-gradient(135deg, #273f52 0%, #52cdd4 100%);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    margin-top: 20px;
}

.faq-contact-cta h3 {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.faq-contact-cta p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
}

.faq-contact-cta .btn {
    background: #fff;
    color: #273f52;
    padding: 12px 36px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
}

.faq-contact-cta .btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    color: #273f52;
}

[dir="rtl"] .faq-contact-cta a i,
[dir="rtl"] .faq-contact-cta .btn i {
    margin-left: 0;
    margin-right: 0.4rem;
}

@media (max-width: 768px) {
    .faq-hero h1 { font-size: 1.8rem; }
    .faq-hero { padding: 60px 0 50px; }

    .faq-question {
        font-size: 0.92rem;
        padding: 15px 18px;
    }

    .faq-contact-cta {
        padding: 30px 20px;
    }
}