/* Services List Page Styles */

.serviceslist-page {
    display: flex;
    position: relative;
}

/* Breadcrumb title fix for serviceslist page */
.serviceslist-breadcrumb .breadcrumb-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.1;
    word-break: break-word;
}

@media (max-width: 768px) {
    .serviceslist-breadcrumb .breadcrumb-title {
        font-size: clamp(1.8rem, 7vw, 2.8rem);
    }
}

.serviceslist-sec {
    width: 100%;
    padding: 80px 0;
    background: var(--bg-color);
    position: relative;
}

.serviceslist-container {
    width: 100%;
    max-width: min(1400px, calc(100% - 60px));
    margin: 0 auto;
    padding: 0 60px;
}

.serviceslist-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.serviceslist-kicker {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--secondary-color);
    margin-bottom: 16px;
    text-transform: uppercase;
}


.serviceslist-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 80px;
    margin-top: 0;
}

.serviceslist-card {
    position: relative;
    aspect-ratio: 9 / 14;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.serviceslist-card:hover,
.serviceslist-card:focus-within {
    transform: translateY(-4px);
}

.serviceslist-card-image {
    position: absolute;
    inset: 0;
    background: var(--primary-color-dark);
}

.serviceslist-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.65s cubic-bezier(0.23, 1, 0.32, 1);
}

.serviceslist-card:hover .serviceslist-card-image img,
.serviceslist-card:focus-within .serviceslist-card-image img {
    transform: scale(1.08);
}

.serviceslist-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.45) 35%,
        rgba(0, 0, 0, 0.08) 70%,
        rgba(0, 0, 0, 0.02) 100%
    );
    z-index: 1;
    transition: background 0.5s ease;
}

.serviceslist-card:hover .serviceslist-card-overlay,
.serviceslist-card:focus-within .serviceslist-card-overlay {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.92) 0%,
        rgba(0, 0, 0, 0.5) 40%,
        rgba(0, 0, 0, 0.12) 75%,
        rgba(0, 0, 0, 0.05) 100%
    );
}

.serviceslist-card-num {
    position: absolute;
    top: 20px;
    right: 22px;
    font-family: 'Poppins', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.06);
    line-height: 1;
    z-index: 2;
    pointer-events: none;
    transition: color 0.5s ease;
}

.serviceslist-card:hover .serviceslist-card-num,
.serviceslist-card:focus-within .serviceslist-card-num {
    color: rgba(255, 255, 255, 0.1);
}

.serviceslist-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 26px;
    z-index: 3;
    display: flex;
    flex-direction: column;
}

.serviceslist-card-badge {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    margin-bottom: 18px;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.serviceslist-card-badge i {
    font-size: 16px;
}

.serviceslist-card:hover .serviceslist-card-badge,
.serviceslist-card:focus-within .serviceslist-card-badge {
    transform: translateY(-4px);
}

.serviceslist-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1.2;
    margin-bottom: 10px;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.serviceslist-card:hover .serviceslist-card-title,
.serviceslist-card:focus-within .serviceslist-card-title {
    transform: translateY(-3px);
}

.serviceslist-card-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 18px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.serviceslist-card:hover .serviceslist-card-desc,
.serviceslist-card:focus-within .serviceslist-card-desc {
    max-height: 80px;
    opacity: 1;
}

.serviceslist-card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 18px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.serviceslist-card:hover .serviceslist-card-features,
.serviceslist-card:focus-within .serviceslist-card-features {
    max-height: 120px;
    opacity: 1;
}

/* Mobile: Show content without hover */
@media (max-width: 768px) {
    .serviceslist-card-desc {
        max-height: 100px;
        opacity: 1;
    }

    .serviceslist-card-features {
        max-height: 150px;
        opacity: 1;
    }
}

.serviceslist-card-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.8);
}

.serviceslist-card-features li i {
    color: var(--secondary-color);
    font-size: 12px;
    flex-shrink: 0;
}

.serviceslist-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--secondary-color);
    text-decoration: none;
    transition: gap 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.serviceslist-card-link i {
    font-size: 11px;
    transition: transform 0.3s ease;
}

.serviceslist-card:hover .serviceslist-card-link,
.serviceslist-card:focus-within .serviceslist-card-link {
    gap: 12px;
}

.serviceslist-card:hover .serviceslist-card-link i,
.serviceslist-card:focus-within .serviceslist-card-link i {
    transform: translateX(2px);
}

.serviceslist-card-link:hover,
.serviceslist-card-link:focus {
    background: var(--secondary-color);
    color: var(--text-light);
    gap: 12px;
    transform: translateX(4px);
    outline: 2px solid var(--secondary-color-dark);
    outline-offset: 2px;
}

.serviceslist-card-link:hover i,
.serviceslist-card-link:focus i {
    transform: translateX(2px);
}

.serviceslist-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
    border-radius: 24px;
    padding: 60px 50px;
    box-shadow: 0 8px 32px rgba(14, 35, 126, 0.2);
    position: relative;
    overflow: hidden;
}

.serviceslist-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(41, 171, 226, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.serviceslist-cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.serviceslist-cta-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.2;
}

.serviceslist-cta-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.02rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

.serviceslist-cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.serviceslist-cta-actions .btn-outline {
    background: transparent;
    color: var(--text-light);
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.serviceslist-cta-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

@media (max-width: 1024px) {
    .serviceslist-container {
        padding: 0 40px;
    }

    .serviceslist-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .serviceslist-card {
        aspect-ratio: 9 / 13;
    }

    .serviceslist-cta {
        padding: 50px 40px;
    }
}

@media (max-width: 768px) {
    .serviceslist-sec {
        padding: 60px 0;
    }

    .serviceslist-container {
        max-width: min(1400px, calc(100% - 30px));
        padding: 0 24px;
    }

    .serviceslist-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 60px;
    }

    .serviceslist-card {
        aspect-ratio: 9 / 12;
    }

    .serviceslist-card-content {
        padding: 28px 24px;
    }

    .serviceslist-card-title {
        font-size: 1.35rem;
    }

    .serviceslist-card-desc {
        font-size: 0.85rem;
        max-height: 100px !important;
        opacity: 1 !important;
    }

    .serviceslist-card-features {
        max-height: 150px !important;
        opacity: 1 !important;
    }

    .serviceslist-cta {
        padding: 40px 28px;
        border-radius: 20px;
    }

    .serviceslist-cta-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .serviceslist-cta-desc {
        font-size: 0.95rem;
    }

    .serviceslist-cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .serviceslist-cta-actions .btn {
        width: 100%;
    }
}
