.container {
    display: flex; /* Places boxes side by side */
    justify-content: space-between; /* Spaces them evenly */
    align-items: stretch; /* Ensures equal height */
    gap: 20px; /* Space between boxes */
}

/* Base styles for all text containers */
.text-container {
    flex: 1; /* Makes all boxes equal width */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distributes content evenly */
    align-items: center; /* Centers text horizontally */
    height: 750px; /* 🚀 Forces all boxes to be the same height */
    position: relative;
    width: 100%;
    max-width: 800px;
    min-width: 275px;
    padding: 10px;
    color: white !important;
    text-align: center;
    font-family: Arial, sans-serif;
    overflow: hidden;
    border-radius: 50px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.5s ease-in-out;
}

/* Gray overlay that does NOT affect the text */
.text-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Gray overlay */
    z-index: 1; /* Keeps the overlay behind the text */
}

/* Ensure text stays on top */
.text-container h4,
.text-container p,
.text-container .cta-button {
    position: relative;
    z-index: 2;
    margin: 0;
   
}

/* Header at the top */
.text-container h4 {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 10px;
   
}

/* Paragraph section - even spacing */
.text-container p {
    flex-grow: 1; /* 🚀 This ensures paragraphs take up space evenly */
    display: flex;
    align-items: center; /* Centers text vertically */
    justify-content: center;
    text-align: center;
    padding: 10px 20px;
}

/* Button at the bottom */
.text-container .cta-button {
    margin-top: auto;
    margin-bottom: 10px;
}

/* Zoom effect on hover */
.text-container:hover {
    transform: scale(1.05);
}

/* Background images */
.feed {
    background-image: url('https://dantheman.acs-it.uk/wp-content/uploads/2025/01/cattle-grazing-in-field-deborah-pendell.jpg');
}

.haulier {
    background-image: url('https://dantheman.acs-it.uk/wp-content/uploads/2025/04/IMG-20250401-WA0002.jpg');
}

.customs {
    background-image: url('https://dantheman.acs-it.uk/wp-content/uploads/2025/01/iStock_000054216702_Full.jpg');
}

.it {
    background-image: url('https://dantheman.acs-it.uk/wp-content/uploads/2025/01/IT-Solutions-in-Dubai.jpg');
}

.zoom-image {
    transition: transform 0.4s ease-in-out; /* Smooth zoom transition */
    border-radius: 10px; /* Optional: adds rounded corners */
}

.zoom-image:hover {
    transform: scale(1.1); /* Scales the image up by 10% */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.image-link {
  display: block; /* Makes the anchor tag a block-level element */
}
