/*
Theme Name: Zaid Theme
Author: Omar Mahmoud
Description: My Custom Theme
Version: 1.0
*/

/* ================= المتغيرات الأساسية ================= */
:root {
    --primary-purple: #6b4de6;
    --primary-hover: #5a3ecc;
    --text-dark: #1f1f29;
    --text-gray: #6c757d;
    --text-light: #9ca3af;
    --bg-body: #f8f9fa;
    --bg-light: #ffffff;
    --border-color: #e5e7eb;
    --footer-bg: #222230;
    --footer-text: #8c8c9e;
    --footer-border: rgba(255, 255, 255, 0.05);
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --radius: 12px;
}
.custom-logo{
    width: 70px;
    height: 70px;
}
/* ================= Reset & Base ================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Inter", sans-serif;
}
body {
    overflow-x: hidden;
    background-color: var(--bg-body);
    color: var(--text-dark);
    /* استخدام الخط اللي استدعيناه، مع بدائل لو النت بطيء */
    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    font-size: 16px; /* الحجم الأساسي المريح للعين */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased; /* تصفية الخط على الموبايل */
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}
button {
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
    font-family: inherit;
}
ul {
    list-style: none;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}
.main-content-area {
    min-height: 50vh;
}

/* ================= Header (Desktop) ================= */
.header {
    background-color: var(--bg-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 75px;
}
.nav-left {
    display: flex;
    align-items: center;
    gap: 30px;
}
.logo img {
    width: 60px;
}
.nav-links {
    display: flex;
    gap: 20px;
    font-weight: 500;
    color: var(--text-gray);
    font-size: 15px;
}
.nav-links a:hover {
    color: var(--text-dark);
}
.search-bar {
    flex-grow: 1;
    max-width: 450px;
    margin: 0 30px;
    position: relative;
}
.search-bar input {
    width: 100%;
    padding: 12px 20px 12px 40px;
    border-radius: 25px;
    border: none;
    background-color: #f3f4f6;
    font-size: 14px;
    outline: none;
}
.search-bar i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 25px;
}
.btn-login {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-gray);
    cursor: pointer;
}
.btn-login:hover {
    color: var(--text-dark);
}
.btn-purple {
    background-color: var(--primary-purple);
    color: white;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    transition: 0.3s;
}
.btn-purple:hover {
    background-color: var(--primary-hover);
}
.full-width {
    width: 100%;
    justify-content: center;
}
.mobile-actions {
    display: none;
    align-items: center;
    gap: 15px;
}
.btn-share-mobile {
    background-color: var(--primary-purple);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.icon-btn {
    font-size: 20px;
    color: var(--text-dark);
}

/* ================= Popups & Forms ================= */
.popup-overlay {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    background: transparent;
    z-index: 2000;
    transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.popup-overlay.active {
    top: 100px;
    flex-direction: column;
}
.backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}
.backdrop.active {
    opacity: 1;
    visibility: visible;
}
.custom-popup {
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius);
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: var(--box-shadow);
}
.popup-close-btn {
    position: absolute;
    right: 15px;
    top: 15px;
}
.popup-content h2 {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 800;
}
/* Form Controls */
.form-control {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    background: var(--bg-light);
    transition: 0.3s;
}
.form-control:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 4px rgba(107, 77, 230, 0.1);
}
.textarea-resize {
    resize: vertical;
}
.custom-file-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
}
.custom-file-input {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px dashed #ccc;
    background: #f9f9f9;
    cursor: pointer;
    border-radius: 8px;
}
.comp-msg {
    margin-top: 10px;
    text-align: center;
    font-weight: bold;
}

/* ================= Main Layout & Brand Info ================= */
.breadcrumb {
    display: flex;
    gap: 10px;
    font-size: 13px;
    color: var(--text-gray);
    margin: 30px 0 20px;
    align-items: center;
}
.brand-summary-box {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
}
.brand-info {
    display: flex;
    align-items: center;
    gap: 20px;
}
.brand-logo-box {
    width: 90px;
    height: 90px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}
.brand-logo-box img {
    width: 86px;
    height: auto;
    border-radius: 10px;
}
.brand-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}
.write-complaint-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #c7c7ff;
    border-radius: 30px;
    padding: 10px 20px;
    width: 300px;
    cursor: pointer;
    color: var(--primary-purple);
    font-weight: 500;
    font-size: 15px;
    background: var(--bg-light);
    transition: 0.3s;
}
.write-complaint-box:hover {
    background: #f0edff;
}
.box-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.user-icon-circle {
    background-color: #c7c7ff;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.icon-plus {
    color: #333;
}

