* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 62.5% of 16px = 10px */
  color: #002f47;
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
}

.header-container-top-block {
  display: flex;
  max-width: 1040px;
  margin: auto;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem 2.4rem 2rem;
  margin-top: 2.4rem;
}

.header-container-top-block p {
  font-size: 1.2rem;
}

.header-container-bottom-block span {
  color: orangered;
  font-weight: 700;
}

.header-container-bottom-block {
  display: flex;
  max-width: 1040px;
  margin: auto;
  justify-content: space-between;
  padding: 1rem 2rem;
}

.header-container-bottom-block p {
  font-size: 1.2rem;
}

.header-container-bottom-block a {
  text-decoration: none;
  color: black;
}

.header-container-bottom-block a:hover {
  text-decoration: none;
  color: orangered;
}

.menu {
  display: flex;
  gap: 4rem;
}

.menu-item {
  list-style: none;
  /* border: 1px solid rgb(201, 3, 135); */
}

.menu-links {
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 700;
  color: #002f47;
  opacity: 0.8;
  transition: background-color 0.3s, color 0.3s;
}

.menu-links:hover {
  opacity: 1;
  color: orangered;
}

.hero-section {
  background-color: #f5f7f2;
  padding: 4rem 0;
  margin-bottom: 1rem;
}

h1 {
  font-size: 4rem;
  line-height: 1.3;
  letter-spacing: 0.2px;
}

h2 {
  font-size: 3rem;
}

h3 {
  font-size: 2rem;

  margin-bottom: 1rem;
}

ul {
  padding-left: 2rem;
}

