/* USP Section Styles */
.usp-section {
    padding: 3rem 2rem;
    background: white;
}

.usp-container {
    max-width: 1200px;
    margin: 0 auto;
}

.usp-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
}

/* First 3 items take 2 columns each */
.usp-item:nth-child(1),
.usp-item:nth-child(2),
.usp-item:nth-child(3) {
    grid-column: span 2;
    height: 400px;
}

/* Last 2 items take 3 columns each and are 50% taller */
.usp-item:nth-child(4),
.usp-item:nth-child(5) {
    grid-column: span 3;
    height: 600px; /* 50% taller than the first row */
}

.usp-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f8f8;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.usp-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.usp-image {
    position: relative;
    height: 70%; /* Dynamic height based on container */
    overflow: hidden;
}

/* Specific height for first row images */
.usp-item:nth-child(1) .usp-image,
.usp-item:nth-child(2) .usp-image,
.usp-item:nth-child(3) .usp-image {
    height: 280px;
}

/* Specific height for second row images */
.usp-item:nth-child(4) .usp-image,
.usp-item:nth-child(5) .usp-image {
    height: 450px; /* Proportionally larger for taller cards */
}

.usp-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.usp-item:hover .usp-image img {
    transform: scale(1.05);
}

.usp-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(
        to top,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 1) 80%,
        rgba(255, 255, 255, 0) 100%
    );
}

.usp-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-black);
    font-weight: 600;
}

/* Larger text for second row */
.usp-item:nth-child(4) .usp-content h3,
.usp-item:nth-child(5) .usp-content h3 {
    font-size: 1.5rem;
}

.usp-content p {
    font-size: 0.95rem;
    color: var(--primary-gray);
    margin: 0;
    line-height: 1.4;
}

/* Larger text for second row */
.usp-item:nth-child(4) .usp-content p,
.usp-item:nth-child(5) .usp-content p {
    font-size: 1.1rem;
}

/* Media Queries */
@media (max-width: 1200px) {
    .usp-container {
        padding: 0 1rem;
    }
}

@media (max-width: 1024px) {
    .usp-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Reset grid-column for all items */
    .usp-item:nth-child(n) {
        grid-column: auto;
        height: 400px; /* Reset height for all items */
    }

    /* Reset image heights */
    .usp-item:nth-child(n) .usp-image {
        height: 280px;
    }
    
    /* Make the last item full width */
    .usp-item:last-child {
        grid-column: 1 / -1;
        max-width: 600px;
        margin: 0 auto;
    }

    /* Reset text sizes */
    .usp-item:nth-child(n) .usp-content h3 {
        font-size: 1.3rem;
    }

    .usp-item:nth-child(n) .usp-content p {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .usp-section {
        padding: 2rem 1rem;
    }

    .usp-item:nth-child(n) {
        height: 360px;
    }

    .usp-item:nth-child(n) .usp-image {
        height: 240px;
    }

    .usp-content {
        padding: 1.2rem;
    }
}

@media (max-width: 480px) {
    .usp-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .usp-item:nth-child(n) {
        height: 340px;
    }

    .usp-item:nth-child(n) .usp-image {
        height: 220px;
    }

    /* Reset last item styles */
    .usp-item:last-child {
        grid-column: auto;
        max-width: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .usp-item {
        background: #1a1a1a;
    }

    .usp-content {
        background: linear-gradient(
            to top,
            rgba(26, 26, 26, 1) 0%,
            rgba(26, 26, 26, 1) 80%,
            rgba(26, 26, 26, 0) 100%
        );
    }

    .usp-content h3 {
        color: #ffffff;
    }

    .usp-content p {
        color: #cccccc;
    }
}