/* ================= Filters & Sorting ================= */
.complaints-info {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 14px 0 10px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
}
.complaints-info h1 {
    font-size: 22px;
    font-weight: 700;
}
.complaints-info span {
    font-size: 14px;
    color: var(--text-gray);
}
.filter-wrapper {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: visible;
    transition: all 0.4s ease;
    background: var(--bg-light);
    border-radius: 8px;
}
.filter-wrapper.active {
    max-height: 150px;
    opacity: 1;
    visibility: visible;
    padding: 15px 0;
    margin-bottom: 20px;
}
.filter-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
@media (min-width: 768px) {
    .filter-content {
        flex-direction: row;
    }
}
.checkbox-filters {
    display: flex;
    gap: 15px;
}
.checkbox-btn {
    border: 1px solid var(--border-color);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-gray);
    transition: 0.3s;
}
.checkbox-btn:hover,
.checkbox-btn.active {
    border-color: var(--primary-purple);
    color: var(--primary-purple);
    background: #f0edff;
}
.custom-dropdown {
    position: relative;
}
.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-weight: 500;
    background: var(--bg-light);
}
.dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 5px);
    width: 180px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: 0.3s;
}
.custom-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu li {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
}
.dropdown-menu li:hover,
.dropdown-menu li.active {
    background: var(--primary-purple);
    color: #fff;
}
.search-complaints {
    margin-top: 15px;
    position: relative;
}
.search-complaints input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
}
.search-complaints i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
}

/* ================= Complaint Cards ================= */
.complaints-list {
    transition: opacity 0.3s ease;
}
.complaint-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}
.list-card {
    transition: 0.3s;
}
.list-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
.single-complaint-card {
    padding: 15px;
    margin-bottom: 40px;
}
.card-flex-wrap {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    justify-content: space-between;
}
.card-content-wrap {
    flex: 1;
    min-width: 250px;
}
.c-title {
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}
.c-author {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}
.main-author {
    margin-bottom: 20px;
}
.avatar {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    background: var(--primary-purple);
}
.avatar-sm {
    width: 38px;
    height: 38px;
    font-size: 16px;
}
.avatar-lg {
    width: 50px;
    height: 50px;
    font-size: 20px;
}
.author-info h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}
.main-author .author-info h4 {
    font-size: 18px;
}
.author-info span {
    font-size: 12px;
    color: var(--text-gray);
}
.c-desc {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}
.single-desc {
    font-size: 16px;
    line-height: 1.8;
}
.complaint-thumbnail {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.complaint-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.single-complaint-image {
    width: 250px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}
.single-complaint-image img {
    width: 100%;
    height: auto;
    display: block;
}
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--primary-purple);
    font-weight: 600;
}

/* ================= Discussion & Replies ================= */
.discussion-section {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    margin-bottom: 50px;
}
.discussion-title {
    margin-bottom: 25px;
    color: var(--primary-purple);
    font-size: 20px;
}
.reply-form {
    margin-bottom: 40px;
    background: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.reply-form h4 {
    margin-bottom: 15px;
}
.reply-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.reply-msg {
    margin-top: 15px;
    text-align: center;
    font-weight: bold;
}
.reply-item {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 15px;
}
.reply-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.reply-header i {
    font-size: 24px;
    color: #a3e696;
}
.reply-header strong {
    font-size: 15px;
    color: var(--text-dark);
}
.reply-header span {
    font-size: 12px;
    color: var(--text-light);
}
.reply-content {
    font-size: 15px;
    color: #555;
    margin: 0 0 0 34px;
    line-height: 1.6;
}
.no-replies,
.not-found-msg,
.no-complaints-box {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-gray);
    background: var(--bg-light);
    border-radius: 8px;
}