.main-text-li {
  font-size: 1.4rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.hero-content-container {
  max-width: 1100px;
  display: flex;
  margin: auto;
  padding: 0 5rem;
  gap: 2rem;
}

.hero-content-container-text-block {
  flex: 1;
}

.publication-date {
  font-size: 1.4rem;
  margin-top: 2.5rem;
}

.hero-content-container-img-block {
  max-width: 500px;
  flex: 1;
}

.hero-content-container-img-block img {
  width: 100%;
  height: auto;
}

.text-block {
  max-width: 1040px;
  margin: auto;
  padding: 10px 5px;
}

.contextual-text-block {
  padding: 1rem 5rem;
}

.main-text {
  font-size: 1.6rem;
  line-height: 2;
  margin-bottom: 2rem;
}

.ieguvumi-container {
  margin-top: 5rem;
  margin-bottom: 5rem;
  background-color: #f5f7f2;
  padding: 2.5rem 5rem;
}

.ieguvumi-title {
  margin-bottom: 3rem;
}

.ieguvumi-container li,
.deratization-steps li {
  font-size: 1.8rem;
}

.deratization-steps {
  padding-left: 2.5rem;
  margin-bottom: 4rem;
}

.main-text a {
  font-size: 1.6rem;
  text-decoration: underline;
  color: #0097e2;
}

.related-articles-section {
  max-width: 1040px;
  justify-self: center;
  margin: 10rem 5rem;
  justify-items: center;
}

.related-articles-container {
  display: flex;
  flex-wrap: wrap;
  gap: 5rem;
  margin-top: 2.5rem;
}

.related-article {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.related-article a {
  display: inline-block;
  font-size: 1.6rem;
  text-align: center;
}

.related-article img:hover {
  opacity: 90%;
}

.related-article a:hover {
  font-weight: 600;
}

.all-related-articles {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: #002f47;
  color: #f5f7f2;
  font-size: 1.4rem;
  margin-top: 6rem;
  margin-left: 2rem;
  margin-right: 2rem;
}

.all-related-articles:hover {
  background-color: #f5f7f2;
  color: #002f47;
  border: 1px solid #002f47;
  padding: 0.9rem 1.9rem;
}

.bottom-cta-container {
  display: flex;
  max-width: 800px;
  margin: auto;
  padding: 2.4rem;
  gap: 4rem;
  margin-bottom: 10rem;
}

.choose-us-p {
  background-color: #002f47;
  color: #f5f7f2;
  font-size: 4rem;
  font-weight: 700;
  text-align: center;
  padding: 6rem 2.4rem;
  margin-bottom: 4rem;
}
.cta-text {
  font-size: 2.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.cta-phone {
  display: inline-block;
  background-color: #289c45;
  padding: 1rem 3rem;
  min-width: fit-content;
}

.cta-phone:hover {
  border: 1px #289c45 solid;
  background-color: transparent;
  padding: 0.9rem 2.9rem;
}

.cta-phone svg {
  width: 3rem;
  height: auto;
}

.cta-phone a {
  font-size: 4rem;
  font-weight: 700;
  color: #f5f7f2;
}

.cta-phone a:hover {
  font-size: 4rem;
  font-weight: 700;
  color: #002f47;
}

.footer {
  display: flex;
  max-width: 800px;
  margin: auto;
  padding: 2.4rem;
  justify-content: space-between;
  margin-bottom: 2rem;
  border-bottom: 1px solid #002f47;
}

.footer-logo {
  font-size: 2rem;
  font-weight: 700;
  color: orangered;
}

.shortlinks-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.menu-item-footer {
  font-size: 1.2rem;
  text-decoration: none;
  color: #002f47;
  transition: color 0.3s, color 0.3s;
}

.menu-item-footer:hover {
  color: orangered;
}

.footer-contacts-container {
  display: flex;
  gap: 1rem;
}

.footer-contacts-icons svg {
  display: inline;
  height: 1.6rem;
  width: 1.6rem;
}

.footer-contacts-icons {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.footer-contacts-texts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
}

.footer-contacts-texts p,
a {
  font-size: 1.2rem;
  text-decoration: none;
  color: inherit;
}

.copyright {
  text-align: center;
  margin-bottom: 5rem;
}

/* CHAT GPT mobile menu code starts here */

/* Mobile Header Base (Hidden on large screens) */
.mobile-header {
  display: none;
  background-color: #ffffff;
  padding: 1.2rem 2rem;
  border-bottom: 1px solid #ddd;
}

.mobile-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-logo {
  height: 40px;
}

.hamburger {
  font-size: 3rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* Hidden menu by default */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.mobile-menu.open {
  max-height: 500px; /* enough for 6 links */
  transition: max-height 0.4s ease-in;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.mobile-menu li {
  padding: 1rem 0;
  border-top: 1px solid #ccc;
}

.mobile-menu a {
  text-decoration: none;
  color: #002f47;
  font-size: 1.6rem;
  font-weight: 600;
}

/* Show mobile header under 768px */
@media (max-width: 767px) {
  .mobile-header {
    display: block;
  }

  .header-container,
  .header-container-top-block,
  .header-container-bottom-block,
  .navigation {
    display: none !important;
  }
}

/* Chat GPT mobile menu code ENDS here */

/* Extra small devices (phones, less than 576px) */
@media (max-width: 549px) {
  .hero-content-container {
    flex-direction: column-reverse;
    padding: 0 2rem;
  }

  h1 {
    font-size: 2.5rem;
    letter-spacing: 0.2px;
  }

  .hero-content-container {
    padding: 0 2rem;
  }

  .content-block {
    padding: 0 2.5rem;
  }
  .contextual-text-block {
    padding: 2.5rem 1rem;
  }

  /* CTA Block start ↓ */
  .bottom-cta-container {
    flex-direction: column;
    gap: 0.5rem;
  }

  .choose-us-p {
    font-size: 2.4rem;
  }
  .cta-text {
    font-size: 1.8rem;
  }

  .cta-phone svg {
    height: 2.8rem;
    width: 2.8rem;
    margin-right: 1rem;
  }

  .cta-phone {
    text-align: center;
  }

  .cta-phone a {
    font-size: 2.9rem;
  }

  .footer {
    flex-direction: column;
    gap: 4rem;
    align-items: center;
  }

  .footer-logo-container {
    justify-items: center;
  }

  .shortlinks-footer {
    align-items: center;
    gap: 2rem;
  }

  .footer-contacts-icons {
    gap: 1.5rem;
  }
}

@media (min-width: 550px) and (max-width: 767px) {
  h1 {
    font-size: 4rem;
    text-align: center;
  }

  .hero-content-container {
    flex-direction: column-reverse;
    justify-content: center; /* centers horizontally */
    align-items: center; /* centers vertically */
  }

  li {
    font-size: 1.6rem;
  }

  .cta-text {
    font-size: 1.8rem;
  }

  .cta-phone svg {
    height: 2.8rem;
    width: 2.8rem;
    margin-right: 1rem;
  }

  .cta-phone a {
    font-size: 2.9rem;
  }

  .content-block {
    padding: 0 2.5rem;
  }

  .choose-us-p {
    font-size: 2.4rem;
  }

  .bottom-cta-container {
    justify-content: center;
  }

  .footer {
    flex-direction: column;
    gap: 4rem;
    align-items: center;
  }

  .footer-logo-container {
    justify-items: center;
  }

  .shortlinks-footer {
    align-items: center;
    gap: 2rem;
  }

  .footer-contacts-icons {
    gap: 1.5rem;
  }
}

@media (min-width: 767px) and (max-width: 991px) {
  .hero-content-container {
    padding: 0 2rem;
  }

  li {
    font-size: 1.6rem;
  }

  h1 {
    font-size: 4rem;
  }

  .cta-text {
    font-size: 2rem;
  }

  .cta-phone {
    font-size: 3rem;
    display: block;
    text-align: center;
  }

  .cta-phone svg {
    height: 2.8rem;
    width: 2.8rem;
    text-align: center;
  }

  .bottom-cta-container {
    justify-content: center;
  }

  .header-container,
  .header-container-top-block {
    flex-wrap: wrap;
    justify-content: center;
  }

  .header-container-bottom-block {
    justify-content: space-around;
  }
}

/* Large devices (992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .header-container-top-block img {
    width: 20%;
  }

  li {
    font-size: 1.6rem;
  }

  .cta-text {
    font-size: 2rem;
  }

  .cta-phone {
    font-size: 3rem;
    display: block;
    text-align: center;
  }

  .cta-phone svg {
    height: 2.8rem;
    width: 2.8rem;
    text-align: center;
  }
}
