@media (min-width: 1440px) and (max-width: 1919px) {
  .content-width {
    margin-left: auto;
    margin-right: auto;
    width: calc(77.08% + 162px);
  }

  .header input {
    font-size: 20px;
  }

  .left {
    width: calc(72.53% - 198.3px);
  }

  .left img {
    width: calc(17.28% + 15.59px);
  }

  .inputDiv {
    width: calc(63.97% + 7.412px);
  }

  .nav-buttons {
    margin-left: calc(20.27% - 203.6px);
    width: calc(6.133% + 420.4px);
  }

  .nav-button p {
    font-size: 20px;
  }

  .blue-nav {
    padding-left: calc(55.63% - 656px);
    padding-right: calc(45% - 503px);
  }
}

@media (min-width: 1200px) and (max-width: 1919px) {
  .footer {
    background: #63ccf544;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    padding: 30px;
  }

  .top {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: center;
  }

  .top img {
    width: 80px;
  }

  .top span {
    color: #000000;
    letter-spacing: 0px;
  }

  .mailIconDiv {
    width: auto;
  }

  .middle {
    color: #5b6273;
    margin: auto;
    text-align: center;
    width: 60%;
  }
}

@media (min-width: 1200px) and (max-width: 1439px) {
  .content-width {
    margin-left: auto;
    margin-right: auto;
    width: calc(97.5% - 132px);
  }

  .header input {
    font-size: 1.2vw;
  }

  .left {
    width: calc(23.28% + 424.2px);
  }

  .left img {
    width: calc(5.556% + 100px);
  }

  .inputDiv {
    width: calc(109.1% - 317.5px);
  }

  .nav-buttons {
    gap: 4.815%;
    margin-left: calc(-2.203% + 80.89px);
    margin-right: calc(28.63% -217.5px);
    width: calc(78.41% - 499.7px);
  }

  .nav-button {
    display: flex;
    gap: 4.66%;
    justify-content: space-between;
    min-width: 92.047px;
  }

  .nav-button p {
    font-size: 1.45vw;
  }

  .banner {
    width: 100%;
  }

  .blue-nav {
    padding-left: calc(26.67% - 239px);
    padding-right: calc(27.08% - 245px);
  }

  .book-heading span {
    font-size: 24px;
  }
  .book-author span {
    font-size: 24px;
  }
  .book-paragraph span {
    font-size: 18px;
  }
  .spec-heading {
    font-size: 17px !important;
  }
  .spec-spec {
    font-size: 17px !important;
  }
  .spec-image {
    width: 55px;
    height: 55px;
  }
  .book-picture {
    width: 35% !important;
  }
  .book-text-div {
    width: calc(65%-60px) !important;
  }
}

@media (min-width: 1024px) and (max-width: 1439px) {
  .footer {
    gap: 20px;
    padding: 30px;
  }

  .bottom {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 20px;
  }

  .bottom input {
    padding: 6px 30px 6px 30px;
    width: 400px;
  }

  .bottom input,
  .bottom input::placeholder {
    font-size: 18px;
  }

  .bottom button {
    border-radius: 19px;
    font: normal normal 600 20px / 33px Segoe UI;
    gap: 15px;
    padding: 5px 30px 5px 30px;
    width: fit-content;
  }

  .bell {
    width: 17px;
  }
}