/* ================= Pagination ================= */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
}
.pagination .page-numbers {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: 500;
    color: var(--text-gray);
    transition: 0.3s;
}
.pagination a.page-numbers:hover {
    background: var(--border-color);
    color: var(--text-dark);
}
.pagination span.current {
    border: 1px solid var(--primary-purple);
    color: var(--primary-purple);
    font-weight: 600;
}
.pagination .prev,
.pagination .next {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid var(--text-dark);
    color: var(--text-dark);
}
.pagination .prev:hover,
.pagination .next:hover {
    background: var(--bg-body);
}
.page-loader {
    text-align: center;
    padding: 50px;
    color: var(--primary-purple);
}

/* ================= Q&A & FAQ Section ================= */
.qa-section,
.faq-section,
.about-section {
    margin-top: 50px;
}
.qa-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
}
.qa-subtitle {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 25px;
}
.qa-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 30px;
}
.qa-item {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}
.qa-item h5 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    cursor: pointer;
    transition: 0.3s;
}
.qa-item h5:hover {
    color: var(--primary-purple);
}
.qa-stats {
    font-size: 12px;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}
.btn-show-more {
    display: block;
    margin: 30px auto 0;
    padding: 10px 40px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
}
.btn-show-more:hover {
    background: var(--bg-body);
}
.accordion-item {
    border-bottom: 1px solid var(--border-color);
}
.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 15px;
    font-weight: 500;
}
.accordion-header i {
    transition: transform 0.3s;
}
.accordion-item.active .accordion-header {
    color: var(--primary-purple);
}
.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}
.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}
.accordion-content {
    padding-bottom: 20px;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
}
.about-section {
    margin-bottom: 50px;
}
.about-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-left: 12px;
    border-left: 3px solid var(--primary-purple);
}
.about-section p {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
}

/* ================= Footer ================= */
.footer {
    background-color: var(--footer-bg);
    padding: 60px 0 30px;
    color: var(--footer-text);
    font-size: 13px;
    margin-top: 50px;
}
.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--footer-border);
    flex-wrap: wrap;
    gap: 20px;
}
.footer-top-left {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}
.footer-logo {
    width: 110px;
}
.footer-top-links {
    display: flex;
    gap: 30px;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
}
.footer-top-links a:hover {
    color: var(--primary-purple);
}
.footer-social {
    display: flex;
    gap: 15px;
}
.footer-social a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--footer-text);
    font-size: 16px;
}
.footer-social a:hover {
    background-color: var(--primary-purple);
    color: #fff;
}
.footer-middle {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}
.footer-col h4 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}
.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-col ul li a:hover {
    color: #fff;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--footer-border);
    padding-top: 30px;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-legal-links {
    display: flex;
    gap: 30px;
    font-weight: 600;
}
.footer-legal-links a:hover {
    color: #fff;
}
.footer-copyright {
    text-align: right;
    line-height: 1.8;
}
.footer-copyright .trustbuy {
    color: #fff;
    font-weight: 700;
    display: block;
    margin: 4px 0;
}
.footer-copyright strong {
    color: #fff;
}

/* ================= Responsive (Tablet & Mobile) ================= */

/* الشاشات المتوسطة (التابلت) */
@media (max-width: 992px) {
    .nav-links,
    .desktop-search,
    .btn-login,
    .nav-right .btn-purple {
        display: none;
    }
    .mobile-actions {
        display: flex;
    }
    .footer-middle {
        grid-template-columns: repeat(2, 1fr);
    }
    .brand-summary-box {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    .write-complaint-box {
        width: 100%;
        justify-content: space-between;
    }
}

/* الشاشات الصغيرة (الموبايل) */
@media (max-width: 768px) {
    .footer-middle,
    .qa-grid {
        grid-template-columns: 1fr;
    }

    /* فك كروت الشكاوى عشان تنزل تحت بعض براحتها */
    .card-flex-wrap {
        flex-direction: column;
    }
    .complaint-thumbnail,
    .single-complaint-image {
        width: 100%;
        height: auto;
    }

    /* فورم الردود نخليه عمود واحد */
    .reply-grid {
        grid-template-columns: 1fr;
    }

    .brand-summary-box {
        align-items: center;
        text-align: center;
    }
    .brand-info {
        flex-direction: column;
    }

    /* تظبيط الفوتر */
    .footer-top {
        flex-direction: column;
        text-align: center;
    }
    .footer-top-left {
        flex-direction: column;
        gap: 20px;
    }
    .footer-top-links {
        flex-direction: column;
        gap: 15px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .footer-legal-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .footer-copyright {
        text-align: center;
    }
}

/* ================= Mobile Popups (Menu & Search) ================= */
.popup-overlay {
    position: fixed;
    top: -100%; /* مخفي فوق الشاشة */
    left: 0;
    width: 100%;
    background-color: #ffffff;
    z-index: 2000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    padding: 20px;
    transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* تأثير النزول السلس */
}
.popup-overlay.active {
    top: 0; /* ينزل يظهر */
}
.backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}
.backdrop.active {
    opacity: 1;
    visibility: visible;
}
.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    width: 100%;
}
.mobile-menu-content {
    width: 100%;
}
.search-popup-header {
    margin-bottom: 15px;
    width: 100%;
}
.right-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}
/* تصميم زر File a complaint في المنيو */
.full-width-btn {
    width: 100%;
    justify-content: center;
    padding: 15px;
    font-size: 16px;
    margin-bottom: 20px;
}
.mobile-login-link {
    display: block;
    text-align: center;
    color: var(--text-gray);
    font-weight: 600;
    margin-bottom: 30px;
    font-size: 15px;
}
/* لينكات المنيو (Complaints, Brands) */
.mobile-nav-links li {
    margin-bottom: 20px;
    border-bottom: 1px solid #f4f4f4;
    padding-bottom: 15px;
}
.mobile-nav-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark); /* لون غامق زي الصورة */
}
.icon-sm {
    font-size: 14px;
    color: var(--text-gray);
}
/* تصميم فورم السيرش في الموبايل */
.mobile-search-form {
    margin: 0;
    max-width: 100%;
    position: relative;
}
.mobile-search-input {
    width: 100%;
    padding: 15px 20px 15px 45px;
    font-size: 16px;
    border-radius: 25px;
    border: none;
    background-color: #f3f4f6;
    outline: none;
}
.mobile-search-form i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
}

