﻿
/* Page Section */
.services-page {
    padding: 60px 0 80px;
    background-color: #f8f9fa;
}


.services-count {
    font-size: 1rem;
    color: #6c757d;
    margin: 0;
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

 
 


    .all-service-icon i {
        font-size: 36px;
        color: #8B0000;
        font-style: normal;
        transition: all 0.3s ease;
    }



        /* Material Symbols Outlined */
        .all-service-icon i.material-symbols-outlined,
        .all-service-icon .material-symbols-outlined {
            font-family: 'Material Symbols Outlined';
            font-size: 36px;
            font-style: normal;
        }


         

/* Learn More Link - Inside Card */
.all-service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #8B0000;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid #8B0000;
    border-radius: 25px;
    transition: all 0.3s ease;
    margin-top: auto;
}

    .all-service-link:hover {
        background: #8B0000;
        color: white;
    }

    .all-service-link i {
        font-size: 0.85rem;
        transition: transform 0.3s ease;
    }

    .all-service-link:hover i {
        transform: translateX(4px);
    }

/* RTL Support */
[dir="rtl"] .all-service-link i {
    transform: rotate(180deg);
}

[dir="rtl"] .all-service-link:hover i {
    transform: rotate(180deg) translateX(4px);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet - 2 columns */
@media (max-width: 992px) {
    .all-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .services-page {
        padding: 50px 0 60px;
    }

    .services-page-header h2 {
        font-size: 1.75rem;
    }

    .all-service-card {
        min-height: 300px;
        padding: 30px 25px;
    }
}

/* Mobile - 1 column */
@media (max-width: 576px) {
    .all-services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .services-page {
        padding: 40px 0 50px;
    }

    .services-page-header {
        flex-direction: column;
        text-align: center;
    }

        .services-page-header h2 {
            font-size: 1.5rem;
        }

    .all-service-card {
        min-height: 280px;
        padding: 25px 20px;
    }

    .all-service-icon {
        width: 70px;
        height: 70px;
    }

        .all-service-icon i {
            font-size: 30px;
        }

    .all-service-card h3 {
        font-size: 1.15rem;
        min-height: auto;
    }
}

/* ============================================
   SERVICES BY CATEGORY PAGE
   ============================================ */

.services-category-page {
    padding: 60px 0 80px;
    background-color: #f8f9fa;
}

.category-header {
    text-align: center;
    margin-bottom: 50px;
}

.category-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #8B0000 0%, #a50000 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
   /* margin: 0 auto 20px;*/
}

    .category-icon i {
        font-size: 48px;
        color: white;
        font-style: normal;
    }

.category-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.category-description-text {
    font-size: 1.1rem;
    color: #6c757d;
    margin: 0 auto;
}

/* Services List */
.services-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-item-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    min-height: 250px;
}

    .service-item-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(139, 0, 0, 0.1);
        border-color: #8B0000;
    }

    .service-item-card h3 {
        font-size: 1.15rem;
        font-weight: 600;
        color: #1a1a2e;
        margin-bottom: 12px;
    }

    .service-item-card p {
        font-size: 0.9rem;
        color: #6c757d;
        line-height: 1.6;
        flex-grow: 1;
    }

.service-item-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #8B0000;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    margin-top: auto;
}

    .service-item-link:hover {
        text-decoration: underline;
    }

/* Back to Categories Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 0.95rem;
    text-decoration: none;
    margin-bottom: 30px;
    transition: color 0.3s ease;
}

    .back-link:hover {
        color: #8B0000;
    }

@media (max-width: 992px) {
    .services-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .services-list {
        grid-template-columns: 1fr;
    }

    .category-header h1 {
        font-size: 1.75rem;
    }

    .category-icon {
        width: 80px;
        height: 80px;
    }

        .category-icon i {
            font-size: 36px;
        }
}
/* ============================================
   SERVICES PAGE - CATEGORY LANDING
   Updated: 2026-01-02
   - 3 columns per row
   - Uniform rectangular cards
   - Learn more inside the card
   ============================================ */

