body {
    margin: 0;
    background-color: #f0f0f0;
  }
  
  h2 {
    margin-top: -10px;
  }
  
  .container {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
    min-height: 100vh;
  }
  
  .image-block {
    width: 580px;
    height: 1079px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 10px;
  }
  
  .image-block img {
    /* width: 100%;
      height: 100%; */
    position: absolute;
    object-fit: cover;
    transition: opacity 0.5s ease;
  }
  
  .default-image {
    opacity: 1;
  }
  
  .hover-image {
    opacity: 0;
  }
  
  .image-block:hover .default-image {
    opacity: 0;
  }
  
  .image-block:hover .hover-image {
    opacity: 1;
  }
  
  .learn-more-btn {
    position: absolute;
    bottom: 80px;
    left: 90px;
    background-color: #406a42;
    color: white;
    font-size: 18px;
    font-weight: 600;
    padding: 27px 85px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  .link-group {
    position: absolute;
    bottom: 80px;
    left: 90px;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .custom-link {
    color: #ff0099;
    font-size: 25px;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    text-decoration: none;
    transition: color 0.3s ease;
    /* padding-left: 80px; */
  }
  
  .custom-link:hover {
    color: #ffffff;
  }
  
  .image-block:hover .custom-link {
    color: #ffffff;
  }
  
  .social-row {
    position: absolute;
    bottom: 80px;
    left: 130px;
    display: flex;
    gap: 55px;
  }
  
  .social-icon {
    width: 40px;
    /* height: 40px; */
    transition: transform 0.3s ease;
  }
  
  .social-icon:hover {
    transform: scale(1.2);
  }
  
  .main-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }
  
  .text-block {
    font-family: Arial, Helvetica, sans-serif;
    text-align: left;
    font-size: 20px;
    /* font-weight: bold; */
    color: #333;
    margin-top: 10px;
    max-width: 580px;
    padding: 15px;
    word-wrap: break-word;
    white-space: normal;
    box-sizing: border-box;
    margin: 10px auto 0;
  }
  
  .block-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .link-group {
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
  }
  
  .social-row {
    position: absolute;
    display: flex;
    bottom: 80px;
    left: 33%;
    transform: translateX(-50%);
    gap: 43px;
    z-index: 2;
  }
  
  .social-icon {
    width: 35px;
  }
  
  .image-block img {
    object-fit: contain;
  }
  
  /*-------------- MEDIA -------------------------*/
  
  @media (max-width: 1366px) {
    .image-block {
      width: 100%;
      height: auto;
      aspect-ratio: 580/1079;
    }
  
    .image-block img {
      width: 100%;
      height: 100%;
      /* object-fit: cover; */
    }
  
    .learn-more-btn {
      bottom: 7.5%;
      left: 14%;
      /* transform: translateX(-50%); */
      padding: 21px 90px;
      font-size: 13px;
    }
  
    .social-row {
      bottom: 70px;
      gap: 50px;
      padding-top: 35px;
      left: 120px;
    }
  }
  
  @media (min-width: 811px) and (max-width: 1365px) {
    .container {
      align-items: center;
      gap: 40px;
    }
  
    .block-wrapper {
      width: 80%; /* Adjust based on your design preference */
    }
  
    /* Optional: Adjust button and link positions if needed */
    .learn-more-btn {
      bottom: 7%;
      left: 50%;
      right: -35%;
      transform: translateX(-53%);
      margin-left: 10px;
    }
  
    .social-row {
      left: 30%;
      transform: translateX(-50%);
    }
  }
  
  @media (max-width: 810px) {
    .container {
      flex-direction: column;
      align-items: stretch;
      gap: 40px;
      padding: 0px;
    }
  
    .image-block {
      /* width: 100%; */
      /* height: auto; */
      aspect-ratio: 3/4;
      border-radius: 0;
    }
  
    .text-block {
      padding: 15px 20px;
      font-size: 18px;
    }
  
    .learn-more-btn {
      bottom: 7.5%;
      left: 42%;
      transform: translateX(-50%);
      padding: 30px 92px;
      font-size: 16px;
    }
  
    .social-row {
      bottom: 100px;
      gap: 50px;
      padding-top: 40px;
      left: 270px;
    }
  }
  
  @media (max-width: 510px) {
    .container {
      gap: 30px;
      padding: 10px;
      min-height: auto;
      border-radius: 0;
      padding: 0;
    }
  
    .image-block {
      width: 100%;
      /* width: 95%; */
      aspect-ratio: 2/3; /* More mobile-friendly ratio */
      /* max-height: 70vh; */
    }
  
    .image-block img {
      object-fit: contain;
      object-position: center;
    }
  
    .learn-more-btn {
      bottom: 55px;
      padding: 15px 30px;
      font-size: 14px;
      border-radius: 6px;
    }
  
    .link-group {
      bottom: 15%;
      gap: 15px;
    }
  
    .custom-link {
      font-size: 16px;
      padding-left: 0;
    }
  
    .social-row {
      bottom: 45px;
      gap: 35px;
      padding-top: 25px;
      left: 130px;
    }
  
    .social-icon {
      width: 30px;
    }
  
    .text-block {
      font-size: 16px;
      padding: 10px 50px;
      line-height: 1.5;
    }
  
    .text-block h3,
    .text-block h4 {
      font-size: 18px;
      margin: 10px 0;
    }
  
    /* Adjust hover effects for mobile */
    .image-block:hover .default-image {
      opacity: 1;
    }
    .image-block:hover .hover-image {
      opacity: 0;
    }
    .image-block:active .default-image {
      opacity: 0;
    }
    .image-block:active .hover-image {
      opacity: 1;
    }
  }
  
  @media (max-width: 400px) {
    .container {
      gap: 20px;
    }
  
    .image-block {
      width: 100%;
      aspect-ratio: 1/1.2;
      border-radius: 0;
      /* height: auto; */
      /* max-height: 70vh; */
    }
  
    .image-block img {
      position: absolute;
      /* left: 0;
        top: 0; */
      width: 100%;
      height: 100%;
    }
  
    .learn-more-btn {
      bottom: 30px;
      padding: 10px 32px;
      font-size: 12px;
      left: 160px;
    }
    .link-group {
      bottom: 40px;
      gap: 10px;
    }
    .custom-link {
      font-size: 14px;
    }
  
    .social-row {
      bottom: 45px;
      gap: 35px;
      padding-top: 25px;
      left: 130px;
    }
  
    .social-icon {
      width: 25px;
    }
    .text-block {
      font-size: 14px;
      padding: 10px 30px;
      /* margin-top: -120px; */
    }
  }