/* ================= Single Complaint Details Page ================= */
.single-main-container {
    min-height: 60vh;
    padding-top: 30px;
}

.single-breadcrumb {
    margin-bottom: 20px;
}

.complaint-detail-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--box-shadow);
}

.single-complaint-title {
    margin-bottom: 20px;
    font-size: 24px;
    color: var(--text-dark);
}

.single-author-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.single-author-name {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.single-author-date {
    color: var(--text-gray);
    font-size: 14px;
}

.complaint-content {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

/* ================= Comments Wrapper (Single Page) ================= */
.comments-section-wrapper {
    margin-top: 40px;
    background: #fdfdfd;
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    margin-bottom: 50px;
}

.discussion-main-title {
    margin-bottom: 20px;
    color: var(--primary-purple);
    font-size: 22px;
}

/* ================= تظبيط الموبايل لصفحة تفاصيل الشكوى ================= */
@media (max-width: 768px) {
    .complaint-detail-card,
    .comments-section-wrapper {
        padding: 20px; /* تقليل الحواف الجانبية في الشاشات الصغيرة */
    }

    .single-complaint-title {
        font-size: 20px; /* تصغير العنوان الأساسي على الموبايل */
    }
}
/* ================= تظبيط الخطوط والمسافات للموبايل فقط ================= */
@media (max-width: 768px) {
    /* 1. منع الأيفون من عمل Zoom عند الكتابة في الفورم */
    input,
    textarea,
    select {
        font-size: 16px !important;
    }

    /* 2. تظبيط العناوين (تكون بارزة وواضحة) */
    h1,
    .brand-name {
        font-size: 22px !important;
        font-weight: 800 !important; /* وزن تقيل يلفت الانتباه */
        letter-spacing: -0.5px; /* بيلم الحروف شوية بيدي شكل شيك */
    }

    .c-title,
    .single-complaint-title {
        font-size: 19px !important;
        font-weight: 800 !important;
        line-height: 1.4 !important; /* مسافة مريحة للعنوان */
    }

    /* 3. تظبيط النصوص العادية (وصف الشكوى والمقالات) */
    .c-desc {
        font-size: 15px !important;
        font-weight: 400 !important;
        line-height: 1.7 !important; /* تكبير المسافة بين السطور للقراءة */
        color: #334155;
    }

    .complaint-content {
        font-size: 16px !important;
        line-height: 1.8 !important;
    }

    /* 4. أسماء الأشخاص (Author) والتاريخ */
    .author-info h4,
    .single-author-name,
    .reply-header strong {
        font-size: 15px !important;
        font-weight: 700 !important;
    }
    .author-info span,
    .single-author-date,
    .reply-header span {
        font-size: 13px !important;
        font-weight: 500 !important;
    }

    /* 5. لينكات الموبايل والزراير */
    .mobile-nav-links a {
        font-size: 18px !important;
        font-weight: 700 !important;
    }
    .mobile-login-link {
        font-size: 16px !important;
        font-weight: 600 !important;
    }
    .btn-purple {
        font-size: 16px !important;
        font-weight: 700 !important;
        padding: 12px 24px !important;
    }

    /* 6. أقسام الأسئلة (Q&A / FAQ) */
    .qa-title,
    .about-title {
        font-size: 20px !important;
        font-weight: 800 !important;
    }
    .qa-item h5,
    .accordion-header span {
        font-size: 16px !important;
        font-weight: 600 !important;
        line-height: 1.5 !important;
    }
}

/* ================= القائمة المنسدلة للغات (Language Dropdown) ================= */
.lang-dropdown-wrapper {
    position: relative;
}

.lang-btn {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    transition: 0.3s;
}

.lang-btn:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background-color: rgba(255, 255, 255, 0.05);
}

.lang-btn img {
    width: 20px;
    height: auto;
    border-radius: 2px;
}

.lang-menu {
    position: absolute;
    bottom: calc(100% + 10px); /* بتفتح لفوق عشان هي في الفوتر */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--bg-light);
    border-radius: 8px;
    width: 300px;
    padding: 8px 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    list-style: none;
}
.lolo {
    width: 300px;
}
/* الكلاس ده بيتحط بالجافاسكريبت لما تدوس على الزرار */
.lang-dropdown-wrapper.active .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.lang-menu li {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 13px;
    transition: 0.2s;
}

