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

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Category Header */
.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.category-header:hover {
    background: #fafafa;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.category-header.expanded {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: none;
}

.category-title h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
}

.service-count {
    font-size: 0.85rem;
    color: #777;
    font-weight: 500;
}

.expand-icon {
    font-size: 1rem;
    color: #999;
}

/* Service Grid */
.service-grid {
    transition: all 0.3s ease;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eee;
    border-top: none;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    margin-bottom: 25px;
}

.service-grid.collapsed {
    max-height: 0;
    opacity: 0;
    border: none;
    margin-bottom: 15px;
}

.service-grid.expanded {
    max-height: 5000px;
    opacity: 1;
    padding: 25px;
}

.services-wrapper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

/* Service Card Thumbnail Style */
.card-wrap {
    height: 100%;
}

.card {
    border: 1px solid #ece8e2;
    border-radius: 14px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 22px rgba(33, 24, 19, 0.09);
    transition: all 0.3s ease;
    background: #fff;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(33, 24, 19, 0.14);
    border-color: #e3d8cc;
}

.image-container {
    position: relative;
    width: 100%;
    padding-top: 82%;
    /* 4:5 portrait aspect ratio */
    overflow: hidden;
    background: #f3ede6;
}

.image-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(24, 18, 14, 0.02) 35%, rgba(24, 18, 14, 0.45) 100%);
    pointer-events: none;
}

.card-img-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img-top {
    transform: scale(1.06);
}

.price-overlay {
    position: absolute;
    top: 14px;
    right: 14px;
    background: color-mix(in srgb, var(--premium-primary) 72%, #15110e 28%);
    color: white;
    padding: 5px 10px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    backdrop-filter: blur(4px);
}

.card-body {
    padding: 14px 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fff;
}

.card-title {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 600;
    color: #222;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}

.card-meta {
    font-size: 0.85rem;
    color: #666;
}

.card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.book-btn,
.details-btn {
    flex: 1;
    padding: 10px 8px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
}

.book-btn {
    border: 1px solid transparent;
}

.details-btn {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #555;
}

.details-btn:hover {
    background: #e9ecef;
    color: #333;
    transform: translateY(-2px);
}

/* Modal Enhancements */
.design-gallery {
    border-radius: 12px;
    overflow: hidden;
}

.carousel-item {
    padding-top: 75%;
    /* 4:3 aspect ratio */
    position: relative;
    background: #f8f9fa;
}

.carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.image-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.additional-images {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.additional-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.plus-icon {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.2s;
}

.additional-images:hover .plus-icon {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .services-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-header {
        padding: 15px 20px;
    }

    .category-title h2 {
        font-size: 1.2rem;
    }

    .service-grid.expanded {
        padding: 15px;
    }

    .image-container {
        padding-top: 82%;
    }
}

@media (max-width: 575px) {
    .services-wrapper {
        grid-template-columns: 1fr;
    }
}
