/* Parent container styling */
.modsa {
    display: flex; /* Flexbox layout */
    /*flex-wrap: wrap; /* Ensure items wrap to the next row if needed */
    justify-content: center; /* Center the boxes */
    gap: 10px; /* Spacing between boxes */
}

/* Individual ad box styling */
.ad_prev_main {
    margin: 5px;
    position: relative;
    width: 200px; /* Set a fixed width for equal-sized boxes */
    height: 250px; /* Set a fixed height for equal-sized boxes */
    display: inline-block;
    background-color: white;
    border-radius: 5px; /* Rounded corners */
    text-align: center; /* Center content inside the box */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
    overflow: hidden; /* Ensure content stays inside the box */
    color: black; /* Text color */
    font-size: 14px; /* Text size */
}

/* Ignore button styling */
.ad_ignore_button_span {
    display: none;
    position: absolute;
    right: 5px;
    top: 5px;
    cursor: pointer;
}

/* Show ignore button on hover */
.ad_prev_main:hover .ad_ignore_button_span {
    display: block !important;
}

/* Styling for inner elements */
.ad_prev_img {
    width: 100%; /* Make image responsive within the box */
    height: auto; /* Maintain aspect ratio */
    margin: 0 auto; /* Center the image */
    border-bottom: 1px solid #ccc; /* Separator line below the image */
}

.ad_prev_first, .ad_prev_third {
    font-size: 14px;
    padding: 10px; /* Add padding for better spacing */
}

.ad-price-lable {
    font-weight: bold;
    padding: 10px;
    color: black;
}

/* Button styling for navigation */
.ad_prev_anchor {
    font-weight: bold;
    text-decoration: none;
    color: black;
}

.ad_prev_anchor:active {
    padding: 0;
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ad_prev_main {
        width: 150px;
        height: 200px;
    }
}