.lang-menu li img {
    width: 30px !important;
    border-radius: 2px;
}
.lang-menu .origin_lang img {
    width: 39px !important;
    height: auto !important;
}
.lang-menu li:hover {
    background-color: var(--bg-body);
}

/* ستايل اللغة المختارة حالياً */
.lang-menu li.active {
    background-color: #f0edff;
    color: var(--primary-purple);
    font-weight: 600;
}
/* ================= فورم التعليقات (WordPress Comment Respond) ================= */
#respond {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
    margin-top: 40px;
}

/* عنوان الفورم وزرار الإلغاء */
#reply-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* زرار Cancel Reply (لو اليوزر بيرد على كومنت معين وعايز يلغي) */
#cancel-comment-reply-link {
    color: #ef4444; /* لون أحمر خفيف يدل على الإلغاء */
    text-decoration: none;
    background: #fef2f2;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: 0.3s;
}

#cancel-comment-reply-link:hover {
    background: #ef4444;
    color: #fff;
}

/* رسالة تسجيل الدخول */
.logged-in-as {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.6;
    background: var(--bg-body);
    padding: 12px 15px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-purple);
}

.logged-in-as a {
    color: var(--primary-purple);
    font-weight: 600;
}

.logged-in-as a:hover {
    text-decoration: underline;
}

.required-field-message {
    display: block;
    margin-top: 5px;
    font-size: 12px;
}

.required {
    color: #ef4444;
    font-weight: bold;
}

/* منطقة إدخال النص */
.comment-form-comment {
    margin-bottom: 20px;
}

.comment-form-comment label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.comment-form-comment textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text-dark);
    background-color: var(--bg-body);
    outline: none;
    resize: vertical;
    min-height: 140px;
    transition: 0.3s;
}

/* تأثير الفوكس (نفس ستايل حقول البحث والشكاوى) */
.comment-form-comment textarea:focus {
    border-color: var(--primary-purple);
    background-color: var(--bg-light);
    box-shadow: 0 0 0 4px rgba(107, 77, 230, 0.1);
}

/* زرار الإرسال */
.form-submit {
    margin: 0;
    text-align: right; /* عشان الزرار يجي يمين */
}

.form-submit .submit {
    background-color: var(--primary-purple);
    color: #ffffff;
    border: none;
    padding: 12px 35px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 25px;
    cursor: pointer;
    transition: 0.3s ease;
    display: inline-block;
}

.form-submit .submit:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 15px rgba(107, 77, 230, 0.25);
    transform: translateY(-1px);
}

