/* Services Accordion Styles */
.services-accordion {
    --primary-color: #6ec1e4;
    --secondary-color: #54595f;
    --text-color: #7a7a7a;
    --accent-color: #61ce70;
    --light-bg: #ffffff;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.services-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    transition: all 0.3s ease;
}

.service-card {
    flex: 1 0 calc(33.333% - 20px);
    min-width: 250px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-card.active {
    box-shadow: 0 0 0 2px var(--primary-color);
}

.service-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-image {
    height: 180px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-title {
    padding: 20px;
    font-size: 20px;
    font-weight: 600;
    color: var(--secondary-color);
    background: var(--light-bg);
    text-align: center;
}

.categories-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.4s ease;
    opacity: 0;
    z-index: 20;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.categories-panel.active {
    width: 65%;
    opacity: 1;
}

.categories-panel.left {
    right: auto;
    left: 0;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
}

.categories-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.categories-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0;
}

.close-panel {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.close-panel:hover {
    color: var(--primary-color);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    overflow-y: auto;
    padding-right: 10px;
}

.category-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.category-card-link {
    display: block;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    flex-grow: 1;
}

.category-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 10px;
    display: block;
}

.category-description {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.5;
}

.category-card-footer {
    padding: 15px 20px;
    background: var(--primary-color);
    text-align: center;
}

.category-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    display: block;
}

/* Panel position styles */
.services-accordion[data-panel-position="left"] .categories-panel {
    right: auto;
    left: 0;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 900px) {
    .service-card {
        flex: 1 0 calc(50% - 20px);
    }
    
    .categories-panel.active {
        width: 50%;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .service-card {
        flex: 1 0 100%;
    }
    
    .categories-panel.active {
        width: 85%;
    }
}