body {
    margin: 0;
    padding: 0;
}

.we-image-accordion {
    display: flex;
    justify-content: space-between;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    overflow: hidden;
    border-radius: 16px;
    margin: 2rem 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.we-item {
    height: 100%;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    background-position: center center;
    background-size: contain;
    background-repeat: no-repeat;
    flex: 1 1 0%;
    padding: 0;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    /* Divider line */
    border-right: 3px solid #1e293b;
    box-sizing: border-box;
    background-color: #f8fafc;
}

.we-item:last-child {
    border-right: none;
}


.we-item .we-image-item {
    max-height: 100%;
}

/* Ensure images are properly displayed */
.we-item {
    background-attachment: scroll;
}

/* Better image quality for high-resolution displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .we-item {
        background-size: contain;
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

.we-item:hover {
    flex: 3 1 0%;
    transform: scale(1.02);
    background-size: contain;
    background-color: #ffffff;
    padding: 0;
}

.we-item-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 300px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.we-item:hover .we-item-content {
    opacity: 1;
    transform: translateY(0);
}

.we-image-item-header {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.9), 0 2px 4px rgba(0, 0, 0, 0.8);
    font-family: 'Inter', sans-serif;
}

.we-image-item-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #fff;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.9), 0 2px 4px rgba(0, 0, 0, 0.8);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

.we-button {
    font-size: 0.9rem;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.we-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Headings and titles */
h1, h2, h3, h4, h5, h6,
.headline, .skw-page__heading, .white-heading, .heading, .about-title, .about-card-title, .panel-title, .we-image-item-header {
    font-family: Helvetica, Arial, sans-serif !important;
}

/* Content/body text */
p, .desc, .about-card-text, .panel-description, .skw-page__description, .we-image-item-text {
    font-family: 'Inter', sans-serif !important;
}

@media (max-width: 768px) {
    .we-image-accordion {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        height: auto;
        min-height: auto;
        max-height: none;
        margin: 1rem;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        background: #ffffff;
        padding: 1rem;
        position: relative;
        overflow: hidden; /* Prevent horizontal overflow */
    }
    
    .we-image-accordion::before {
        display: none;
    }
    
    .we-item {
        height: 200px;
        min-height: 200px;
        flex: none;
        width: 100%; /* Ensure full width */
        margin-bottom: 0;
        border-radius: 8px;
        border-right: none;
        border-bottom: none;
        background: #f8fafc;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        padding: 0;
        position: relative;
        overflow: hidden;
        transition: all 0.3s ease;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        /* Prevent horizontal duplication */
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }
    
    .we-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-image) center/contain no-repeat;
        background-position: center center;
        background-size: contain;
        background-repeat: no-repeat; /* Prevent repetition */
        z-index: 1;
        transition: transform 0.3s ease;
        /* Ensure no horizontal duplication */
        width: 100%;
        height: 100%;
    }
    
    .we-item::after {
        display: none;
    }
    
    .we-item:hover::before {
        transform: scale(1.05);
    }
    
    /* Ensure proper image display on mobile */
    .we-item::before {
        background-attachment: scroll;
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
        background-color: #f8fafc;
    }
    
    .we-item-content {
        opacity: 1;
        transform: translateY(0);
        max-width: 100%;
        width: 100%; /* Ensure full width */
        position: relative;
        z-index: 3;
        padding: 1rem;
        text-align: center;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 8px;
        border: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        margin: 0.5rem;
        /* Prevent text duplication */
        overflow: hidden;
        word-wrap: break-word;
    }
    
    .we-image-item-header {
        font-size: 1.25rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
        color: #1e293b;
        text-shadow: none;
        line-height: 1.3;
        letter-spacing: -0.01em;
        /* Prevent text duplication */
        white-space: normal;
        word-break: break-word;
    }
    
    .we-image-item-text {
        font-size: 0.9rem;
        line-height: 1.5;
        color: #475569;
        text-shadow: none;
        font-weight: 400;
        margin-bottom: 1rem;
        /* Prevent text duplication */
        white-space: normal;
        word-break: break-word;
    }
    
    .we-button {
        font-size: 0.8rem;
        margin-top: 0.5rem;
        padding: 0.4rem 0.8rem;
        background: #3b82f6;
        border: none;
        border-radius: 6px;
        color: #fff;
        text-decoration: none;
        transition: all 0.3s ease;
        backdrop-filter: none;
        /* Prevent button duplication */
        white-space: nowrap;
        display: inline-block;
    }
    
    .we-button:hover {
        background: #2563eb;
        transform: translateY(-1px);
    }
    
    .we-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
    
    /* Individual background images - ensure no duplication */
    .we-item:nth-child(1)::before {
        background-image: url('/images/home/card1.png');
        background-repeat: no-repeat;
        background-size: contain;
        background-position: center;
    }
    
    .we-item:nth-child(2)::before {
        background-image: url('/images/home/card2.png');
        background-repeat: no-repeat;
        background-size: contain;
        background-position: center;
    }
    
    .we-item:nth-child(3)::before {
        background-image: url('/images/home/card3.png');
        background-repeat: no-repeat;
        background-size: contain;
        background-position: center;
    }
    
    .we-item:nth-child(4)::before {
        background-image: url('/images/home/card4.png');
        background-repeat: no-repeat;
        background-size: contain;
        background-position: center;
    }
    
    .we-item:nth-child(5)::before {
        background-image: url('/images/home/card5.png');
        background-repeat: no-repeat;
        background-size: contain;
        background-position: center;
    }
}

@media (max-width: 480px) {
    .we-image-accordion {
        margin: 0.5rem;
        padding: 0.5rem;
        border-radius: 8px;
    }
    
    .we-item {
        height: 180px;
        min-height: 180px;
    }
    
    .we-item-content {
        padding: 0.75rem;
        max-width: 100%;
        margin: 0.25rem;
    }
    
    .we-image-item-header {
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
    }
    
    .we-image-item-text {
        font-size: 0.8rem;
        line-height: 1.4;
        margin-bottom: 0.75rem;
    }
    
    .we-button {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
} 