:root {
  --primary-text-color: #000;
  --secondary-text-color: #101010;
  --accent-text-color-blue: #49a6d9;
  --accent-text-color-grey: #746f6f;
  --dark-grey: #404242;
  --border-grey: #cec5c5;
  --cell-bckgd: #f9f9f9;
  --grey-line: #486284;
  --green-bkgnd: #dcfad1;
  --blue-bkgnd: #edf0fe;
  --yellow: #faf8d1;
  --burger-line: #d7e0e4;
}

.container {
  width: 360px;
  padding: 0 0;
  margin-left: auto;
  margin-right: auto;
  /* outline: 1px solid red; */
}

@media (min-width: 601px) and (max-width: 1023.99px) {
  .container {
    width: 600px;
  }
}
@media (min-width: 1024px) {
  .container {
    width: 1000px;
  }
}
@media (min-width: 1440px) {
  .container {
    width: 1200px;
  }
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  font-style: normal;
  color: var(--accent-text-color-blue);
}

ul,
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}
input {
  outline: none;
}

body {
  font-family: Mukta, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.03em;
  color: var(--primary-text-color);
  line-height: 1.2;
  background-color: var(--white-text-color);
}

/******header********/
.menu_item.dropdown #dropdown_menu,
.mobile_dropMenu #dropdown_mobileMenu {
  display: none;
  list-style: none;
  background: linear-gradient(to top, #fefefe 0%, #fefefe 85%, #e5e5e5 100%);
  border: 1px solid #ccc;
  position: absolute;
  left: -120px;
  top: 126%;
  width: 140px;
  height: 135px;
  padding: 20px;
  z-index: 100;
  box-shadow: 4.2px 5.2px 6.7px 0 rgba(0, 0, 0, 0.25);
  border-radius: 3px 3px 3px 3px;
  font-size: 14px;
  font-weight: 400;
}
.menu_item.dropdown:hover #dropdown_menu,
.menu_item.dropdown:focus-within #dropdown_menu,
.mobile_dropMenu:hover #dropdown_mobileMenu,
.mobile_dropMenu:focus-within #dropdown_mobileMenu {
  display: block;
}

.menu_item.dropdown:hover img,
.mobile_dropMenu:hover img {
  transform: scale(1.3);
  transition: transform 0.2s ease;
}
@media (max-width: 1023.99px) {
  .mobile_header {
    display: flex;
    justify-content: space-between;
    padding: 30px 0 24px;
    align-items: center;
  }

  .desktop_header {
    display: none;
  }
  .burger {
    cursor: pointer;
    z-index: 10;
  }

  .mobile_menu_modal {
    display: none;
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
      180.28deg,
      #e5e5e5 0.24%,
      #fefefe 7.12%,
      #fefefe 101.63%
    );
    z-index: 1000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
  }

  #burger-toggle:checked ~ .mobile_menu_modal {
    display: flex;
    justify-content: flex-start;
  }
  .mobile_logo {
    position: relative;
    width: 100%;
    height: 60px;
    padding-top: 10px;
  }
  .mobile_logoLink {
    text-decoration: none;
    color: white;
    font-size: 18px;
    justify-content: center;
    align-items: center;
  }

  .close_btn {
    position: absolute;
    right: 8px;
    top: 18px;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-text-color);
    cursor: pointer;
  }

  .mobile_menu {
    list-style: none;
    padding: 0;
    margin: 40px 0 0 0;
    text-align: left;
  }

  .mobile_menu_item {
    margin: 15px 0;
  }
  .burger_line {
    background-color: var(--burger-line);
    height: 1px;
    width: 100%;
    border: none;
    margin-bottom: 8px;
    margin-top: 8px;
  }

  .mobile_menu_item a {
    color: var(--primary-text-color);
    text-decoration: none;
    font-size: 22px;
    display: inline-block;
  }
  .mobile_dropMenu {
    position: relative;
    display: inline-block;
  }
}

