/* Services Page Styling */
.services-new {
    padding: 6rem 0;
    background: var(--light-bg);
}

.services-new-container {
    max-width: 1200px;
    margin: 0 auto;
}

.services-new-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.services-new-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0; /* Ensure no padding creates space */
}

.services-new-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.services-new-card.featured {
    border-top: 4px solid var(--primary-color);
}

.services-new-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1; /* Make images square (1:1 ratio) */
    height: auto; /* Let height be determined by aspect ratio */
    margin: 0; /* Ensure no margin */
    padding: 0; /* Ensure no padding */
    display: block; /* Prevent inline element spacing */
    line-height: 0; /* Remove potential line-height spacing */
}

.services-new-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block; /* Remove potential inline element whitespace */
    margin: 0; /* Ensure no margin on image */
}

.services-new-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.services-new-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    position: relative;
}

.services-new-card-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.services-new-card-description {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.services-new-features {
    list-style: none;
    margin: 0;
    padding: 0;
    flex-grow: 1;
}

.services-new-features li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 2rem;
    color: #555;
    transition: all 0.3s ease;
}

.services-new-features li:last-child {
    border-bottom: none;
}

.services-new-features li:hover {
    color: var(--primary-color);
    padding-left: 2.5rem;
}

.services-new-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Card specific styling */
.services-new-card.cakes {
    background: linear-gradient(to bottom right, rgba(255,255,255,0.9), rgba(255,255,255,1)), 
                url('../images/cake-pattern.png');
    background-size: cover;
}

.services-new-card.wedding {
    background: linear-gradient(to bottom right, rgba(255,255,255,0.9), rgba(255,255,255,1)), 
                url('../images/wedding-pattern.png');
    background-size: cover;
}

.services-new-card.corporate {
    background: linear-gradient(to bottom right, rgba(255,255,255,0.9), rgba(255,255,255,1)), 
                url('../images/corporate-pattern.png');
    background-size: cover;
}

/* CTA Section */
.services-new-cta {
    background: linear-gradient(135deg, rgba(246, 190, 55, 0.1) 0%, rgba(240, 165, 0, 0.2) 100%);
    border-radius: 15px;
    padding: 3rem;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.services-new-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="%23F6BE37" opacity="0.05"><polygon points="0,0 1000,100 1000,0"/></svg>') no-repeat center;
    background-size: cover;
}

.services-new-cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.services-new-cta-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.services-new-cta-description {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.services-new-cta-btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--gradient-secondary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
}

.services-new-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.services-new-cta-btn:hover::before {
    left: 100%;
}

.services-new-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

/* Responsive Design */
@media (max-width: 992px) {
    .services-new-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
    
    .services-new-card-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .services-new {
        padding: 4rem 0;
    }
    
    .services-new-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-new-cta {
        padding: 2rem;
    }
    
    .services-new-cta-title {
        font-size: 2rem;
    }
    
    .services-new-image {
        aspect-ratio: 1/1; /* Maintain square aspect ratio on mobile */
        height: auto;
    }
}

@media (max-width: 480px) {
    .services-new-cta {
        padding: 1.5rem;
    }
    
    .services-new-cta-title {
        font-size: 1.8rem;
    }
    
    .services-new-content {
        padding: 1.5rem;
    }
    
    .services-new-card-title {
        font-size: 1.5rem;
    }
    
    .services-new-cta-btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
}
