.top-card {
    margin-top: 120px;
    padding-bottom: 50px;
}

/* Services Container */
.services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 1400px) {
    .services-container {
        max-width: 1400px;
        padding: 0 40px;
    }
}

@media (min-width: 1600px) {
    .services-container {
        max-width: 1600px;
        padding: 0 60px;
    }
}

/* Category header styles */
.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 16px;
    margin-bottom: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.category-header:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.category-title {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.category-header h2 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a202c;
    letter-spacing: -0.02em;
}

.service-count {
    font-size: 0.9rem;
    color: #4a5568;
    font-weight: 600;
}

.expand-icon {
    font-size: 1.2rem;
    color: #4a5568;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.expand-icon i {
    transition: all 0.3s ease;
}

.category-header:hover .expand-icon {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.category-header.expanded .expand-icon {
    transform: rotate(180deg) scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.service-section {
    margin: 0;
    padding: 0;
}

.service-grid {
    transition: all 0.3s ease;
    overflow: hidden;
}

.service-grid.collapsed {
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
}

.service-grid.expanded {
    max-height: 2000px;
    opacity: 1;
    margin-bottom: 0;
    padding: 20px 0;
}

.services-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 32px;
    width: 100%;
}

@media (min-width: 768px) {
    .services-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (min-width: 1024px) {
    .services-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1200px) {
    .services-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (min-width: 1400px) {
    .services-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}

.service-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 40px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    height: 280px;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
    transform: translateY(-4px);
    border-color: #FFB6C130;
}

.service-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

.service-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.service-name {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.duration {
    font-size: 0.9rem;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.price {
    font-size: 1.1rem;
    font-weight: 700;
    background: #FFB6C108;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #FFB6C120;
}

.service-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: auto;
}

.details-btn {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: #4a5568;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.details-btn:hover {
    background: #f7fafc;
    border-color: #FFB6C140;
    color: #FFB6C1;
    transform: translateY(-1px);
}

.book-btn {
    background: #FFB6C1;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.book-btn:hover {
    background: #ffc1ca;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px #FFB6C140;
    color: white;
    text-decoration: none;
}

/* Modal styles */
.modal-lg {
    max-width: 500px;
}

.design-gallery {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.carousel-item {
    height: 400px;
    background-color: #f8f9fa;
}

.carousel-item img {
    height: 100%;
    object-fit: contain;
    background-color: #f8f9fa;
}

.carousel-control-prev,
.carousel-control-next {
    background: rgba(0,0,0,0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 10px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

.service-details {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.modal-body .service-description {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0;
}

.modal-body .modal-duration,
.modal-body .modal-price {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .top-card {
        margin-top: 120px;
        padding: 0 10px 30px;
    }

    .services-wrapper {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 16px;
    }
    
    .category-header {
        padding: 16px 20px;
    }
    
    .category-header h2 {
        font-size: 1.2rem;
    }
    
    .service-card {
        padding: 16px;
        height: auto;
        min-height: 200px;
    }
    
    .service-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .details-btn, .book-btn {
        flex: none;
        width: 100%;
    }

    .service-content {
        gap: 12px;
    }

    .service-header {
        gap: 8px;
    }

    .service-name {
        font-size: 1.1rem;
    }

    .service-meta {
        gap: 8px;
    }

    .duration {
        font-size: 0.85rem;
    }

    .price {
        font-size: 1rem;
        padding: 3px 10px;
    }
}

@media (max-width: 360px) {
    .service-card {
        padding: 12px;
    }

    .service-name {
        font-size: 1rem;
    }

    .details-btn, .book-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}