/* RTL CSS for Arabic */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    direction: rtl;
    text-align: right;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 40px;
    height: 40px;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2563eb;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: #2563eb;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #333;
    color: white;
    padding: 1rem;
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1rem;
}

.cookie-content p {
    margin: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Sections */
.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.popular-comparisons,
.features {
    padding: 4rem 0;
}

.features {
    background: #f8fafc;
}

/* Grids */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

/* Cards */
.comparison-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.comparison-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-image {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.card-category {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.card-overview {
    color: #4b5563;
    line-height: 1.5;
}

.feature-card,
.value-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.feature-card h3,
.value-card h4 {
    margin-bottom: 1rem;
    color: #2563eb;
}

/* Page Header */
.page-header {
    background: #f8fafc;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.page-header p {
    font-size: 1.1rem;
    color: #6b7280;
}

.last-updated {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-top: 0.5rem;
}

/* Filters */
.filters {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-box {
    display: flex;
    justify-content: center;
}

.search-input {
    width: 100%;
    max-width: 400px;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: 1rem;
}

.category-filters {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

/* Comparison Detail */
.comparison-detail {
    padding: 2rem 0;
}

.detail-header {
    text-align: center;
    margin-bottom: 3rem;
}

.detail-image {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.detail-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.detail-category {
    color: #6b7280;
    font-size: 1.1rem;
}

.detail-content {
    max-width: 800px;
    margin: 0 auto;
}

.detail-section {
    margin-bottom: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.detail-section h3 {
    margin-bottom: 1rem;
    color: #2563eb;
    font-size: 1.3rem;
}

.detail-list {
    list-style: none;
    padding: 0;
}

.detail-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
    position: relative;
    padding-right: 1.5rem;
}

.detail-list li:before {
    content: '✓';
    color: #10b981;
    font-weight: bold;
    position: absolute;
    right: 0;
    top: 0.5rem;
}

.external-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.external-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: background 0.3s ease;
}

.external-link:hover {
    background: #e5e7eb;
}

.disclosure {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 5px;
    padding: 1rem;
    margin: 2rem 0;
    font-size: 0.9rem;
    color: #92400e;
}

/* Content Pages */
.content-section {
    padding: 2rem 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.content-main {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.content-main h2 {
    color: #2563eb;
    margin-bottom: 1rem;
}

.content-main h3 {
    color: #333;
    margin: 2rem 0 1rem 0;
}

.content-main h4 {
    color: #4b5563;
    margin: 1.5rem 0 0.5rem 0;
}

.content-main ul,
.content-main ol {
    margin: 1rem 0;
    padding-right: 2rem;
}

.content-main li {
    margin-bottom: 0.5rem;
}

.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sidebar-card h4 {
    color: #2563eb;
    margin-bottom: 1rem;
}

.principles-list {
    list-style: none;
    padding: 0;
}

.principles-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
    position: relative;
    padding-right: 1.5rem;
}

.principles-list li:before {
    content: '✓';
    color: #10b981;
    font-weight: bold;
    position: absolute;
    right: 0;
    top: 0.5rem;
}

.stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat {
    text-align: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 5px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #2563eb;
}

.stat-label {
    font-size: 0.9rem;
    color: #6b7280;
}

/* Contact Page */
.contact-section {
    padding: 2rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-form-section,
.contact-info-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
}

.contact-info-card {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.contact-info-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.contact-info-card h3 {
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.contact-phone,
.contact-email {
    color: #2563eb;
    text-decoration: none;
}

.contact-phone:hover,
.contact-email:hover {
    text-decoration: underline;
}

.contact-note {
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.working-hours {
    list-style: none;
    padding: 0;
}

.working-hours li {
    padding: 0.25rem 0;
}

.contact-additional {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.additional-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.additional-contact-card {
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 5px;
}

.additional-contact-card h4 {
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.form-message {
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* Legal Pages */
.legal-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    color: #2563eb;
    margin-bottom: 1rem;
}

.legal-content h3 {
    color: #333;
    margin: 2rem 0 1rem 0;
}

.legal-content h4 {
    color: #4b5563;
    margin: 1.5rem 0 0.5rem 0;
}

.legal-content ul,
.legal-content ol {
    margin: 1rem 0;
    padding-right: 2rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.important-notice {
    background: #fef3c7;
    border: 2px solid #f59e0b;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.important-notice h2 {
    color: #92400e;
    margin-bottom: 1rem;
}

.contact-info {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 5px;
    margin: 1.5rem 0;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.final-note {
    background: #eff6ff;
    border: 1px solid #2563eb;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.final-note h3 {
    color: #2563eb;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-phone {
    color: #60a5fa;
    text-decoration: none;
}

.footer-phone:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
}

/* Utilities */
.text-center {
    text-align: center;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

.not-found {
    padding: 4rem 0;
    text-align: center;
}

.not-found h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        padding: 1rem;
        gap: 1rem;
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .content-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .filters {
        align-items: center;
    }

    .category-filters {
        justify-content: center;
    }

    .external-links {
        flex-direction: column;
    }

    .additional-contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 2rem 0;
    }

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

    .popular-comparisons,
    .features {
        padding: 2rem 0;
    }

    .comparison-card,
    .feature-card,
    .content-main,
    .sidebar-card {
        padding: 1rem;
    }

    .page-header {
        padding: 2rem 0;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .detail-title {
        font-size: 2rem;
    }

    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cookie-banner,
    .nav-toggle {
        display: none;
    }

    .main {
        margin-top: 0;
    }

    .comparison-card,
    .feature-card,
    .content-main {
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
}