@import url("https://diettut.org/assets/css/master.css");

body {
    background-color: white;
}

.box {
	margin: 1em 0;
    display: block;
    position: relative;
    background-size: cover;
    background-position: center;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    opacity: 0.9;
}

.box:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.box:hover::before {
    background-color: rgba(9, 9, 9, 0.3); /* Darker overlay on hover */
    transition: background-color 0.5s ease;
}

.box-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ffffff; /* Bright text */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2); /* Stronger text shadow */
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 10;
}

/* Dark overlay over the background image */
.box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(9, 9, 9, 0.7); /* Initial overlay */
    z-index: 1;
}

.box h2 {
    position: relative;
    z-index: 20;
    color: white;
}

/* Background images for each class */
.branch1 {
    background-image: url('../data/img/branches/branch1.jpeg');
}

.branch2 {
    background-image: url('../data/img/branches/branch2.jpeg');
}

.branch3 {
    background-image: url('../data/img/branches/branch3.jpeg');
}

.branch4 {
    background-image: url('../data/img/branches/branch4.jpeg');
}

.branch5 {
    background-image: url('../data/img/branches/branch5.jpeg');
}



/* For individual pages */


.image-container {
  position: relative;
  display: inline-block;
}

.image-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
  pointer-events: none;
}

.image-container img {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
}

.cmde-image {
	background-image: url('../../data/img/branches/CMDE.jpeg');
	background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.backend-img {
	background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}