/* ================= تظبيط الفورم للموبايل ================= */
@media (max-width: 768px) {
    #respond {
        padding: 20px;
    }

    /* نخلي زرار الإرسال بعرض الشاشة في الموبايل */
    .form-submit {
        text-align: left;
    }

    .form-submit .submit {
        width: 100%;
        padding: 15px;
    }
}

.c-title:hover {
    color: var(--primary-purple);
}

.thumbnails-grid {
    display: grid;
    gap: 5px;
    width: 100%;
}

/* لو صورة واحدة */
.grid-1 {
    grid-template-columns: 1fr;
}

/* لو صورتين */
.grid-2 {
    grid-template-columns: 1fr 1fr;
}

/* لو 3 أو 4 صور */
.grid-3,
.grid-4 {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}
/* لو 3 صور نخلي الأولى تاخد مساحة بالعرض كله */

.thumb-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.thumb-item img {
    width: 72px;
    height: 67px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.thumb-item:hover img {
    transform: scale(1.1); /* تأثير زووم خفيف لما الماوس ييجي عليها */
}

/* رقم الصور الإضافية فوق آخر صورة (+2) */
.more-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
}

/* ================= السلايدر ================= */
.image-slider-overlay {
    background: rgba(0, 0, 0, 0.95) !important;
    flex-direction: column;
    z-index: 9999;
}
.slider-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
}
.slider-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 900px;
    height: 80vh;
}
#slider-main-image {
    max-width: 80%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}
.slider-arrow {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: 0.3s;
}
.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}
.slider-counter {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-top: 15px;
    letter-spacing: 2px;
}
.images-grid-col {
    width: 100%; /* الصور تاخد العرض كله تحت النص */
    margin-top: 15px;
}

/* ================= تظبيط الكارت والمسافات (إجباري جنب بعض) ================= */
.card-flex-wrap {
    display: flex;
    flex-direction: row !important; /* إجبار إنه يفضل صف واحد دايماً */
    flex-wrap: nowrap !important; /* يمنع إن الصور تنزل تحت الكلام نهائياً */
    gap: 20px;
    align-items: flex-start;
    justify-content: space-between;
}

.card-content-wrap {
    flex: 1;
    overflow: hidden;
}

