﻿/* ========================================
   HOME PAGE - SERVICES SECTION (ServicesSection.razor)
   ======================================== */

.services {
    position: relative;
    margin: 0px;
    background: rgba(232, 225, 216, 1); /* sRGB exact color */
    
    z-index: 1;
}

    .services::before {
        content: "";
        position: absolute;
        top: -100px; /* covers top margin */
        bottom: -100px; /* covers bottom margin */
        left: 0;
        right: 0;
        background: rgba(232, 225, 216, 1); /* same sRGB color */
        z-index: -1;
    }




.section-intro {
    text-align: left;
    margin-bottom: 10px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

  

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: var(--text-contain);
}

.view-all-btn {
    background: white;
    color: var(--text-contain);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .view-all-btn:hover {
        background: white;
        color: var(--text-contain);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(35, 31, 32, 0.2);
    }

 
 
/* Services Carousel Pagination Dots */
.services-pagination {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px;
}

.pagination-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(196, 30, 58, 0.3);
}

    .pagination-dot.active {
        background: #c41e3a;
        transform: scale(1.2);
    }

    .pagination-dot:hover {
        background: rgba(196, 30, 58, 0.6);
    }
/* Services Section & Pages Styles */


/* ========================================
   ALL SERVICES PAGE (Services.razor)
   ======================================== */

.services-page {
    position: relative;
    margin: 0;
    background: #ffffff;
    min-height: 100vh;
}

    .services-page::before {
        content: '';
        position: absolute;
        top: -100px;
        bottom: -100px;
        left: 0;
        right: 0;
        background: #e8e1d8;
        z-index: -1;
    }

    .services-page .container {
        margin: 0 auto;
        padding: 0 20px;
        margin-bottom: 0px;
    }

/* Search Bar */


.search-input-wrapper {
    position: relative;
}



.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}



 
    .services-page-header h2 {
        font-size: 30px;
        font-weight: bold;
        color: var(--text-contain);

    }

.services-count {
    color: #6c757d;
    margin: 0;
}

 


 



/* All Services Pagination */
.all-services-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 30px;
    padding: 5px 0;
    margin-bottom: 90px;
}

.pagination-controls-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.page-nav-btn {
    background: transparent;
    border: none;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .page-nav-btn:hover:not(:disabled) {
        color: #c41e3a;
    }

    .page-nav-btn:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }

    .page-nav-btn i {
        font-size: 12px;
    }

.page-numbers {
    display: flex;
    gap: 8px;
    align-items: center;
}

.page-num-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #2c3e50;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .page-num-btn:hover {
        background: #f5f5f5;
    }

    .page-num-btn.active {
        background: #c41e3a;
        color: white;
    }

.page-ellipsis {
    color: #999;
    padding: 0 5px;
}

.page-info-text {
    font-size: 15px;
    color: #666;
    font-weight: 400;
}

/* ========================================
   SHARED COMPONENTS
   ======================================== */

/* Loading State */
.services-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* No Services Found */
.no-services-found {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

    .no-services-found i {
        color: #ccc;
        margin-bottom: 20px;
    }

    .no-services-found h3 {
        font-size: 24px;
        color: #2c3e50;
        margin-bottom: 10px;
    }

    .no-services-found p {
        font-size: 16px;
        color: #999;
    }

/* Stay Connected Section */
.stay-connected {
    background: linear-gradient(135deg, #f8f9fa 0%, #f8f9fa 100%);
    padding: 4rem 0;
    color: white;
}

    .stay-connected h2 {
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
    }

.newsletter-form {
    display: flex;
    gap: 1rem;
}

    .newsletter-form .form-control {
        flex: 1;
        padding: 0.75rem 1rem;
        border: none;
        border-radius: 8px;
    }

.btn-subscribe {
    background: #c11516;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn-subscribe:hover {
        background: #c82333;
        transform: scale(1.05);
    }

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1200px) {
    .all-services-grid {
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
        padding: 20px;
    }
}

@media (max-width: 900px) {
    .all-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .all-service-card {
        padding: 30px 20px;
        min-height: 200px;
    }

    .all-services-pagination {
        flex-direction: column;
        gap: 20px;
    }
}
 

@media (max-width: 600px) {
    .all-services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .page-numbers {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ========================================
   RTL SUPPORT
   ======================================== */
 
[dir="rtl"] .all-service-link {
    direction: rtl;
}

    [dir="rtl"] .all-service-link:hover i {
        transform: translateX(-3px);
    }

[dir="rtl"] .page-nav-btn {
    direction: rtl;
}

[dir="rtl"] .all-services-pagination {
    direction: rtl;
}

/* Service Category Badge */
.service-category-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #f8f9fa 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    margin: 10px 0;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

    .service-category-badge i {
        font-size: 0.85rem;
    }

/* Search Bar - Single Row with 3 Parts */
 

.search-input-wrapper {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 1;
}

 
    /* Focus/hover states for a nicer underline */
    .search-input:focus {
        outline: none;
        border-bottom-color: rgba(196, 30, 58,0.95);
        box-shadow: 0 2px 0 0 rgba(196, 30, 58,0.25);
    }

    .search-input:hover {
        border-bottom-color: rgba(196, 30, 58,0.6);
    }



 

.btn-search {
    background: #c41e3a;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    white-space: nowrap;
    /* REMOVED: width: 100%; height: 100%; */
}

    .btn-search:hover {
        background: #a01729;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
    }

    .btn-search:active {
        transform: translateY(0);
    }

/* Mobile Responsive */
@media (max-width: 768px) {
    .services-search-bar {
        grid-template-columns: 1fr;
        padding: 1.25rem;
    }
}

 