.ward-flexible-design-section {
    padding: 80px 0;
}

.ward-types-container {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: stretch;
}

.ward-type-card {
    flex: 1;
    max-width: 560px;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: all 0.3s ease;
    position: relative;
    height: 620px;
}

.ward-type-card.s-ward {
    background-color: #fafafa;
}

.ward-type-card.b-ward {
    background-color: #e6e6e6;
}

.ward-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.ward-content-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
    max-height: 194px;
}

.ward-type-title {
    color: #111928;
    font-size: 18px;
    font-family: Inter, sans-serif;
    font-weight: 700;
    line-height: 29px;
    word-wrap: break-word;
    margin: 0;
}

.ward-description-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.ward-description-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #111928;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.ward-description-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: #111928;
    font-size: 18px;
    font-family: Inter, sans-serif;
    font-weight: 400;
    line-height: 29px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.ward-description-list li:before {
    content: "•";
    color: #00c08b;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.ward-description-list li:last-child {
    margin-bottom: 0;
}

.ward-image-section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 362px;
    margin-top: auto;
}

.b-ward .ward-image-section {
    height: 370px;
}

.ward-device-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .ward-types-container {
        gap: 15px;
    }
    
    .ward-type-card {
        max-width: 100%;
    }
}

@media (max-width: 992px) {
    .ward-types-container {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
    
    .ward-type-card {
        max-width: 600px;
        height: auto;
        min-height: 500px;
    }
    
    .ward-image-section {
        height: 300px;
    }
    
    .b-ward .ward-image-section {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .ward-flexible-design-section {
        padding: 60px 0;
    }
    
    .ward-type-card {
        max-width: 100%;
        padding: 15px;
        height: auto;
        min-height: 450px;
    }
    
    .ward-content-section {
        max-height: none;
    }
    
    .ward-type-title {
        font-size: 20px;
    }
    
    .ward-type-description {
        font-size: 14px;
    }
    
    .ward-image-section {
        height: 250px;
    }
    
    .b-ward .ward-image-section {
        height: 250px;
    }
    
    .ward-description-list {
        font-size: 13px;
    }
    
    .ward-description-list li {
        font-size: 16px;
        line-height: 26px;
    }
}

@media (max-width: 480px) {
    .ward-flexible-design-section {
        padding: 40px 0;
    }
    
    .ward-type-card {
        padding: 12px;
        min-height: 400px;
    }
    
    .ward-type-title {
        font-size: 18px;
    }
    
    .ward-type-description {
        font-size: 13px;
    }
    
    .ward-image-section {
        height: 200px;
    }
    
    .b-ward .ward-image-section {
        height: 200px;
    }
    
    .ward-description-list {
        font-size: 12px;
    }
    
    .ward-description-list li {
        font-size: 14px;
        line-height: 24px;
    }
}

/* Animation Classes */
.ward-type-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.ward-type-card:nth-child(1) { animation-delay: 0.2s; }
.ward-type-card:nth-child(2) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Layout adjustments to match Figma structure */
.ward-types-container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
}

.ward-content-section {
    padding-bottom: 12px;
}

.ward-image-section {
    overflow: hidden;
    border-radius: 4px;
}

/* Hover effects */
.ward-type-card:hover .ward-device-image {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.ward-device-image {
    transition: transform 0.3s ease;
}
