/* --- General Styles (No Change) --- */


.hero_image{
  width:65%;

}
.hero_description{
  width:27%;

}
.hero_title{
  margin-bottom:20px;
  color:#A50307;
  padding:10px;
  border-bottom:2px solid #A50307;
}
.hero_p {
  line-height:28px;
}
.special_red{
  color:#A50307;
  font-weight:700;
  font-style:italic;
}


.image-container:hover{
background-color: rgba(122,122,122,0.6);
    cursor:pointer;
}
 .image-container {
            /* --- Container Styles --- */
   
            position: relative; /* Crucial for layering child elements */
            width: 23%;
            height: 300px;
            overflow: hidden;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
            background-color: rgba(255,255,255,0.2); /* Fallback color while image loads */
        }

        .image-container .background-img {
            /* --- Image Styles --- */
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover; /* Behaves like background-size: cover */
            

            transition: opacity 0.4s ease-in-out; /* Smooth transition */
            z-index: 1; /* Base layer */
        }
img.background-img{
  opacity:0.8;
}

        .image-container .content {
            /* --- Content Styles --- */
            position: relative; /* Allows z-index to work */
            z-index: 2; /* Sits on top of the image (z-index: 1) */
            
            /* Center the text */
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;

            /* Text styling */
            color: white;
            font-size: 2rem;
            font-family: sans-serif;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        }

        /* --- The Hover Effect --- */
        .image-container:hover .background-img {
            opacity: 1; /* On hover, the image becomes less opaque */
        }

@media only screen and (max-width: 1400px) {
  .image-container {
    width:24%;
  }
}
@media screen and (max-width: 1020px){
    .image-container {
    width:30%;
  }
    .hero{
        flex-direction: column;
    }
    .hero_image{
        width:100% !important;
    }
    .hero_description{
        width:100% !important;
    }
}
@media only screen and (max-width: 780px) {
  .image-container {
    width:47%;
  }
}

@media only screen and (max-width: 450px) {
  .image-container {
    width:100%;
  }
}