/* =====================
   KYC Kuwait - Pages Styles
   Shared styles for inner pages
   ===================== */

/* =====================
   Compare Page Styles
   ===================== */
.compare-hero {
    background:
        linear-gradient(135deg, rgba(0, 51, 102, 0.9) 0%, rgba(0, 102, 204, 0.9) 100%),
        url('../img/technology-kw1.webp') center/cover;
    color: white;
    padding: 4rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.compare-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: floating 15s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(3deg); }
}

.compare-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.compare-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.compare-container {
    max-width: 1200px;
    margin: 4rem auto 3rem;
    padding: 0 1rem;
    position: relative;
    z-index: 3;
}

.compare-table-wrapper {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 51, 102, 0.15);
    overflow: hidden;
    margin-bottom: 3rem;
}

.table-header {
    background: linear-gradient(135deg, #003366 0%, #0066cc 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.table-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    color: #fafafa;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    text-align: center;
}

.comparison-table th {
    background: #f8fafc;
    color: #003366;
    font-weight: 700;
    padding: 1.5rem 1rem;
    text-align: center;
    border-bottom: 2px solid #e5e7eb;
    font-size: 1rem;
}

.comparison-table th:first-child {
    text-align: right;
    background: #003366;
    color: white;
    min-width: 200px;
}

[dir="ltr"] .comparison-table th:first-child {
    text-align: left;
}

.comparison-table td {
    padding: 1.2rem 1rem;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s ease;
}

.comparison-table td:first-child {
    text-align: right;
    font-weight: 600;
    background: #f8fafc;
    color: #374151;
}

[dir="ltr"] .comparison-table td:first-child {
    text-align: left;
}

.comparison-table tr:hover td {
    background-color: #f0f9ff;
}

.comparison-table tr:hover td:first-child {
    background-color: #e0f2fe;
}

.price-badge {
    display: inline-block;
    background: #003366;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.featured-package {
    position: relative;
}

.featured-package::before {
    content: 'الأكثر شيوعاً';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: #fbbf24;
    color: #000;
    padding: 0.4rem 1.5rem;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 0 0 12px 12px;
    z-index: 1;
}

[dir="ltr"] .featured-package::before {
    content: 'Most Popular';
}

.check-icon {
    color: #003366;
    font-size: 1.3rem;
    font-weight: bold;
}

.cross-icon,
.x-icon {
    color: #ef4444;
    font-size: 1.3rem;
}

/* Services Section */
.services-section {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 51, 102, 0.08);
    padding: 3rem 2.5rem;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-item {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 51, 102, 0.15);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: #003366;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.service-item h4 {
    color: #003366;
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.service-price {
    background: #003366;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    margin-top: 1rem;
}

.back-section {
    text-align: center;
    margin: 3rem 0;
}

.back-btn {
    background: linear-gradient(135deg, #003366 0%, #0066cc 100%);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.2);
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 51, 102, 0.3);
    color: white;
}

/* Table Responsive */
.table-responsive-lg {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.table-responsive-lg table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

/* Compare Page Responsive */
@media (max-width: 768px) {
    .compare-hero h1 {
        font-size: 2rem;
    }

    .compare-hero p {
        font-size: 1rem;
    }

    .compare-container {
        padding: 0 0.5rem;
        margin-top: 3rem;
    }

    .comparison-table {
        font-size: 0.85rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 1rem 0.5rem;
    }

    .comparison-table th:first-child,
    .comparison-table td:first-child {
        min-width: 150px;
    }

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

    .services-section {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .comparison-table {
        font-size: 0.8rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.8rem 0.3rem;
    }

    .price-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* =====================
   Common Page Header
   ===================== */
.page-header {
    padding: 100px 0 60px;
    background: linear-gradient(135deg, #f8fafc 0%, #e3f0ff 100%);
}

.page-header-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.page-header-text {
    flex: 1;
}

.page-header-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #003366;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.page-header-text p {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.page-header-image {
    flex: 0 0 280px;
}

.page-header-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
}

/* =====================
   Blog Styles
   ===================== */
.blog-header {
    padding: 100px 0 60px;
    background: linear-gradient(135deg, #003366 0%, #004488 100%);
    position: relative;
    overflow: hidden;
}

.blog-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

.blog-header-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.blog-header-text {
    flex: 1;
}

.blog-header-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.blog-header-text p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.blog-header-image {
    flex: 0 0 280px;
}

.blog-header-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Blog Grid */
.blog-grid-section {
    padding: 4rem 0;
    background: #f8fafc;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.blog-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.blog-card-image {
    height: 200px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-category {
    display: inline-block;
    background: #e3f0ff;
    color: #003366;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.blog-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #003366;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
}

.blog-card-title a:hover {
    color: #0056b3;
}

.blog-card-excerpt {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

.blog-card-meta i {
    margin-left: 0.25rem;
}

/* =====================
   FAQ Styles
   ===================== */
.faq-header {
    padding: 100px 0 60px;
    background: linear-gradient(135deg, #f8fafc 0%, #e3f0ff 100%);
}

.faq-header-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.faq-header-text {
    flex: 1;
}

.faq-header-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #003366;
    margin-bottom: 1rem;
}

.faq-header-text p {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.8;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
    background: #f8fafc;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.faq-item {
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.faq-question {
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-question h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #003366;
    margin: 0;
}

.faq-question i {
    color: #003366;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}

.faq-answer p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.8;
    margin: 0;
}

/* =====================
   Help Page Styles
   ===================== */
.help-header {
    padding: 100px 0 60px;
    background: linear-gradient(135deg, #f8fafc 0%, #e3f0ff 100%);
}

.help-header-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.help-header-text {
    flex: 1;
}

.help-header-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #031b3b;
    margin-bottom: 1rem;
}

.help-header-text p {
    font-size: 1.1rem;
    color: #0f172a;
    line-height: 1.8;
}

/* Help Categories */
.help-categories {
    padding: 4rem 0;
    background: #f8fafc;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.help-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.help-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.help-card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #003366 0%, #0056b3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.help-card-icon i {
    font-size: 1.75rem;
    color: #ffffff;
}

.help-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #02131f;
    margin-bottom: 0.75rem;
}

.help-card p {
    font-size: 0.95rem;
    color: #0f172a;
    line-height: 1.6;
}

/* =====================
   Compare Page Styles
   ===================== */
.compare-header {
    padding: 100px 0 60px;
    background: linear-gradient(135deg, #f8fafc 0%, #e3f0ff 100%);
}

.compare-header-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.compare-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #003366;
    margin-bottom: 1rem;
}

.compare-header p {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.8;
}

/* Comparison Table */
.compare-section {
    padding: 4rem 0;
    background: #f8fafc;
}

.compare-table-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    overflow-x: auto;
}

.compare-table {
    width: 100%;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border-collapse: collapse;
    overflow: hidden;
}

.compare-table th,
.compare-table td {
    padding: 1rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.compare-table th {
    background: #003366;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
}

.compare-table th.featured {
    background: linear-gradient(135deg, #0056b3 0%, #003366 100%);
}

.compare-table td {
    font-size: 0.95rem;
    color: #334155;
}

.compare-table tr:hover td {
    background: #f8fafc;
}

.compare-table .feature-name {
    text-align: right;
    font-weight: 600;
    color: #003366;
}

[dir="ltr"] .compare-table .feature-name {
    text-align: left;
}

.compare-table .check-icon {
    color: #22c55e;
    font-size: 1.25rem;
}

.compare-table .cross-icon {
    color: #ef4444;
    font-size: 1.25rem;
}

/* =====================
   Contact Form Styles
   ===================== */
.contact-form-section {
    padding: 4rem 0;
    background: #ffffff;
}

.contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-form {
    background: #f8fafc;
    border-radius: 16px;
    padding: 2.5rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    font-weight: 600;
    color: #003366;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: #003366;
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form .btn-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #003366 0%, #0056b3 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-form .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3);
}

/* =====================
   Topics/Articles Styles
   ===================== */
.topics-header {
    padding: 100px 0 60px;
    background: linear-gradient(135deg, #f8fafc 0%, #e3f0ff 100%);
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.topic-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.topic-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #003366;
    margin-bottom: 0.75rem;
}

.topic-card p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
}

/* =====================
   Blog Post Styles
   ===================== */
.blog-layout {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}

.blog-main {
    flex: 2;
}

.blog-post-hero {
    width: 100%;
    max-width: 420px;
    max-height: 220px;
    overflow: hidden;
    border-radius: 18px;
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-post-hero img {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

.blog-post-content {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    padding: 2.5rem 2rem 2rem 2rem;
    margin-bottom: 2rem;
}

.blog-post-meta {
    color: #888;
    font-size: 1rem;
    margin-bottom: 1.2rem;
}

.blog-post-meta i {
    margin-left: 0.25rem;
}

[dir="ltr"] .blog-post-meta i {
    margin-left: 0;
    margin-right: 0.25rem;
}

.blog-post-title {
    font-size: 2rem;
    color: #003366;
    margin-bottom: 1.2rem;
}

.blog-post-body {
    color: #222;
    line-height: 2.1;
    font-size: 1.15rem;
}

/* Sidebar */
.sidebar {
    flex: 1;
    min-width: 260px;
    background: #f7f8fa;
    border-radius: 14px;
    padding: 1.5rem 1.2rem;
    margin-bottom: 2rem;
}

.sidebar h4 {
    color: #003366;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

.sidebar ul li {
    margin-bottom: 0.7rem;
}

.sidebar ul li a {
    color: #003366;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.sidebar ul li a:hover {
    color: #0056b3;
}

@media (max-width: 900px) {
    .blog-layout {
        flex-direction: column;
    }

    .sidebar {
        margin-top: 2rem;
    }

    .blog-post-title {
        font-size: 1.5rem;
    }
}

/* =====================
   Legal Pages Styles
   ===================== */
.legal-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #003366 0%, #004488 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.legal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

.legal-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.legal-header .section-title {
    color: #ffffff;
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    position: relative;
    z-index: 2;
}

.legal-header .update-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.2rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0 auto;
    max-width: 400px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.legal-header .update-info p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.legal-header .update-info strong {
    color: #ffffff;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #003366;
    margin: 2rem 0 1rem;
}

.legal-content p,
.legal-content li {
    font-size: 1rem;
    color: #334155;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-content ul {
    padding-right: 1.5rem;
}

[dir="ltr"] .legal-content ul {
    padding-right: 0;
    padding-left: 1.5rem;
}

/* =====================
   Contact Section (Shared)
   ===================== */
.contact-section {
    background: #f8fafc;
    padding: 2.5rem;
    border-radius: 10px;
    margin-top: 3rem;
    text-align: center;
    border: 2px dashed #0066cc;
}

.contact-section h3 {
    color: #003366;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.contact-section h3 i {
    margin-left: 0.5rem;
    color: #0066cc;
}

[dir="ltr"] .contact-section h3 i {
    margin-left: 0;
    margin-right: 0.5rem;
}

.contact-section p {
    color: #4b5563;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-section .contact-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-section .contact-link-primary {
    background: linear-gradient(135deg, #003366 0%, #004488 100%);
    color: #ffffff !important;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3);
}

.contact-section .contact-link-primary:hover {
    background: linear-gradient(135deg, #004488 0%, #005599 100%);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 51, 102, 0.4);
}

.contact-section .contact-link-primary i {
    color: #ffffff !important;
}

.contact-section .contact-link-secondary {
    background: #ffffff;
    color: #003366 !important;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    border: 2px solid #003366;
    transition: all 0.3s ease;
}

.contact-section .contact-link-secondary:hover {
    background: #003366;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.contact-section .contact-link-secondary:hover i {
    color: #ffffff !important;
}

.contact-section .contact-link-secondary i {
    color: #003366;
}

.contact-section .contact-link-primary i,
.contact-section .contact-link-secondary i {
    margin-left: 0.5rem;
}

[dir="ltr"] .contact-section .contact-link-primary i,
[dir="ltr"] .contact-section .contact-link-secondary i {
    margin-left: 0;
    margin-right: 0.5rem;
}

/* =====================
   Responsive Styles
   ===================== */
@media (max-width: 991px) {
    .page-header-content,
    .blog-header-content,
    .faq-header-content,
    .help-header-content {
        flex-direction: column;
        text-align: center;
    }

    .page-header-image,
    .blog-header-image {
        order: -1;
        flex: 0 0 200px;
    }

    .page-header-text h1,
    .blog-header-text h1,
    .faq-header-text h1,
    .help-header-text h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .page-header,
    .blog-header,
    .faq-header,
    .help-header,
    .compare-header,
    .topics-header,
    .legal-header {
        padding: 80px 0 40px;
    }

    .page-header-text h1,
    .blog-header-text h1,
    .faq-header-text h1,
    .help-header-text h1,
    .compare-header h1,
    .legal-header h1 {
        font-size: 1.75rem;
    }

    .blog-grid,
    .help-grid,
    .topics-grid {
        grid-template-columns: 1fr;
    }

    .compare-table th,
    .compare-table td {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .page-header-text h1,
    .blog-header-text h1,
    .faq-header-text h1,
    .help-header-text h1 {
        font-size: 1.5rem;
    }

    .page-header-text p,
    .blog-header-text p,
    .faq-header-text p,
    .help-header-text p {
        font-size: 1rem;
    }
}

/* =====================================================
   تحسينات الهوية الموحدة 2025 - Unified Identity
   ===================================================== */

/* ============ UNIFIED PAGE HEADERS ============ */
.page-header,
.compare-hero,
.blog-header,
.faq-header,
.help-header,
.legal-header,
.topics-header {
    background: linear-gradient(135deg, #003366 0%, #004488 50%, #003366 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before,
.compare-hero::before,
.blog-header::before,
.faq-header::before,
.help-header::before,
.legal-header::before,
.topics-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

.page-header h1,
.compare-hero h1,
.blog-header h1,
.faq-header h1,
.help-header h1,
.legal-header h1,
.topics-header h1,
.page-header-text h1,
.blog-header-text h1,
.faq-header-text h1,
.help-header-text h1 {
    color: #ffffff;
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.page-header p,
.compare-hero p,
.blog-header p,
.faq-header p,
.help-header p,
.legal-header p,
.topics-header p,
.page-header-text p,
.blog-header-text p,
.faq-header-text p,
.help-header-text p {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

/* ============ UNIFIED BUTTONS ============ */
.btn,
button.btn,
a.btn,
.back-btn,
.submit-btn,
.btn-primary,
.btn-subscribe {
    background: linear-gradient(135deg, #003366, #004488) !important;
    color: white !important;
    border: none !important;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 51, 102, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn:hover,
button.btn:hover,
a.btn:hover,
.back-btn:hover,
.submit-btn:hover,
.btn-primary:hover,
.btn-subscribe:hover {
    background: linear-gradient(135deg, #004488, #005599) !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 51, 102, 0.4);
}

/* ============ UNIFIED CARDS ============ */
.service-item,
.blog-card,
.faq-item,
.help-card,
.topic-card,
.feature-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 15px 50px rgba(0, 51, 102, 0.08);
    border: 1px solid rgba(0, 51, 102, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
}

.service-item:hover,
.blog-card:hover,
.faq-item:hover,
.help-card:hover,
.topic-card:hover,
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 51, 102, 0.15);
}

/* ============ UNIFIED ICONS ============ */
.service-icon,
.feature-icon,
.help-icon,
.topic-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #003366, #0066cc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 8px 25px rgba(0, 51, 102, 0.3);
    transition: all 0.3s ease;
}

.service-item:hover .service-icon,
.help-card:hover .help-icon,
.topic-card:hover .topic-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, #003366, #004488);
}

/* ============ UNIFIED SECTION TITLES ============ */
.section-title,
.content-section h2,
.services-section h3,
.faq-section h2,
.help-section h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #003366;
    margin-bottom: 1.5rem;
    position: relative;
}

.section-title::after,
.content-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #003366, #004488);
    border-radius: 2px;
}

[dir="ltr"] .section-title::after,
[dir="ltr"] .content-section h2::after {
    right: auto;
    left: 0;
}

/* ============ UNIFIED CONTENT SECTIONS ============ */
.content-section,
.faq-content,
.help-content,
.legal-content,
.topics-content {
    background: linear-gradient(135deg, #f8fafc 0%, #e8f4fd 100%);
    padding: 4rem 0;
}

.content-wrapper,
.faq-wrapper,
.help-wrapper,
.legal-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============ UNIFIED FAQ STYLES ============ */
.faq-item {
    padding: 0;
    margin-bottom: 1rem;
}

.faq-question {
    padding: 1.5rem 2rem;
    background: #ffffff;
    border: none;
    width: 100%;
    text-align: right;
    font-size: 1.1rem;
    font-weight: 700;
    color: #003366;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-radius: 16px;
}

[dir="ltr"] .faq-question {
    text-align: left;
}

.faq-question:hover {
    background: #f0f9ff;
}

.faq-question.active {
    background: linear-gradient(135deg, #003366, #0066cc);
    color: white;
    border-radius: 16px 16px 0 0;
}

.faq-answer {
    padding: 1.5rem 2rem;
    background: #f8fafc;
    border-radius: 0 0 16px 16px;
    color: #4b5563;
    line-height: 1.9;
}

/* ============ UNIFIED HELP CARDS ============ */
.help-card {
    padding: 2rem;
    text-align: center;
}

.help-card h3 {
    color: #003366;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.help-card p {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============ UNIFIED LEGAL PAGES ============ */
.legal-content {
    padding: 4rem 0;
}

.legal-content h2 {
    color: #003366;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #003366;
}

.legal-content p,
.legal-content li {
    color: #4b5563;
    line-height: 2;
    font-size: 1.05rem;
}

.legal-content ul,
.legal-content ol {
    padding-right: 1.5rem;
}

[dir="ltr"] .legal-content ul,
[dir="ltr"] .legal-content ol {
    padding-right: 0;
    padding-left: 1.5rem;
}

/* ============ UNIFIED FORM STYLES ============ */
.form-group input,
.form-group textarea,
.form-group select,
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #003366;
    box-shadow: 0 0 0 4px rgba(0, 51, 102, 0.1);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #003366;
}

/* ============ UNIFIED TABLE STYLES ============ */
.comparison-table,
.data-table {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 51, 102, 0.08);
}

.comparison-table th {
    background: linear-gradient(135deg, #003366, #0066cc);
    color: white;
    font-weight: 700;
    padding: 1.2rem 1rem;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.comparison-table tr:hover td {
    background: #f0f9ff;
}

/* ============ UNIFIED CHECK/CROSS ICONS ============ */
.check-icon,
.fa-check,
.fa-check-circle {
    color: #003366;
}

.cross-icon,
.x-icon,
.fa-times,
.fa-times-circle {
    color: #ef4444;
}

/* ============ UNIFIED BADGES ============ */
.price-badge,
.service-price,
.feature-badge {
    background: linear-gradient(135deg, #003366, #004488);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-block;
}

/* ============ UNIFIED BACK BUTTONS ============ */
.back-section {
    text-align: center;
    margin: 3rem 0;
}

/* ============ RESPONSIVE UNIFIED STYLES ============ */
@media (max-width: 768px) {
    .page-header h1,
    .compare-hero h1,
    .blog-header h1,
    .faq-header h1,
    .help-header h1,
    .legal-header h1,
    .topics-header h1 {
        font-size: 1.8rem;
    }

    .service-item,
    .blog-card,
    .faq-item,
    .help-card,
    .topic-card {
        border-radius: 16px;
    }

    .btn,
    .back-btn,
    .submit-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }

    .faq-question {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .faq-answer {
        padding: 1rem 1.5rem;
    }
}
