.branch-section {
    max-width: 890px;
    margin: auto;
}

.branch {
    background: #2D1D74;
    color: #ffffff;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}
.branch img{
  height: 20px;
}

.branch:hover {
    background: #402aa1;
}

.branch-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 10px;
    background: white;
    border-radius: 5px;
    transition: max-height 0.5s ease-out, padding 0.3s ease;
}

.images {
    display: flex;
    flex-wrap: wrap;
    gap: 22.5px;
    padding-top: 10px;
}

.image-container {
    position: relative;
    width: 200px;
    height: 150px;
    border-radius: 5px;
    overflow: hidden;
}

/* Initially, image is less visible */
.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8; /* Image is more transparent when text is shown */
    transition: opacity 0.3s ease;
}

.overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

/* Initially, text is visible, and image is transparent */
.overlay {
    opacity: 1;
}

/* On hover, text disappears and image becomes fully visible */
.image-container:hover .overlay {
    opacity: 0;
}

.image-container:hover img {
    opacity: 1;
}

h1 {
    justify-content: center;
    display: flex;
    align-items: center;
    color: #22184D;
}
@media (max-width: 768px) {
  .branch-section {
      padding: 0 10px;
  }

  .branch {
      font-size: 16px;
      padding: 12px;
  }

  .images {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 15px;
  }

  .image-container {
      width: 100%;
      height: auto;
  }

  .image-container img {
      height: 150px;
  }

  h1 {
    text-align: center; /* Centers the heading */
}


@media (max-width: 480px) {
  .images {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 10px;
  }

  .image-container img {
      height: 130px;
  }
}
}