.hero {
  margin-top: 10px;
  background-color: #4960e5;
  color: white;
  padding-left: 50px;
  padding-right: 0px !important;
  padding-bottom: 0px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  height: 960px;
}

.hero-text {
  text-align: left;
  max-width: 880px;
}

.hero .title {
  font-weight: 700;
  margin-bottom: 8px;
  font-family: 'Hagrid-Extrabold', sans-serif;
  line-height: 0.9;
  font-size: 165px;
}

.hero .subtitle {
  font-size: 43px;
  letter-spacing: 10px;
  font-weight: 300;
  font-family: 'Hagrid-Regular', sans-serif;
}

.hero-image-container {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
  position: relative;
}

.hero-image-circle {
  width: 950px;
  height: 950px;
  background-color: #ffd872;
  bottom: -706px;
  right: -95px;
  z-index: 0;
  position: absolute;
}

.hero-image-container img {
  max-width: 970px;
  width: 100%;
  height: auto;
  position: absolute;
  z-index: 1;
  bottom: -621px;
}

/* --- Responsive Breakpoints --- */


/* ≤1850px */
@media (max-width: 1850px) {
  .hero .title { font-size: 150px; }
  .hero .subtitle { font-size: 30px; }
  .hero-image-circle { width: 830px; height: 830px; bottom: -670px; }
}

/* ≤1700px */
@media (max-width: 1700px) {
  .hero-image-container img {
    width: 880px;
    height: 774px;
    bottom: -558px;
  }
  .hero {
    height: 860px;
  }
}

/* ≤1640px (formerly 1500px) */
@media (max-width: 1640px) {
  .hero .title { font-size: 125px; }
  .hero .subtitle { font-size: 26px; }
  .hero-image-circle { width: 750px; height: 750px; bottom: -640px; }
}

/* ≤1500px */
@media (max-width: 1500px) {
  .hero-image-container img {
    width: 750px;
    height: 654px;
    bottom: -500px;
  }
  .hero {
    height: 780px;
  }
}

/* ≤1380px (formerly 1366px) */
@media (max-width: 1380px) {
  .hero .title { font-size: 110px; }
  .hero .subtitle { font-size: 22px; }
  .hero-image-circle { width: 670px; height: 670px; bottom: -600px; }
}

/* ≤1366px */
@media (max-width: 1366px) {
  .hero-image-container img {
    width: 720px;
    height: 634px;
    bottom: -456px;
  }
  .hero {
    height: 700px;
  }
}

/* ≤1280px */
@media (max-width: 1280px) {
  .hero .title { font-size: 95px; }
  .hero .subtitle { font-size: 20px; }
  .hero-image-circle { width: 600px; height: 600px; bottom: -485px; }
  .hero-image-container img {
    width: 600px;
    height: 512px;
    bottom: -404px;
  }
  .hero {
    height: 620px;
  }
}

@media (max-width: 1143px) {
  .hero .title { font-size: 75px; max-width: 50%;}
  .hero .subtitle { font-size: 15px; }
}

/* ≤992px */
@media (max-width: 1054px) {
  .hero {
    text-align: center;
    height: 540px;
    padding: 60px 20px;
  }
  .hero .title {
    font-size: 95px;
    max-width: 95%;
  }
  .hero .subtitle {
    font-size: 20px;
    letter-spacing: 6px;
  }
  .hero-image-circle {
    width: 450px;
    height: 450px;
    bottom: -360px;
    right: -50%;
  }
  .hero-image-container img {
    width: 520px;
    height: 458px;
    bottom: -347px;
    right: -21px;
  }
}

@media (max-width: 959px) {
  
  .hero-image-circle {
    bottom: -371px;
    right: -30px;
  }
  
  .hero-image-container img {
    width: 487px;
    height: 429px;
    bottom: -348px;
    right: -21px;
  }
}

@media (max-width: 939px) {
  
  .hero-image-circle {
    bottom: -226px;
    right: -43px;
  }
  
  .hero-image-container img {
    bottom: -177px;
    right: -21px;
  }
}

@media (max-width: 848px) {
  .hero {
    flex-direction: column;
    height: 654px;
  }
  
  .hero-image-container{
    width: 100%;
  }
  
  .hero-image-container img {
    width: 550px;
    height: 500px;
    bottom: -155px;
    left: auto;
    right: 0;
  }
  
  .hero-image-circle {
    bottom: -209px;
    right: -26px;
    width: 500px;
    height: 500px;
  }
}

/* ≤768px */
@media (max-width: 768px) {
  .hero {
    height: 550px;
  }
  .hero .title { font-size: 95px; }
  .hero .subtitle {
    font-size: 20px;
    letter-spacing: 4px;
  }
  .hero-image-circle {
    width: 370px;
    height: 370px;
    bottom: -160px;
    right: -1px;
  }
  .hero-image-container{
    width: 100%;
  }
  
  .hero-image-container img {
    width: 430px;
    height: 378px;
    bottom: -124px;
    left: auto;
    right: 0;
  }
}

@media (max-width: 584px) {
  .hero {
    height: 600px;
  }
}

@media (max-width: 560px) {
  
  .hero { padding-left: 16% }
  
  .hero .title { font-size: 70px; }
  
}


/* ≤500px */
@media (max-width: 500px) {
  .hero .subtitle {
    font-size: 20px;
    letter-spacing: 2px;
  }
  
  .hero {
      padding-left: 12%;
  }
}

@media (max-width: 451px) {
  .hero {
      padding-left: 8%;
  }
}

@media (max-width: 410px) {
  
  .hero {
    height: 506px;
  }
  
  .hero .title { font-size: 60px; }
  
  
  .hero-image-circle {
    right: -61px;
  }
  
  .hero-image-container img {
    width: 340px;
    height: 320px;
  }
}

@media (max-width: 381px) {
  .hero .title { font-size: 55px; }
  
  .hero .subtitle {
    font-size: 17px;
  }
}
  
