@font-face {
  font-family: "AvenirNext-Regular";
  src: url("../Assets/webFonts/AvenirNextProRegular/font.woff2") format("woff2"),
       url("../Assets/webFonts/AvenirNextProRegular/font.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "AvenirNext-Medium";
  src: url("../Assets/webFonts/AvenirNextProRegular/font.woff2") format("woff2"),
       url("../Assets/webFonts/AvenirNextProRegular/font.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "AvenirNext-DemiBold";
  src: url("../Assets/webFonts/AvenirNextProDemi/font.woff2") format("woff2"),
       url("../Assets/webFonts/AvenirNextProDemi/font.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "AvenirNext-Bold";
  src: url("../Assets/webFonts/AvenirNextProBold/font.woff2") format("woff2"),
       url("../Assets/webFonts/AvenirNextProBold/font.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

::selection {
  color: white;
  background-color: #282828;
  background-clip: unset;
  -webkit-text-fill-color: white;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

html {
  font-size: 16px;
  width: 100%;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  body {
    padding-top: 100px;
  }
}
@media (min-width: 768px) {
  body {
    padding-top: 0px;
  }
}

main {
  animation: fadeInMain 0.6s ease forwards;
  background-color: rgba(105, 90, 205, 0);
  padding-top: 35px;
}
@media (min-width: 768px) {
  main {
    padding-top: 70px;
  }
}
@media (min-width: 1024px) {
  main {
    padding-top: 100px;
  }
  [data-page=Home] main, [data-page="Job Search"] main {
    padding-top: 60px;
  }
}

@keyframes fadeInMain {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
section {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 100%;
}
section.ui-BorderedSection {
  border-top: 1px solid #e0e0e0;
  padding-top: 70px;
}
@media (min-width: 768px) {
  section.ui-BorderedSection {
    border-top: 1px solid #e0e0e0;
    padding-top: 70px;
  }
}

section[data-section] {
  margin-bottom: 70px;
}
@media (min-width: 768px) {
  section[data-section] {
    margin-bottom: 120px;
  }
  section[data-section].ui-BorderedSection {
    margin-bottom: 70px;
  }
}

@media (min-width: 768px) {
  section[data-section=harness-the-power] {
    margin-bottom: 0px;
  }
}

[data-hero-section=false] [data-section=hero] {
  display: none;
}

@media (min-width: 950px) {
  [data-page=Home] [data-section=search] {
    margin-bottom: 90px;
  }
}

section[data-section=helping-you] {
  margin-bottom: 150px;
}
@media (min-width: 768px) {
  section[data-section=helping-you] {
    margin-bottom: 375px;
  }
}

.ppsection {
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .ppsection {
  margin-bottom: 70px;
} }

.sections {
  width: 100%;
}

.section {
  margin-bottom: 90px;
}
.section:last-child {
  margin-bottom: 0;
}

.ns-Content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: start;
  width: calc(100% - 30px);
  margin-left: 15px;
  margin-right: 15px;
}
@media (min-width: 600px) {
  .ns-Content {
    width: calc(100% - 80px);
    margin-left: 40px;
    margin-right: 40px;
  }
}

.ns-Content_right {
  align-items: end;
  text-align: right;
}

.ns-Content_center {
  align-items: center;
  text-align: center;
}

.ns-Content_center_noalign {
  align-items: center;

}

[data-section=hero] .ns-Content {
  max-width: 800px;
}
[data-page=Home] [data-section=hero] .ns-Content {
  max-width: 974px;
}

[max-width="875"] {
  max-width: 875px;
}

@media (min-width: 768px) {
  [data-section=focus-on-end-user] .ns-Content {
    align-items: center;
    text-align: center;
  }
}

[data-section=focus-on-end-user] .ns-Content p {
  width: 56.25%;
}
@media (min-width: 768px) {
  [data-section=focus-on-end-user] .ns-Content p {
    max-width: 500px;
  }
}

.ns-ContentBlockGrey {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: calc(100% - 30px);
  margin-left: 15px;
  margin-right: 15px;
  max-width: 800px;
  background-color: #f7f7f7;
  border-radius: 15px;
  padding: 60px;
  box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.1);
}
.ns-ContentBlockGrey.variant {
  align-items: start;
  text-align: left;
}

.ns-ContentBlockGrey h2 {
  font-size: clamp(1.5rem, 1.1508rem + 1.746vw, 2.1875rem);
}

.ns-ContentBlockGrey_Content {
  max-width: 555px;
  text-align: left;
  margin-bottom: 25px;
}
.variant .ns-ContentBlockGrey_Content {
  max-width: 100%;
  margin-bottom: 0;
}

.ns-ContentBlockGrey .ui-PlayButtonGreen {
  width: 100%;
  max-width: 400px;
}

.ns-ContentBlockGrey p {
  text-align: center;
}

.ns-ContentBlockGrey.variant p {
  text-align: left;
}

.ns-ContentBlockGrey ul {
  list-style-type: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 35px;
  margin-bottom: 50px;
}

.ns-ContentBlockGrey ul:last-child {
  margin-bottom: 0px;
}

.ns-ContentBlockGrey li {
  position: relative;
  font-family: AvenirNext-Regular;
  font-size: clamp(1rem, 0.7778rem + 1.1111vw, 1.4375rem);
  line-height: 1.4375;
}

.ns-ContentBlockGrey li:before {
  content: "";
  position: absolute;
  top: 13px;
  left: -20px;
  width: 5px;
  aspect-ratio: 1/1;
  border-radius: 100%;
  background-color: #48dbac;
}
@media (min-width: 950px) {
  .ns-ContentBlockGrey li:before {
    left: -23px;
    width: 8px;
  }
}

.ns-ContentBlockGrey_Content > p {
  margin-bottom: 45px;
}

.ppul {
  list-style-type: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 35px;
  margin-bottom: 50px;
}

.ppul:last-child {
  margin-bottom: 0px;
}

.ppli {
  position: relative;
  font-family: AvenirNext-Regular;
  font-size: clamp(1.125rem, 0.8559rem + 1.1041vw, 1.5625rem);
  line-height: 1.4375;
}

.ppli:before {
  content: "";
  position: absolute;
  top: 13px;
  left: -20px;
  width: 8px;
  aspect-ratio: 1/1;
  border-radius: 100%;
  background-color: #48dbac;
}
@media (min-width: 950px) {
  li:before {
    left: -23px;
    width: 8px;
  }
}

h1 {
  font-family: AvenirNext-Bold;
  font-weight: normal;
  font-size: clamp(2.3125rem, 1.5436rem + 3.1546vw, 3.5625rem);
  line-height: 1.2909090909;
  margin-bottom: 30px;
}

.h1-Gradient {
  font-size: clamp(2.1875rem, 0.5114rem + 8.3807vw, 5.875rem);
  background-image: linear-gradient(45deg,
              color(display-p3 0.7647 0.2039 0.6549),
              color(display-p3 0.5725 0.3529 0.6431),
              color(display-p3 0.1804 0.6471 0.5922) 50%,
              color(display-p3 0.1975 0.7216 0.5490) 90%);
  background-size: 100%;
  background-repeat: repeat;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  max-width: 100%;
}

.h1-Gradient span {
  display: block;
  color: black;
  font-family: AvenirNext-Regular;
  font-weight: normal;
  font-size: clamp(1rem, 0.7443rem + 1.2784vw, 1.5625rem);
  line-height: 1.36;
  -webkit-text-fill-color: black;
}

h2,
.h2 {
  font-family: AvenirNext-Bold;
  font-weight: normal;
  font-size: clamp(2.3125rem, 1.5436rem + 3.1546vw, 3.5625rem);
  line-height: 1.1666666667;
  margin-bottom: 25px;
}
h2.small,
.h2.small {
  font-size: clamp(1.5rem, 1.3095rem + 0.9524vw, 1.875rem);
}
@media (min-width: 768px) {
  h2,
  .h2 {
    margin-bottom: 30px;
  }
}

h3 {
  font-family: AvenirNext-Bold;
  font-size: 35px;
  font-size: clamp(1.5rem, 1.1508rem + 1.746vw, 2.1875rem);
  color: #282828;
  letter-spacing: 0;
  margin-bottom: 15px;
}

p {
  font-family: AvenirNext-Regular;
  font-size: clamp(1.125rem, 0.8559rem + 1.1041vw, 1.5625rem);
  line-height: 1.4375;
  margin-bottom: 25px;
}

[data-page="Values and Goals"] main > section:nth-child(-n+2) p {
  font-size: clamp(1rem, 0.7143rem + 1.4286vw, 1.5625rem);
}

[data-section=hero] p:last-child {
  margin-bottom: 0;
}

.font-30-41 {
  font-size: clamp(1.875rem, 1.5258rem + 1.746vw, 2.5625rem);
}

.ns-Content_left p,
.ns-Content_right p {
  width: 75%;
  width: 65%;
}

.ui-TextGreen-l {
  font-family: AvenirNext-Bold;
  font-size: clamp(3.125rem, 2.0139rem + 5.5556vw, 5.3125rem);
  line-height: 1;
  color: #189970;
}

.ui-TextGreen-xl {
  font-family: AvenirNext-Bold;
  font-size: clamp(3.125rem, 1.7282rem + 6.9841vw, 5.875rem);
  line-height: 1.1092436975;
  color: #189970;
}

.ui-LargeUppercaseHeading {
  font-family: AvenirNext-Regular;
  font-weight: normal;
  text-align: center;
  text-transform: uppercase;
  font-size: clamp(2.1875rem, 0.3462rem + 9.2063vw, 5.8125rem);
  margin-bottom: 0;
  max-width: 1100px;
}
[data-page=Location] .ui-LargeUppercaseHeading {
  margin-bottom: 60px;
}

[max-width="450"] {
  max-width: 450px !important;
}

[max-width="500"] {
  max-width: 500px !important;
}

[max-width="600"] {
  max-width: 600px !important;
}

[max-width="650"] {
  max-width: 650px !important;
}

[max-width="700"] {
  max-width: 700px !important;
}

[max-width="800"] {
  max-width: 800px !important;
}

/* Grid Layouts */
[grid] {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100%;
}

@media (min-width: 600px) {
  [grid-items] {
    width: calc(100% - 80px);
    margin-left: 40px;
    margin-right: 40px;
  }
}

@media (min-width: 768px) {
  [grid-4] [grid-items] {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (min-width: 1200px) {
  [grid-4] [grid-items] {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
  }
}

[grid-5] [grid-items] {
  grid-template-columns: 1fr;
  gap: 25px;
}

/* Mobile: 2 columns using flexbox (overrides styles.css flexbox) */
[grid-5] [grid-items] > div,
[grid-5] [grid-items] > a {
  flex: 0 0 calc(50% - 12.5px);
}

@media (min-width: 768px) {
  [grid-5] [grid-items] {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}

@media (min-width: 1200px) {
  [grid-5] [grid-items] {
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    max-width: 1200px;
  }
}

/* Icon Cards */
.ic-IconCard {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ic-Card img {
  height: 60px;
  margin-bottom: 20px;
}

.ic-Card span {
  font-family: AvenirNext-Bold;
  font-size: clamp(1.125rem, 1rem + 0.625vw, 1.375rem);
  color: #282828;
  margin-bottom: 0;
  line-height: 1.3;
}

.ic-Card p {
  font-size: clamp(0.9375rem, 0.875rem + 0.3125vw, 1.125rem);
  line-height: 1.438;
  color: #282828;
  margin-bottom: 0;
}

/* Photo Cards */
.pc-PhotoCards {
  gap: 30px;
  width: calc(100% - 30px);
  margin-left: 15px;
  margin-right: 15px;
  margin-bottom: 40px;
}

@media (min-width: 600px) {
  .pc-PhotoCards {
    width: calc(100% - 80px);
    margin-left: 40px;
    margin-right: 40px;
  }
}


.pc-Image {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 300px;
  overflow: hidden;
}

.pc-Image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pc-Heading {
  font-family: AvenirNext-Bold;
  font-size: clamp(1.25rem, 1.125rem + 0.625vw, 1.5rem);
  color: #282828;
  margin-bottom: 0;
}

.pc-SubHeading {
    font-family: AvenirNext-Medium;
    font-size: clamp(0.9375rem, 0.7153rem + 1.1111vw, 1.375rem);
    color: #282828;
    margin-bottom: 1.25rem;
}

@media (min-width: 1024px) {
  .pc-SubHeading {
    height: 26px;
    line-height: 26px;
    white-space: nowrap;
    overflow: hidden;
  }
}
@media (min-width: 1024px) {
  .break-supervisor {
    display: block;
    width: 100%;
  }
  .pc-SubHeading {
    white-space: normal;
    height: auto;
    line-height: 26px;
    overflow: visible;
  }
}

/* SVG Animation */
[data-section="helping-you"] .ns-SVGAnimationWrapper {
    position: relative;
}

@media (min-width: 768px) {
    [data-section="helping-you"] .ns-SVGAnimationWrapper {
        order: -1;
    }
}

#svg-JumpingPerson {
    position: absolute;
    top: 50px;
    width: 1000px;
    left: 50%;
    height: unset;
    transform: translateX(-47.5%);
}

@media (min-width: 768px) {
    #svg-JumpingPerson {
        top: 100px;
        transform: translateX(-50%);
        width: 1500px;
    }
}

@media (min-width: 1024px) {
    #svg-JumpingPerson {
    width: 2000px;
    top: 0;
    }
}

#Jumping-Person-Line {
    stroke-dasharray: 5185.10986328125;
    stroke-dashoffset: -5185.10986328125;
    transform-box: fill-box;
}

.animate #Jumping-Person-Line {
    animation: drawJumpingPerson 4s ease both;
}

#Jumping-Person-Shadow {
    opacity: 0;
    transition: opacity .4s ease;
}

.animate #Jumping-Person-Shadow {
    animation: fadeInJumpingPersonShadow .6s ease both;
}

@keyframes drawJumpingPerson {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes fadeInJumpingPersonShadow {
  100% {
    opacity: 1;
  }
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .ns-HeaderLogo img {
        display: none;
    }

    .ns-HeaderLogo span {
        font-family: AvenirNext-DemiBold;
    }
}

/* Target div for parallax image */
#target {
    position: relative;
    width: 100%;
    max-width: 1200px;
    min-height: 400px;
    max-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 55px;
    border-radius: 15px;
    overflow: hidden;
}


[data-page="Who We Are"] .pc-PhotoCards,
[data-page="Academies"] .pc-PhotoCards {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: calc(100% - 30px);
  margin-left: 15px;
  margin-right: 15px;
  margin-bottom: 40px;
}

@media (min-width: 600px) {
  [data-page="Who We Are"] .pc-PhotoCards,
  [data-page="Academies"] .pc-PhotoCards {
    margin-left: 40px;
    margin-right: 40px;
  }
}

@media (min-width: 768px) {
  [data-page="Who We Are"] .pc-PhotoCards.pc-Grid,
  [data-page="Academies"] .pc-PhotoCards.pc-Grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
  }
}

/* Mobile-only grid layout - don't affect desktop */
@media (max-width: 767px) {
  [data-page="Who We Are"] .pc-PhotoCard,
  [data-page="Academies"] .pc-PhotoCard {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto 1fr !important;
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    aspect-ratio: 350/525 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 525px !important;
    max-height: 700px !important;
  }

  /* Image positioning for mobile only */
  [data-page="Who We Are"] .pc-Image,
  [data-page="Academies"] .pc-Image {
    position: relative !important;
    grid-row: 1/3 !important;
    grid-column: 1/2 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
  }
}

/* Mobile-specific fixes for image sizing issues */
@media (max-width: 767px) {
  [data-page="Who We Are"] .pc-Image,
  [data-page="Academies"] .pc-Image {
    left: unset !important;
    transform: none !important;
    bottom: unset !important;
  }

  /* Mobile gradient overlay - top to bottom */
  [data-page="Who We Are"] .pc-Image:after,
  [data-page="Academies"] .pc-Image:after {
    display: block !important;
    content: "" !important;
    position: absolute !important;
    z-index: 1 !important;
    top: 0 !important;
    width: 100% !important;
    height: 63% !important;
    background: linear-gradient(to bottom, rgba(247, 247, 247, 0.95), transparent) !important;
    border-radius: 15px !important;
  }

  /* For pc-Grid specifically on mobile, use the correct grid gradient */
  [data-page="Who We Are"] .pc-Grid .pc-Image:after,
  [data-page="Academies"] .pc-Grid .pc-Image:after {
    display: block !important;
    content: "" !important;
    position: absolute !important;
    z-index: 1 !important;
    top: 0 !important;
    width: 100% !important;
    height: 50% !important;
    background: linear-gradient(to bottom, rgba(247, 247, 247, 0.95), transparent) !important;
    border-radius: 15px !important;
  }
}



/* Mobile overlay positioning for text content */
@media (max-width: 767px) {
  [data-page="Who We Are"] .pc-Content,
  [data-page="Academies"] .pc-Content {
    grid-row: 1/3 !important;
    grid-column: 1/2 !important;
    display: flex;
    flex-direction: column;
    align-items: center !important;
    text-align: center !important;
    padding: 25px !important;
    z-index: 1 !important;
  }
}


/* Mobile adjustments for tighter image container */
@media (max-width: 949px) {
    #target {
        min-height: auto;
        max-height: none;
        margin-bottom: 0;
        height: auto;
    }
}

.targetDiv {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile 425-519px specific styling for "Building a better bet365" title */
@media (min-width: 425px) and (max-width: 519px) {
  .mobile-425-line1,
  .mobile-425-line2 {
    display: block;
  }

  .mobile-425-line1 {
    white-space: nowrap;
  }
}

/* For all other screen sizes, keep normal inline behavior */
@media (min-width: 520px) {
  .mobile-425-line1,
  .mobile-425-line2 {
    display: inline;
  }

  .mobile-425-line1::after {
    content: " ";
  }
}