/* Page Section */
.services-page {
    padding: 60px 0 80px;
    background-color: #f8f9fa;
}



.services-count {
    font-size: 1rem;
    color: #6c757d;
    margin: 0;
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Categories Grid - 3 columns */
.all-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 35px;
}



/* Material Symbols Outlined */
.all-service-icon i.material-symbols-outlined,
.all-service-icon .material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-size: 36px;
    font-style: normal;
}

/* Material Symbols Outlined - Arabic RTL */
html[lang="ar"] .all-services-grid,
[dir="rtl"] .all-services-grid   {
    font-family: 'Material Symbols Outlined';
    font-size: 36px;
    font-style: normal;
    direction: rtl;
    margin-top: 35px;
}
/* Card Title */
.all-service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 12px 0;
    line-height: 1.4;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

 
/* Learn More Link - Inside Card */
.all-service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #8B0000;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid #8B0000;
    border-radius: 25px;
    transition: all 0.3s ease;
    margin-top: auto;
}

    .all-service-link:hover {
        background: #8B0000;
        color: white;
    }

    .all-service-link i {
        font-size: 0.85rem;
        transition: transform 0.3s ease;
    }

    .all-service-link:hover i {
        transform: translateX(4px);
    }

/* RTL Support */
[dir="rtl"] .all-service-link i {
    transform: rotate(180deg);
}

[dir="rtl"] .all-service-link:hover i {
    transform: rotate(180deg) translateX(4px);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet - 2 columns */
@media (max-width: 992px) {
    .all-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .services-page {
        padding: 50px 0 60px;
    }

    .services-page-header h2 {
        font-size: 1.75rem;
    }

    .all-service-card {
        min-height: 300px;
        padding: 30px 25px;
    }
}

/* Mobile - 1 column */
@media (max-width: 576px) {
    .all-services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .services-page {
        padding: 40px 0 50px;
    }

    .services-page-header {
        flex-direction: column;
        text-align: center;
    }

        .services-page-header h2 {
            font-size: 1.5rem;
        }

    .all-service-card {
        min-height: 280px;
        padding: 25px 20px;
    }

    .all-service-icon {
        width: 70px;
        height: 70px;
    }

        .all-service-icon i {
            font-size: 30px;
        }

    .all-service-card h3 {
        font-size: 1.15rem;
        min-height: auto;
    }
}

/* ============================================
   SERVICES BY CATEGORY PAGE - HEADER
   ============================================ */

.services-category-page {
    padding: 60px 0 80px;
    background-color: #f8f9fa;
}

/* Category Header - 3 Column Layout */
.services-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 80px;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 0;
    padding-bottom: 20px;
    border-bottom: 3px solid #e8e1d8;
}

.category-header-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

