/*
 * Box styles for individual boxes
 */
.box {
  display: flex;
  align-items: center;
  width: 1000px; /* Increased width for a larger box */
  height: 450px;
  padding: 20px;
  box-sizing: border-box;
  background-color: #f2f2f2;
  transition: box-shadow 0.4s ease;
  border-radius: 10px;
  margin: 0 auto; /* Center the box */

  /* This complex border creates the zigzag pattern on the top/bottom and a solid white border on the sides */
  border-top: 45px solid transparent;
  border-bottom: 45px solid transparent;
  border-left: 45px solid white;
  border-right: 45px solid white;

  border-image-source: url("../img/bg/63.jpg");
  border-image-slice: 45;
  border-image-width: 15px;
  border-image-repeat: repeat;
}

.box:hover {
  box-shadow: 0 0 15px 5px rgba(255, 255, 255, 0.8);
}




.content {
  flex: 1;
  color: #4C808A;
  font-size: 1.2rem;
  padding-right: 20px;
  color: black;
}

@font-face {
  font-family: 'Betenoira';
  src: url('../fonts/betenoira/BeteNoirNF.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.content h2 {
  margin: 0 0 10px 0;
  font-family: 'Verdana';
  color: #4C808A;
  font-size: 40px;
}

.image-wrapper {
  flex-shrink: 0;
  width: 250px; /* Slightly reduced to fit in the smaller box */
  height: 400px; /* Slightly reduced to fit better */
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-wrapper img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(255,255,255,0.5);
  transition: box-shadow 0.4s ease;
}

/* For the specific mission box only */
.box.mission-box {
  justify-content: center; /* Center content horizontally in the flex container */
  text-align: center; /* Center text */
}

.box.mission-box .content {
  padding-right: 0; /* Remove right padding since we're centering */
  padding-left: 20px; /* Add some left padding if needed */
}

.box.mission-box .content h2 {
  margin-top: -60px;
  width: 100%; /* Ensure heading takes full width */
}



/*
 * Row styling for the container of boxes
 */
.row {
  display: flex;
  justify-content: center;
  max-width: 2400px;
  margin: 0 auto;
  padding: 20px 0;
}

.ms-product-tab{
  background-image: url('../img/patterns/Changed.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
.ms-product-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(62, 145, 114, 0.5); /* Adjust opacity as needed */
  z-index: -1;
}
/* Optional: Responsive adjustments */
@media (max-width: 1300px) {
  .row {
    flex-direction: column;
    align-items: center;
  }
  .box {
    margin: 15px 0; /* Vertical margin in column layout */
    width: 90%;
    max-width: 600px;
    height: 400px;
  }
  .image-wrapper {
    width: 200px;
    height: 320px;
  }
  .content h2 {
    font-size: 32px;
  }
}

@media (max-width: 900px) {
  .box {
    width: 98%;
    max-width: 450px;
    height: 320px;
    padding: 12px;
    border-top-width: 25px;
    border-bottom-width: 25px;
    border-left-width: 25px;
    border-right-width: 25px;
    border-image-slice: 25;
    border-image-width: 8px;
  }
  .image-wrapper {
    width: 120px;
    height: 180px;
  }
  .content {
    font-size: 1rem;
    padding-right: 10px;
    padding-left: 10px;
  }
  .content h2 {
    font-size: 24px;
  }
}

@media (max-width: 600px) {
  .box {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 98vw;
    height: auto;
    min-height: 220px;
    padding: 8px;
    border-top-width: 12px;
    border-bottom-width: 12px;
    border-left-width: 12px;
    border-right-width: 12px;
    border-image-slice: 12;
    border-image-width: 4px;
    margin: 10px 0;
  }
  .image-wrapper {
    width: 100%;
    height: 120px;
    margin-bottom: 10px;
  }
  .content {
    font-size: 0.95rem;
    padding: 0 4px;
  }
  .content h2 {
    font-size: 18px;
    margin-top: 0;
  }
}

/* ... existing code ... */