@media (min-width: 1024px) {
  .mobile_header {
    display: none;
  }
  .desktop_header {
    display: flex;
    justify-content: space-between;
    padding: 42px 0 22px;
  }
}
.mobile_logoLink span {
  font-size: 25px;
}

.logo_link,
.mobile_logoLink {
  display: flex;
  flex-direction: row;
  align-items: center;
  color: var(--primary-text-color);
}
.logo {
  margin-right: 11px;
  display: block;
}
.logo_link span {
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  letter-spacing: 0;
  text-transform: none;
}
.menu {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.menu_item {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}
.menu_item a {
  color: var(--primary-text-color);
  font-size: 15px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}
.menu_item:not(:last-child) {
  margin-right: 26px;
}
.menu_item.dropdown {
  position: relative;
}
.menu_item img {
  display: block;
}

.menu_item:not(:last-child) a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 0;
  background-color: var(--primary-text-color);
  transition: width 0.3s ease;
}
.menu_item:not(:last-child) a:hover::after,
.menu_item:not(:last-child) a:active::after,
.menu_item:not(:last-child) a:focus::after {
  width: 100%;
}
/****dropdown menu****/

.menu_item.dropdown #dropdown_menu {
  height: 155px;
}

.sub_menu a {
  color: var(--primary-text-color);
}
.sub_menu .nav_item a {
  position: relative;
  text-decoration: none;
  padding-bottom: 2px;
  transition: all 0.3s ease;
}
.nav_item:not(:last-child) {
  margin-bottom: 20px;
}

.sub_menu .nav_item a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  transition: width 0.3s ease;
}

.sub_menu .nav_item:nth-child(1) a::after {
  background-color: #eca933;
}

.sub_menu .nav_item:nth-child(2) a::after {
  background-color: #566fda;
}

.sub_menu .nav_item:nth-child(3) a::after {
  background-color: #2bdc2b;
}

.sub_menu .nav_item a:hover::after,
.sub_menu .nav_item a:focus::after {
  width: 100%;
}

/******yellow-section*******/

