/**
 * All Services Page Styles
 *
 * @package foukagroup.com
 */

/* ==========================================================================
   Hero Section
   ========================================================================== */
.services-hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--color-primary-light, #f0f7ff) 0%, #fff 100%);
    text-align: center;
}

.services-hero__content {
    max-width: 700px;
    margin: 0 auto;
}

.services-hero__subtitle {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--color-primary, #7c3aed);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 2rem;
    margin-bottom: 1rem;
}

.services-hero__title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-text, #1a1a2e);
    margin: 0 0 1rem;
    line-height: 1.2;
}

.services-hero__description {
    font-size: 1.125rem;
    color: var(--color-text-light, #64748b);
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 767px) {
    .services-hero {
        padding: 6rem 0 3rem;
    }
    
    .services-hero__title {
        font-size: 1.75rem;
    }
    
    .services-hero__description {
        font-size: 1rem;
    }
}

/* ==========================================================================
   Categories Navigation
   ========================================================================== */
.services-nav {
    padding: 2rem 0;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 70px;
    z-index: 100;
}

.services-nav__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.services-nav__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #f8fafc;
    color: var(--color-text, #1a1a2e);
    border: 1px solid #e2e8f0;
    border-radius: 2rem;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.services-nav__item:hover {
    background: var(--color-primary, #7c3aed);
    color: #fff;
    border-color: var(--color-primary, #7c3aed);
    transform: translateY(-2px);
}

.services-nav__icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

@media (max-width: 767px) {
    .services-nav {
        padding: 1rem 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .services-nav__list {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: 0 1rem;
    }
    
    .services-nav__item {
        white-space: nowrap;
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
}

/* ==========================================================================
   Service Section
   ========================================================================== */
.service-section {
    padding: 5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.service-section:nth-child(odd) {
    background: #fff;
}

.service-section:nth-child(even) {
    background: #f8fafc;
}

.service-section__header {
    margin-bottom: 3rem;
}

.service-section__info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.service-section__info--reverse {
    direction: ltr;
}

[dir="rtl"] .service-section__info--reverse {
    direction: rtl;
}

.service-section__info--reverse .service-section__text {
    order: 2;
}

.service-section__info--reverse .service-section__image {
    order: 1;
}

.service-section__subtitle {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: var(--color-primary-light, #f3e8ff);
    color: var(--color-primary, #7c3aed);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 2rem;
    margin-bottom: 0.75rem;
}

.service-section__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text, #1a1a2e);
    margin: 0 0 1rem;
    line-height: 1.3;
}

.service-section__description {
    font-size: 1rem;
    color: var(--color-text-light, #64748b);
    line-height: 1.7;
    margin: 0 0 1.5rem;
}

.service-section__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-section__image {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.service-section__image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

@media (max-width: 991px) {
    .service-section__info {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-section__info--reverse .service-section__text,
    .service-section__info--reverse .service-section__image {
        order: unset;
    }
    
    .service-section__image img {
        height: 280px;
    }
}

@media (max-width: 767px) {
    .service-section {
        padding: 3rem 0;
    }
    
    .service-section__title {
        font-size: 1.5rem;
    }
    
    .service-section__image img {
        height: 220px;
    }
}

/* ==========================================================================
   Posts Grid
   ========================================================================== */
.service-section__posts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1199px) {
    .service-section__posts {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .service-section__posts {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Post Card
   ========================================================================== */
.service-post-card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.service-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.service-post-card__image {
    display: block;
    overflow: hidden;
}

.service-post-card__image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-post-card:hover .service-post-card__image img {
    transform: scale(1.05);
}

.service-post-card__content {
    padding: 1.25rem;
}

.service-post-card__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    line-height: 1.4;
}

.service-post-card__title a {
    color: var(--color-text, #1a1a2e);
    text-decoration: none;
    transition: color 0.2s ease;
}

.service-post-card__title a:hover {
    color: var(--color-primary, #7c3aed);
}

.service-post-card__excerpt {
    font-size: 0.875rem;
    color: var(--color-text-light, #64748b);
    line-height: 1.6;
    margin: 0 0 1rem;
}

.service-post-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--color-primary, #7c3aed);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.service-post-card__link:hover {
    gap: 0.625rem;
}

[dir="rtl"] .service-post-card__link svg {
    transform: rotate(180deg);
}

/* ==========================================================================
   Empty State
   ========================================================================== */
.service-section__empty {
    text-align: center;
    padding: 3rem;
    background: #f8fafc;
    border-radius: 1rem;
    color: var(--color-text-light, #64748b);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--color-primary, #7c3aed);
    color: #fff !important;
}

.btn-primary:hover {
    background: var(--color-primary-dark, #6d28d9);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 123, 191, 0.25);
}

[dir="rtl"] .btn svg {
    transform: rotate(180deg);
}

/* ==========================================================================
   Container
   ========================================================================== */
.all-services-page .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================================================
   Smooth Scroll
   ========================================================================== */
html {
    scroll-behavior: smooth;
}

.service-section {
    scroll-margin-top: 140px;
}