/* Column 1: Icon */
.category-header-icon {
    width: 80px;
    height: 80px;
    min-width: 80px;
    background: linear-gradient(135deg, #8B0000 0%, #a50000 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
}

    .category-header-icon i {
        font-size: 40px;
        color: white;
        font-style: normal;
    }

        .category-header-icon i.material-symbols-outlined,
        .category-header-icon .material-symbols-outlined {
            font-family: 'Material Symbols Outlined';
            font-size: 40px;
            font-style: normal;
        }

/* Column 2: Name & Description */
.category-header-text {
    flex: 1;
    text-align: left;
}

    .category-header-text h2 {
        font-size: 1.75rem;
        font-weight: 700;
        color: #1a1a2e;
        margin: 0 0 8px 0;
        line-height: 1.3;
    }

    .category-header-text .category-description-text {
        font-size: 0.95rem;
        color: #6c757d;
        margin: 0;
        line-height: 1.5;
    }

/* Column 3: Services Count */
.services-page-header > .services-count {
    font-size: 1rem;
    color: #6c757d;
    margin: 0;
    background: white;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    white-space: nowrap;
    text-align: center;
    min-width: 150px;
}

/* RTL Support - Reverse Layout */
[dir="rtl"] .category-header-info {
    flex-direction: row-reverse;
}

[dir="rtl"] .category-header-text {
    text-align: right;
}

[dir="rtl"] .services-page-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .back-link {
    flex-direction: row-reverse;
}

    [dir="rtl"] .back-link i {
        transform: rotate(180deg);
    }

/* Back Navigation */
.back-navigation {
    margin-bottom: 30px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    padding: 10px 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

    .back-link:hover {
        color: #8B0000;
        box-shadow: 0 4px 12px rgba(139, 0, 0, 0.1);
    }

    .back-link i {
        font-size: 0.85rem;
    }

/* Responsive */
@media (max-width: 992px) {
    .services-page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .category-header-info {
        width: 100%;
    }

    .services-page-header > .services-count {
        align-self: flex-start;
    }

    [dir="rtl"] .services-page-header {
        align-items: flex-end;
    }

        [dir="rtl"] .services-page-header > .services-count {
            align-self: flex-end;
        }
}

@media (max-width: 576px) {
    .category-header-info {
        flex-direction: column;
        text-align: center;
    }

    .category-header-icon {
        width: 70px;
        height: 70px;
        min-width: 70px;
    }

        .category-header-icon i {
            font-size: 32px;
        }

    .category-header-text h2 {
        font-size: 1.5rem;
    }

    .category-header-text .category-description-text {
        max-width: 100%;
    }

    [dir="rtl"] .category-header-info {
        flex-direction: column;
    }

    [dir="rtl"] .category-header-text {
        text-align: right;
    }
}

/* ============================================
   SERVICE CARDS IN CATEGORY PAGE
   ============================================ */

.service-short-description {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* RTL Support - Reverse Layout */
[dir="rtl"] .category-header-info {
    flex-direction: row-reverse;
}

[dir="rtl"] .category-header-text {
    text-align: right;
}

[dir="rtl"] .services-page-header {
    flex-direction: row-reverse !important;
}

[dir="rtl"] .category-header-info {
    flex-direction: row-reverse !important;
}

/* =============================================
   services-category-fix.css
   CSS FIX for ServicesByCategory Page
   Date: 2026-01-03
   
   Fixes:
   1. Reduced card size
   2. Icon without red background
   3. RTL flex-direction fix
   ============================================= */

/* ==================== CATEGORY HEADER - NO RED BG ON ICON ==================== */
.category-header-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: transparent !important;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
}

    .category-header-icon i,
    .category-header-icon span {
        font-size: 48px;
        color: #8B0000 !important;
        font-style: normal;
    }

        .category-header-icon i.material-symbols-outlined,
        .category-header-icon .material-symbols-outlined {
            font-family: 'Material Symbols Outlined';
            font-size: 48px;
            font-style: normal;
            color: #8B0000 !important;
        }

/* ==================== SMALLER SERVICE CARDS ==================== */


.service-card:hover .category-description,
.service-card:hover .service-short-description {
    color: #ffffff !important;
}

[dir="rtl"] .service-card:hover .category-description,
[dir="rtl"] .service-card:hover .service-short-description {
    color: #ffffff !important;
}
/* ==================== RTL FIX - CRITICAL ==================== */
[dir="rtl"] .services-page-header {
    flex-direction: row-reverse !important;
}

[dir="rtl"] .category-header-info {
    flex-direction: row-reverse !important;
}

[dir="rtl"] .category-header-text {
    text-align: right !important;
}

    [dir="rtl"] .category-header-text h2 {
        text-align: right !important;
    }

    [dir="rtl"] .category-header-text .category-description-text {
        text-align: right !important;
    }
/* Material Symbols RTL Fix - Preserve ligatures */
[dir="rtl"] .all-service-icon .material-symbols-outlined,
[dir="rtl"] .all-service-icon span.material-symbols-outlined {
    direction: ltr !important;
    unicode-bidi: bidi-override;
    -webkit-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
    text-rendering: optimizeLegibility;
}

/* RTL Hover States */
[dir="rtl"] .all-service-card:hover {
    background: #c82333 !important;
}

    [dir="rtl"] .all-service-card:hover h3 {
        color: white !important;
    }

    [dir="rtl"] .all-service-card:hover .all-service-link {
        color: white !important;
    }

    [dir="rtl"] .all-service-card:hover .all-service-icon {
        background: rgba(255, 255, 255, 0.2) !important;
    }

        

[dir="rtl"] .all-service-card {
    text-align: right !important;
    align-items: flex-end !important;
}

    [dir="rtl"] .all-service-card h3 {
        text-align: right !important;
        justify-content: flex-end !important;
    }

[dir="rtl"] .all-service-icon {
    margin: 0 0 15px 0 !important;
    margin-left: auto !important;
    margin-right: 0 !important;
}

[dir="rtl"] .all-service-link {
    align-self: flex-end !important;
    margin-left: auto !important;
    margin-right: 0 !important;
}

[dir="rtl"] .category-description {
    text-align: right !important;
}

[dir="rtl"] .back-link {
    flex-direction: row-reverse !important;
}

    [dir="rtl"] .back-link i {
        transform: rotate(180deg);
    }

[dir="rtl"] .all-service-link i {
    transform: rotate(180deg);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
    .all-service-card {
        min-height: 160px !important;
        max-height: 200px !important;
        padding: 18px 12px !important;
    }

    [dir="rtl"] .services-page-header {
        flex-direction: column-reverse !important;
        align-items: flex-end !important;
    }

    [dir="rtl"] .category-header-info {
        flex-direction: row-reverse !important;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .all-service-card {
        min-height: 150px !important;
        max-height: 180px !important;
        padding: 15px 12px !important;
    }

    .all-service-icon {
        width: 40px !important;
        height: 40px !important;
        margin-bottom: 10px !important;
    }

        .all-service-icon i,
        .all-service-icon span {
            font-size: 20px !important;
        }

    .all-service-card h3 {
        font-size: 0.85rem !important;
        min-height: auto !important;
    }

    .category-header-icon i,
    .category-header-icon span {
        font-size: 36px !important;
    }

    [dir="rtl"] .category-header-info {
        flex-direction: column !important;
        text-align: center;
    }

    [dir="rtl"] .category-header-text {
        text-align: right !important;
    }
}
.allservice-card {
    background: #f8f8f8;
    color: #333;
    padding: 30px 25px;
    border-radius: 12px;
     
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    /* FIXED dimensions - SQUARE 265x265 */
    flex: 0 0 265px;
    width: 100%;
    height: 265px;
    min-height: 265px;
    max-height: 265px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    user-select: none;
    -webkit-user-select: none;
}

    .allservice-card:hover {
        background: #c82333;
        color: white;
        transform: translateY(-10px) scale(1.02);
        box-shadow: 0 15px 40px rgba(200, 35, 51, 0.3);
    }

    .allservice-card h3 {
        font-size: 16px;
        margin: 0;
        line-height: 1.4;
    }

/* Category Select Dropdown Styling */
.category-select,
.form-select.category-select {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: none;
    border-bottom: 2px solid white;
    border-radius: 0;
    font-size: 15px;
    background: transparent;
    color: black;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 48px;
    appearance: none;
}

    .category-select:focus,
    .form-select.category-select:focus {
        border-color: #c82333 !important;
        outline: none !important;
        box-shadow: none !important;
    }

    /* Option styling - limited browser support */
    .category-select option {
        background-color: white;
        color: #212529;
        padding: 12px 15px;
        font-size: 14px;
        line-height: 1.5;
        border-bottom: 1px solid #eee;
    }

        .category-select option:hover,
        .category-select option:focus,
        .category-select option:checked {
            background-color: #c82333 !important;
            background: linear-gradient(0deg, #c82333 0%, #c82333 100%);
            color: white !important;
        }