.hero h1 {
  color: var(--primary-text-color);
  font-size: 20px;
  font-style: normal;
  text-align: left;
  font-family: "Mukta", sans-serif;
  font-weight: 500;
  line-height: normal;
  text-transform: none;
}
.hero {
  height: 762px;
  padding-top: 30px;
  padding-bottom: 30px;
}
.yellow_section {
  background-image: url(../images/mobile_yellowBg.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
.green_section {
  background-image: url(../images/mobile_greenBg.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
.blue_section {
  background-image: url(../images/mobile_blueBg.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

@media (min-width: 601px) {
  .hero h1 {
    font-size: 22px;
  }
  .hero {
    height: 500px;
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .yellow_section {
    background-image: url(../images/banner.jpg);
    background-size: cover;
  }
  .green_section {
    background-image: url(../images/green.jpg);
    background-size: cover;
  }
  .blue_section {
    background-image: url(../images/blue.jpg);
    background-size: cover;
  }
}
@media (min-width: 1024px) {
  .hero {
    height: 446px;
    padding-top: 44px;
    padding-bottom: 40px;
  }
}

/*******search section*********/
.search_container {
  position: relative;
  max-width: 773px;
  margin-top: 8px;
}

.search_container input[type="search"] {
  width: 100%;
  padding: 4px 5px;
  border: 1px solid var(--border-grey);
  border-radius: 4px;
  font-size: 16px;
  height: 32px;
  color: var(--accent-text-color-grey);
  font-size: 15px;
  font-style: normal;
  text-align: left;
  font-weight: 300;
  line-height: normal;
  letter-spacing: 0;
  text-transform: none;
}

.search_button {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  width: 23px;
  height: 23px;
}
/*******block section*********/

.block.yellow,
.block_graph.yellow {
  background-color: var(--yellow);
}
.block.green,
.block_graph.green {
  background-color: var(--green-bkgnd);
}
.block.blue,
.block_graph.blue {
  background-color: var(--blue-bkgnd);
}
.block p {
  color: var(--primary-text-color);
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0;
  text-transform: none;
}
.icon_wrapper {
  margin-right: 10px;
}
.block_span {
  color: var(--accent-text-color-grey);
  font-weight: 300;
}

.block_graph p {
  color: var(--primary-text-color);
  font-size: 15px;
  font-style: normal;
  margin-top: 0;
  text-align: left;
  font-family: "Mukta", sans-serif;
  font-weight: 400;
  line-height: normal;
  margin-bottom: 0;
  letter-spacing: 0;
  text-transform: none;
}
.graph_image {
  height: 100%;
}
.block {
  box-shadow: 2px 2px 5px 0 rgba(0, 0, 0, 0.25);
  border-radius: 6px;
}

@media (max-width: 600px) {
  .block_container {
    display: flex;
    flex-direction: column;
    margin-top: 48px;
  }
  .block {
    width: 360px;
    height: 90px;
    padding: 38px 30px 39px;
    display: flex;
    flex-direction: row;
    align-items: center;
  }
  .block_graph {
    width: 360px;
    height: 150px;
    border-radius: 6px;
    padding: 30px;
  }
  .block.yellow,
  .block.green,
  .block.blue {
    margin-bottom: 18px;
  }
}

@media (min-width: 601px) and (max-width: 1023.99px) {
  .block_container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
  }

  .block_holder {
    flex: 1 1 48%;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .block {
    height: 90px;
    padding: 30px 10px 30px;
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  .block_graph {
    flex: 1 1 100%;
    padding: 20px;
    background-color: #ffeb3b;
    height: 150px;
  }
}
@media (min-width: 1024px) {
  .block_container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 18px;
    margin-top: 48px;
  }

  .block {
    width: 300px;
    height: 110px;
    padding: 38px 30px 39px;
    display: flex;
    flex-direction: row;
    align-items: center;
  }
  .block:not(:last-child) {
    margin-bottom: 18px;
  }
  .block_graph {
    width: 383px;
    height: 238px;
    border-radius: 6px;
    padding: 30px;
  }
}
@media (min-width: 1440px) {
  .block {
    width: 393px;
  }
}

/*****table section***********/

.latest_blocks {
  padding: 24px 30px 13px;
  border: 2px solid var(--border-grey);
  box-shadow: 1px 1px 6px 0 rgba(0, 0, 0, 0.1);
  border-radius: 6px;
}
.latest_blocks:not(:last-child) {
  margin-bottom: 30px;
}
.table_wrapper {
  display: flex;
  flex-direction: column;
}
.tables_box h2 {
  color: var(--primary-text-color);
  font-size: 15px;
  font-style: normal;
  text-align: left;
  font-weight: 500;
  line-height: normal;
  letter-spacing: 0;
  text-transform: none;
}
.blue_text {
  color: var(--accent-text-color-blue);
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0;
  text-transform: none;
}

.black_text {
  color: var(--primary-text-color);
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  letter-spacing: 0;
  text-transform: none;
}
.gray_text {
  color: var(--accent-text-color-grey);
  font-size: 12px;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
  letter-spacing: 0;
  text-transform: none;
}
.text_cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.button_div {
  width: 95px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid var(--accent-text-color-grey);
  box-shadow: 1px 1px 6px 0 rgba(0, 0, 0, 0.1);
  color: var(--secondary-text-color);
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0;
  text-transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 600.99px) {
  .tables_box {
    margin-top: 30px;
    margin-bottom: 30px;
  }
  .desktop_table {
    display: none;
  }
  .table_wrapper {
    display: flex;
    flex-direction: column;
  }
  .mobile_row_wrapper {
    display: blok;
    margin-top: 20px;
    margin-bottom: 16px;
    max-width: 90%;
  }

  .mobile_row {
    display: flex;
    flex-direction: column;
    /* gap: 10px; */
  }

  .second_column {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
  .upper_line,
  .bottom_line {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: flex-end;
  }
  .bottom_row {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-end;
    gap: 10px;
  }
  .button_div {
    height: 20px;
    width: 82px;
  }
  /* .third_column {
    flex: 1;
  } */

  .fourth_column {
    flex-shrink: 0;
  }

  .fourth_column .button_div {
    margin: 0;
  }
}

@media (min-width: 601px) {
  .mobile_row_wrapper {
    display: none;
  }
  .desktop_table {
    display: block;
  }
  .tables_box {
    margin: 30px 0 40px;
  }

  .latest_blocks table {
    width: 523px;
    margin: 20px auto;
    border-collapse: separate;
    border-spacing: 0 10px;
    margin-bottom: 14px;
  }
  .latest_blocks td {
    border: 1px solid transparent;
    height: 56px;
    text-align: center;
    padding: 0 12px;
  }

  .latest_blocks td:nth-child(1) {
    width: 56px;
    background-color: var(--cell-bckgd);
  }

  .latest_blocks td:nth-child(2) {
    width: 100px;
  }

  .latest_blocks td:nth-child(3) {
    width: 270px;
  }

  td:nth-child(4) {
    width: 97px;
  }
}
@media (min-width: 1440px) {
  .table_wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  .latest_blocks,
  .latest_blocks:not(:last-child) {
    margin-bottom: 0;
  }
}

.button-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

#viewAllBtn {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  color: var(--dark-grey);
  font-size: 13px;
  font-style: normal;
  text-align: left;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0;
  text-transform: uppercase;
}
.text-button .arrow {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

/******footer********/
.footer_section {
  background-color: #faf8d1;
}
.footer_green {
  background-color: var(--green-bkgnd);
}
.footer_blue {
  background-color: var(--blue-bkgnd);
}
.footer {
  padding: 53px 0 23px 5px;
}

.logo_section {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 16px;
}

.social_group {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  align-content: flex-end;
  flex-wrap: nowrap;
}
.social_list:not(:last-child) {
  margin-right: 18px;
}
.social_group {
  margin-bottom: 24px;
}

.icon_holder {
  width: 20px;
  height: 20px;
  background-color: transparent;
  border-radius: 50%;
  background-color: var(--primary-text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.icon_holder svg {
  width: 95%;
  height: 95%;
  transition: transform 0.3s ease, fill 0.3s ease;
}

.social_link:focus .icon_holder,
.social_link:hover .icon_holder,
.social_link:active .icon_holder {
  background-color: var(--primary-text-color);
  transform: scale(1.2);
}

.grid-container {
  display: grid;
  grid-template-columns: 50% repeat(3, 1fr);
}
.box.right {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 20px;
}
.box.right p {
  color: var(--secondary-text-color);
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0;
  text-transform: none;
}
.line {
  background-color: var(--border-grey);
  height: 1px;
  width: 100%;
  border: none;
  margin-bottom: 12px;
}
.grid_bottom-container {
  display: grid;
  grid-template-columns: 67% repeat(2, 1fr);
}
.footer_link,
.footer_text {
  color: var(--secondary-text-color);
  font-size: 16px;
  font-style: normal;
  text-align: left;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0;
  text-transform: none;
}
@media (max-width: 1023.99px) {
  .grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 24px;
  }

  .box.left {
    grid-column: 1 / -1;
  }

  .box.left .socials {
    display: grid;
    grid-template-columns: 50% 1fr;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .box.right {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .box.right {
    grid-column: span 1;
  }
  .footer_text {
    display: none;
  }
  .grid_bottom-container {
    display: grid;
    grid-template-columns: 52% repeat(1, 1fr);
  }
  .line {
    margin-bottom: 16px;
  }
  .footer_link,
  .footer_text {
    font-size: 15px;
  }
  .box.right p {
    font-size: 14px;
  }
}