/* كسر الكلمات الطويلة جداً عشان متبوظش التصميم */
.c-desc,
.c-title {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ================= تظبيط اسم الكاتب والتاريخ (على سطر واحد) ================= */
.c-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-direction: row !important;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.author-info h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.author-info span {
    font-size: 12px;
    color: var(--text-gray);
}

/* نقطة صغيرة بين الاسم والتاريخ (شكل احترافي في الديسكتوب) */
.author-info span::before {
    content: "•";
    display: inline-block;
    margin-right: 8px;
    color: var(--border-color);
}

/* ================= تظبيط الموبايل (جنب بعض بس صور مصغرة جداً) ================= */
@media (max-width: 768px) {
    .card-flex-wrap {
        gap: 12px !important; /* نصغر المسافة بين الكلام والصور عشان الشاشة صغيرة */
    }

    .more-overlay {
        font-size: 14px !important; /* تصغير خط الرقم اللي فوق الصورة زي +2 */
    }

    /* تصغير زرار (Add Image) عشان يليق مع الحجم الصغير */
    .add-more-img-btn {
        padding: 4px 6px !important;
        font-size: 10px !important;
    }

    /* تظبيط خطوط الكلام عشان تاخد راحتها في المساحة الباقية */
    .c-title {
        font-size: 16px !important;
        margin-bottom: 8px !important;
    }

    .c-desc {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }

    /* نوفر مساحة للاسم والتاريخ في الموبايل بإننا نشيل النقطة ونخليهم فوق بعض لو الاسم طويل */
    .author-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    .author-info span::before {
        display: none;
    }
}

/* ================= الجزء الأوسط في الفوتر (الأعمدة) ================= */
.footer-middle {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; /* عمود الشكاوى أعرض زي ما طلبت */
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* إجبار القوائم إنها تترص تحت بعض بنظافة */
.footer-col ul {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-col ul li {
    margin: 0;
    padding: 0;
}

.footer-col ul li a {
    color: var(--footer-text);
    line-height: 1.5;
    font-size: 14px;
    display: inline-block;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: #fff; /* تأثير الـ Hover */
}

/* تظبيط الموبايل للفوتر الأوسط */
@media (max-width: 768px) {
    .footer-middle {
        grid-template-columns: 1fr; /* عمود واحد في الموبايل */
        text-align: center; /* اختياري: توسيط الكلام في الموبايل */
    }
}

/* تصميم زرار الشير في الهيدر */
.share-dropdown-wrapper {
    position: relative;
    display: inline-block;
}
.btn-share-custom {
    background-color: #f3f4f6;
    color: var(--text-dark);
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}
.btn-share-custom:hover {
    background-color: #e5e7eb;
}

.share-menu {
    position: absolute;
    top: calc(100% + 10px); /* يفتح لتحت عشان في الهيدر */
    right: 0; /* محاذاة لليمين */
    background-color: #fff;
    border-radius: 12px;
    width: 160px;
    padding: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1500;
}
.share-dropdown-wrapper.active .share-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.share-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    transition: 0.2s;
}
.share-menu li a i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* ألوان السوشيال ميديا عند الوقوف عليها */
.share-menu li a:hover {
    background: #f8f9fa;
}
.share-menu li a.share-whatsapp:hover {
    color: #25d366;
}
.share-menu li a.share-facebook:hover {
    color: #1877f2;
}
.share-menu li a.share-twitter:hover {
    color: #201919;
}
/* =========================================
   1. تنسيقات روابط الدخول في الهيدر
   ========================================= */
.auth-links-desktop {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 15px;
}

.auth-links-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    font-weight: 600;
}

.auth-link {
    color: var(--text-gray, #555);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.auth-link:hover {
    color: var(--primary-purple, #6a11cb);
}

.auth-divider {
    color: #ccc;
    font-weight: 400;
    user-select: none;
}

.logout-link {
    color: #d93025;
}
.logout-link:hover {
    color: #a51d14;
}

@media (max-width: 991px) {
    .auth-links-desktop {
        display: none;
    }
}

/* =========================================
   2. تنسيقات الـ Toast Notification
   ========================================= */
.custom-toast {
    visibility: hidden;
    min-width: 280px;
    background-color: #222;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 16px 20px;
    position: fixed;
    z-index: 99999; /* عشان يغطي على أي حاجة */
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition:
        opacity 0.3s ease,
        bottom 0.3s ease,
        visibility 0.3s;
}

.custom-toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 40px;
}

.custom-toast a {
    color: var(--primary-purple, #a855f7);
    text-decoration: underline;
    font-weight: 700;
}
.custom-toast a:hover {
    color: #fff;
}

/* الحاوية الرئيسية */
.cat-archive-main {
    padding-top: 20px;
    padding-bottom: 50px;
}

/* مسار التنقل */
.cat-breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}
.cat-breadcrumb a {
    color: #6b46c1;
    text-decoration: none;
    font-weight: 500;
}
.cat-breadcrumb i {
    margin: 0 8px;
    font-size: 12px;
    color: #999;
}

/* هيدر القسم (اسم اللغة) */
.cat-header-box {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #eee;
    text-align: center;
}
.cat-page-title {
    font-size: 28px;
    color: #222;
    margin-bottom: 10px;
    font-weight: 700;
}
.cat-page-desc {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* شبكة المقالات (Cards) */
.cat-posts-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* تصميم الكارت الواحد */
.cat-single-post {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    border: 1px solid #f0f0f0;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}
.cat-single-post:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

/* محتوى الكارت */
.cat-post-title {
    margin-bottom: 10px;
    font-size: 20px;
    line-height: 1.4;
}
.cat-post-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s ease;
}
.cat-post-title a:hover {
    color: #6b46c1;
}

.cat-post-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #888;
    margin-bottom: 15px;
}
.cat-post-meta i {
    color: #6b46c1;
}

.cat-post-excerpt {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* زرار القراءة */
.cat-btn-readmore {
    display: inline-block;
    background: #f3f0ff;
    color: #6b46c1;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.cat-btn-readmore:hover {
    background: #6b46c1;
    color: #fff;
}

/* الترقيم (Pagination) */
.cat-pagination {
    margin-top: 40px;
    text-align: center;
}
.cat-pagination .nav-links {
    display: inline-flex;
    gap: 10px;
    align-items: center;
}
.cat-pagination a,
.cat-pagination span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #fff;
    color: #444;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #ddd;
    transition: all 0.2s ease;
}
.cat-pagination .current {
    background: #6b46c1;
    color: #fff;
    border-color: #6b46c1;
}
.cat-pagination a:hover {
    background: #f3f0ff;
    color: #6b46c1;
    border-color: #6b46c1;
}

/* حالة عدم وجود مقالات */
.cat-no-content {
    text-align: center;
    padding: 50px 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px dashed #ccc;
    color: #777;
}
.cat-no-content i {
    font-size: 40px;
    color: #ddd;
    margin-bottom: 15px;
    display: block;
}
/* لما الموقع يكون عربي، خلي اتجاه النصوص والتنسيقات لليمين */
html.rtl-layout body {
    text-align: right;
    direction: rtl;
}

/* لو عندك أيقونات في الموقع محتاجة تلف (زي أسهم الـ slider مثلاً) */
html.rtl-layout .fa-chevron-right {
    transform: rotate(180deg);
}
html.rtl-layout .about-title {
    border-left: none; /* بنلغي البوردر الشمال */
    padding-left: 0;   /* بنلغي المسافة الشمال */
    border-right: 3px solid var(--primary-purple); /* بنحط البوردر يمين */
    padding-right: 12px; /* بنحط المسافة يمين */
}
/* Tw */


/* ==========================================
   تنسيق كارت الشكوى (مُجبر بـ !important)
   ========================================== */
.complaint-detail-card {
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 35px !important;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid #f0f0f0 !important;
    margin: 20px auto !important;
    font-family: Arial, Helvetica, sans-serif !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* بيمنع أي حاجة تخرج بره حدود الكارت */
}

/* ==========================================
   إصلاح كوارث الـ Inline Styles اللي بتكسر الشاشة
   ========================================== */
.complaint-content div, 
.complaint-content p, 
.complaint-content h2, 
.complaint-content span, 
.complaint-content font {
    /* بنلغي أي عرض 100vw أو مسافات سالبة جاية من الووردبريس */
    width: auto !important; 
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

/* عنوان الشكوى */
.single-complaint-title {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin-bottom: 25px !important;
    line-height: 1.4 !important;
}

/* ==========================================
   معلومات الكاتب (الـ Meta)
   ========================================== */
.single-author-meta {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    padding-bottom: 25px !important;
    border-bottom: 1px solid #eee !important;
    margin-bottom: 25px !important;
}

.avatar-lg {
    width: 50px !important;
    height: 50px !important;
    background: #6b46c1 !important; 
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 22px !important;
    font-weight: bold !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
}

.author-info .single-author-name {
    margin: 0 0 5px 0 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #222 !important;
}

.author-info .single-author-date {
    font-size: 13px !important;
    color: #888 !important;
}

/* ==========================================
   محتوى الشكوى (النصوص)
   ========================================== */
.complaint-content {
    color: #333 !important;
    line-height: 1.8 !important;
    font-size: 16px !important;
}

.complaint-content h2 {
    font-size: 20px !important;
    color: #1a1a1a !important;
    border-left: 5px solid #c40000 !important;
    padding-left: 12px !important;
    margin: 30px 0 15px 0 !important;
    font-weight: bold !important;
}

/* عشان لو الموقع قلب عربي، الخط ييجي يمين غصب عن الكود القديم */
html.rtl-layout .complaint-content h2 {
    border-left: none !important;
    border-right: 5px solid #c40000 !important;
    padding-left: 0 !important;
    padding-right: 12px !important;
}

.complaint-content p {
    margin-bottom: 20px !important;
}

/* ==========================================
   استهداف صناديق المصادر اللي واخدة لون رمادي بالايد
   ========================================== */
.complaint-content div[style*="background: #f5f5f5"] {
    background: #fafafa !important;
    padding: 15px 20px !important;
    border-left: 4px solid #c40000 !important;
    border-radius: 4px !important;
    margin: 25px 0 !important;
    font-size: 15px !important;
}

html.rtl-layout .complaint-content div[style*="background: #f5f5f5"] {
    border-left: none !important;
    border-right: 4px solid #c40000 !important;
}

.complaint-content a {
    color: #6b46c1 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    display: inline-block !important;
    word-break: break-all !important; /* عشان اللينكات الطويلة متكسرش الموبايل */
}

.complaint-content a:hover {
    text-decoration: underline !important;
    color: #553399 !important;
}
