/* Country Cards Uniform Sizing - Scoped to prevent conflicts */

/* Ensure all country cards have the same height */
.wptb-service--inner .wptb-image-box1 {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.wptb-service--inner .wptb-image-box1 .wptb-item--inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Set fixed height for image container */
.wptb-service--inner .wptb-image-box1 .wptb-item--image {
    height: 260px;
    overflow: hidden;
    position: relative;
}

.wptb-service--inner .wptb-image-box1 .wptb-item--image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

/* Hover effect for images */
.wptb-service--inner .wptb-image-box1 .wptb-item--image:hover img {
    transform: scale(1.05);
}

/* Content holder with fixed structure */
.wptb-service--inner .wptb-image-box1 .wptb-item--holder {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 25px 20px;
    min-height: 200px;
}

/* Country icon styling */
.wptb-service--inner .wptb-item--icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.wptb-service--inner .wptb-item--icon img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wptb-service--inner .wptb-item--icon svg {
    width: 9px;
    height: 9px;
    fill: #E13833;
}

/* Title styling */
.wptb-service--inner .wptb-item--title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
    min-height: 32px;
}

/* Line paper decoration */
.wptb-service--inner .wptb-line-paper {
    width: 60px;
    height: 2px;
    background: #E13833;
    margin: 10px auto 15px;
}

/* Description with fixed height */
.wptb-service--inner .wptb-item--description {
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    color: #666;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Ensure equal column heights */
.wptb-service--inner .row {
    display: flex;
    flex-wrap: wrap;
}

.wptb-service--inner .row > [class*="col-"] {
    display: flex;
    margin-bottom: 30px;
}

/* Card styling */
.wptb-service--inner .wptb-image-box1 {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.wptb-service--inner .wptb-image-box1:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

/* Active/Highlight card */
.wptb-service--inner .wptb-image-box1.active.highlight {
    border: 2px solid #E13833;
}

/* Link styling */
.wptb-service--inner .wptb-item-link {
    display: block;
    width: 100%;
    height: 100%;
}

.wptb-service--inner .wptb-item--title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.wptb-service--inner .wptb-item--title a:hover {
    color: #E13833;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .wptb-service--inner .wptb-image-box1 .wptb-item--image {
        height: 240px;
    }
    
    .wptb-service--inner .wptb-item--holder {
        min-height: 190px;
        padding: 20px 18px;
    }
    
    .wptb-service--inner .wptb-item--title {
        font-size: 22px;
    }
}

@media (max-width: 575px) {
    .wptb-service--inner .wptb-image-box1 .wptb-item--image {
        height: 220px;
    }
    
    .wptb-service--inner .wptb-item--holder {
        min-height: 180px;
    }
    
    .wptb-service--inner .wptb-item--title {
        font-size: 20px;
    }
    
    .wptb-service--inner .wptb-item--description {
        font-size: 13px;
    }
}