:root {
  --container-pad: 100px;
  --container-max: 1200px; /* you already use 1200px */
}
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
body {
  margin: 0;

  font-family: "Arial", sans-serif;
}

.hero-section2 {
  position: relative;
  width: 100%;
  height: 800px; /* fixed banner height */
  overflow: hidden;
}

/*Deans Info*/
.profile-holder {
  width: 100%;
  background-color: black;
}
.profile-inner {
  position: relative;
  width: 100%;
  height: 500px;
  background-color: #c1d83c;
}

.profile-card {
  position: absolute;
  left: 50%;

  transform: translate(
    -50%,
    -55%
  ); /*Moves the card either left r right on the x-axis*/

  z-index: 5;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;

  height: 800px;
  width: 70%;
  background-color: white;
  gap: 40px;

  padding: 40px;
}
/*Cards & Info*/
.card-right {
  width: 50%;
  height: 100%;

  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: space-around;
}
.heading-underlined {
  display: flex;
  flex-direction: column;
  color: black;
  font-size: 12px;
}
.heading-underlined h1 {
  padding-bottom: 15px;
  font-weight: 200;
}
.card-right h2 {
  font-size: 35px;
  font-weight: 800;
}

.h1-line {
  border: 5px solid rgba(189, 243, 25, 0.822);
  border-image-source: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 1px,
    rgba(189, 243, 25, 0.822) 1px,
    rgba(0, 0, 0, 0.2) 3px
  );
  border-image-slice: 5;
  border-image-width: 1;
  border-image-outset: 0;
  border-image-repeat: stretch;
  box-sizing: border-box;
  width: 27%;
}
.h1-line2 {
  width: 600px;

  border: 5px solid rgba(189, 243, 25, 0.822);
  border-image-source: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 1px,
    rgba(189, 243, 25, 0.822) 1px,
    rgba(0, 0, 0, 0.2) 3px
  );
  border-image-slice: 5;
  border-image-width: 1;
  border-image-outset: 0;
  border-image-repeat: stretch;
  box-sizing: content-box;
}
.profile-details {
  list-style: none;
  padding: 0;
  margin: 0;
}
.profile-details li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 15px;
}
.profile-details li::before {
  content: "◆"; /* diamond bullet */
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 15px;
  color: #c1d83c;
}
.social-tab {
  display: flex;
  flex-direction: row;

  gap: 24px;
}
.social-tab a {
  text-decoration: none;
  font-size: 15px;
  color: black;
  letter-spacing: 1px;
  font-weight: 400;
  transition: all 0.25s ease;
}
.social-tab a:hover {
  color: #c1d83c;
  text-shadow: 0 0 8px rgba(209, 255, 69, 0.2);
}
.signature {
  font-family: "Caveat", cursive;
  font-size: 32px;
}

.card-left {
  width: 50%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.card-left video {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 430px) {
  .card-right {
    width: 100%;
  }

  .profile-inner {
    height: 1650px;
    padding: 40px 20px;
  }

  .h1-line2 {
    width: 60px;
  }
}
.h1-line2 {
  width: 100%;
}

@media (min-width: 2200px) {
  .profile-inner {
    position: relative;
    width: 100%;
    min-height: 700px;
    background-color: #c1d83c;
  }

  .profile-card {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -55%);
    z-index: 5;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    min-height: 800px;
    width: 70%;
    background-color: white;
    gap: 50px;
    padding: 40px;
  }

  .card-left {
    width: 42%;
    height: 100%;
    overflow: hidden;
    position: relative;
  }

  .card-right {
    width: 58%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
  }

  .card-left video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
  }
  .profile-card {
    width: 62%;
    min-height: 900px;
  }

  .card-left {
    width: 38%;
  }

  .card-right {
    width: 62%;
  }

  .card-left video {
    object-position: center 18%;
  }
}
@media (min-width: 2200px) {
  .profile-inner {
    position: relative;
    width: 100%;
    min-height: 700px;
    background-color: #c1d83c;
  }

  .profile-card {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -55%);
    z-index: 5;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    width: 62%;
    min-height: 900px;
    background-color: white;
    gap: 50px;
    padding: 40px;
  }

  .card-left {
    width: 38%;
    height: 100%;
    min-height: 820px;
    overflow: hidden;
    position: relative;
  }

  .card-right {
    width: 62%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
  }

  .card-left video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    display: block;
  }
}