@media (min-width: 1024px) and (max-width: 1600px) {
  .menuIcon {
    display: none;
  }

  .searchMobileIcon {
    display: none;
  }

  .cat-banner-mobile {
    display: none;
  }

  .post-banner-mobile {
    display: none;
  }

  .affiliate-banner-mobile {
    display: none;
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .content-width {
    margin-left: auto;
    margin-right: auto;
    width: calc(76.14% + 124px);
  }

  .header input {
    font-size: 14px;
  }

  .left {
    width: calc(82.35% - 189.6px);
  }

  .left img {
    width: calc(13.39% + 49px);
  }

  .inputDiv {
    width: calc(69.64% - 55.82px);
  }

  .nav-buttons {
    margin-left: calc(15.44% - 102.4px);
    width: calc(2.206% + 292.1px);
  }

  .nav-button {
    display: flex;
  }

  .nav-button p {
    font-size: 18px;
  }

  .banner {
    width: 100%;
  }

  .blue-nav {
    padding-left: calc(11.93% - 62px);
    padding-right: calc(10.8% - 50px);
  }

  .book-text-div {
    gap: 5px !important;
  }
  .book-heading span {
    font-size: 22px;
  }
  .book-author span {
    font-size: 22px;
  }
  .book-paragraph span {
    font-size: 16px;
  }
  .spec-heading {
    font-size: 15px !important;
  }
  .spec-spec {
    font-size: 15px !important;
  }
  .book-picture {
    width: 40% !important;
  }
  .book-text-div {
    width: calc(60%-60px) !important;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .footer {
    gap: 20px;
    padding: 30px;
  }

  .bottom {
    flex-direction: column;
    gap: 30px;
    justify-content: center;
    margin-bottom: 20px;
  }

  .bottom input {
    margin: auto;
    padding: 6px 30px 6px 30px;
    width: 464px;
  }

  .bottom input,
  .bottom input::placeholder {
    font-size: 18px;
  }

  .bottom button {
    border-radius: 19px;
    font: normal normal 600 20px / 33px Segoe UI;
    gap: 15px;
    margin: auto;
    padding: 5px 30px 5px 30px;
    width: fit-content;
  }

  .bell {
    width: 17px;
  }
}

@media (min-width: 601px) and (max-width: 1919px) {
  .top span {
    font: normal normal bold 20px/33px Segoe UI;
  }

  .middle {
    font: normal normal normal 16px/27px Segoe UI;
  }
}

@media (max-width: 1199px) {
  .ellipse {
    background: #63ccf544;
    border-top-left-radius: 10vw;
    border-top-right-radius: 10vw;
    display: block;
    height: 10vw;
    margin: auto;
    width: 21.67%;
  }

  .top {
    flex-direction: column;
  }

  .top img {
    width: 40%;
  }

  .top span {
    text-align: center;
  }

  .footer {
    padding-top: 30px;
    position: relative;
  }

  .mailIconDiv {
    border-radius: 50%;
    display: flex;
    height: 10vw;
    justify-content: center;
    padding: 20px;
    position: absolute;
    top: 0;
    transform: translateY(-70%);
    width: 21.67vw;
  }
}

@media (max-width: 1023px) {
  .banner img {
    aspect-ratio: 1/0.53;
  }
  
  .sectionImage img {
    min-width: 1000px;
  }

  .sectionImage svg {
    width: 70px;
  }

  .sectionImage .section-image-blur {
    height: calc(100% - 28px);
  }

  .book-info {
    gap: 3rem;
  }

  .menuIcon {
    display: initial;
  }

  .searchMobileIcon {
    display: initial;
  }

  .header img {
    width: 200px;
  }

  .header {
    padding: 10px 30px 10px 30px;
    width: calc(100% - 60px);

    display: flex;
    align-items: center;
    justify-content: space-between;

    .left {
      width: min-content;
    }
  }

  .nav-buttons {
    display: none;
  }
  .inputDiv {
    display: none;
  }

  .blue-nav {
    display: none;
  }

  .banner {
    width: 100%;
  }

  .cat-banner {
    display: none;
  }

  .cat-banner-mobile {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    margin-top: 30px;
  }

  .cat-banner-mobile img {
    width: 90%;
  }

  .post-banner-mobile {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    margin-top: 30px;
  }

  .post-banner-mobile img {
    width: 90%;
  }

  .post-banner {
    display: none;
  }

  .affiliate-banner-mobile {
    display: flex;
    justify-content: center;
    margin: 10% auto 10% auto;
  }

  .affiliate-banner-mobile img {
    width: 85.42%;
  }

  .affiliate-banner {
    display: none;
  }

  .categories {
    gap: 15px;
    grid-template-columns: repeat(2, 1fr); /* 4 columns with equal width */
    grid-template-rows: repeat(
      4,
      auto
    ); /* 2 rows with height determined by content */
    width: 90%;
  }

  .section {
    width: 90%;
  }

  .show-on-desktop {
    display: none !important;
  }

  /* -------- booklist --------- */
  .book-buttons button{
    width: 50%;
  }

  .book-buttons a {
    width: 50%;
  }

  .book-buttons > a > button {
    width: 100%;
  }
}

@media(min-width: 1024px) {
  .show-on-phone {
    display: none !important;
  }
}

@media (max-width: 800px) {
  .section p {
    font-size: 24px;
  }
}

@media (max-width: 700px) {
  .section p {
    font-size: 20px;
  }

  .book-info {
    gap: 1.5rem;
  }

  .spec-heading {
    font-size: 14px;
  }
  .spec-spec {
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .book-buttons a, .book-buttons button {
    width: 100%;
  }
}

@media (max-width: 639px) {
  .footer {
    gap: 3.125cqw;
    padding: 4.69cqw;
  }

  .bottom {
    flex-direction: column;
    gap: 4.69cqw;
    justify-content: center;
    margin-bottom: 3.125cqw;
  }

  .bottom input {
    margin: auto;
    padding: 0.94cqw 4.69cqw 0.94cqw 4.69cqw;
    width: 80%;
  }

  .bottom input,
  .bottom input::placeholder {
    font-size: 2.8cqw;
  }

  .bottom button {
    border-radius: 2.97cqw;
    font: normal normal 600 3.125cqw / 5.16cqw Segoe UI;
    gap: 2.34cqw;
    margin: auto;
    padding: 0.78cqw 4.69cqw 0.78cqw 4.69cqw;
    width: fit-content;
  }

  .bell {
    width: 2.66cqw;
  }

}

@media (max-width: 600px) {
  .top span {
    font-size: 16px;
    line-height: 20px;
    text-align: center;
  }

  .sectionImage img {
    min-width: 800px;
  }

  .middle {
    font-size: 14px;
    line-height: 16px;
    width: 90%;
  }

  .section {
    margin-bottom: 30px;
  }

  .section p {
    font-size: 18px;
    line-height: 1.1;
    white-space: wrap;
  }

  .divider {
    margin: 68px auto;
  }

  /* ======== booklist =========== */
  .book-buttons button {
    line-height: calc(16px * 1.5) !important;
    font-size: 18px !important;
  }

  .book-buttons {
    gap: 1rem;
  }

  .book-author, .book-heading, .book-paragraph {
    line-height: calc(16px * 1.3) !important;
  }

  .book-heading span {
    font-size: 18px;
  }
  .book-author span {
    font-size: 18px;
  }
  .book-paragraph {
    margin-top: 1rem;
    span {
      font-size: 16px;
    }
  }


}

@media (max-width: 410px) {
  .header {
    padding: 1rem;
    width: auto;
  }

  .header img {
    width: 35vw;
  }

  .menuIcon svg, .searchMobileIcon svg {
    width: 10vw;
  }

  .spec-heading {
    line-height: calc(14px * 1.3);
    font-size: 14px;
  }
  .spec-spec {
    line-height: calc(14px * 1.3);
    font-size: 14px;
  }

  .spec-image {
    display: none;
  }
  
  .sectionImage img {
    min-width: 700px;
  }

  .section p {
    font-size: 16px;
  }
}
