/* Базовая сетка и типографика под тему MH Magazine,
   адаптированная под Bahsegel и нужные цвета. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  background: #f7f7f7;
  color: #111827;
}

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

a {
  color: #f9a01d;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #b86f07;
}

.mh-container,
.mh-container-inner {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
}

.mh-container-outer {
  margin: 25px auto;
  box-shadow: 0 0 10px rgba(50, 50, 50, 0.17);
  background: #ffffff;
}

.mh-wrapper {
  padding: 25px;
  background: #ffffff;
}

.mh-main {
  overflow: hidden;
}

.mh-content {
  width: 65.83%;
  float: left;
}

.mh-sidebar {
  width: 31.66%;
  float: right;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

h1,
h2,
h3,
h4,
h6 {
  font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: #000000;
  margin: 0 0 15px;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.125rem;
}

h6 {
  font-size: 0.875rem;
}

p {
  margin: 0 0 15px;
}

ul {
  margin: 0 0 20px 20px;
  padding: 0;
}

li {
  margin-bottom: 5px;
}

/* Хедер и логотип */

.mh-header {
  background: #ffffff;
}

.mh-site-logo {
  padding: 20px 20px 20px 60px;
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
}

.mh-site-logo-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mh-site-logo-img {
  width: 160px;
  height: 60px;
  border-radius: 0;
  overflow: hidden;
  flex-shrink: 0;
}

.mh-header-text {
  text-transform: uppercase;
}

.mh-header-title {
  font-size: 2rem;
  line-height: 1;
  color: #07badb;
}

.mh-header-tagline {
  display: inline-block;
  font-size: 0.875rem;
  line-height: 1;
  color: #4b5563;
  padding-top: 8px;
  margin-top: 8px;
  border-top: 1px solid #e5e5e5;
}

/* Burger menu (mobile) */

.mh-menu-toggle-checkbox {
  display: none;
}

.mh-burger {
  display: none;
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 20px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 20;
}

.mh-burger span {
  display: block;
  height: 3px;
  border-radius: 999px;
  background: #111827;
}

/* Главное меню */

.mh-main-nav-wrap {
  background: #07badb;
}

.mh-navigation {
  text-transform: uppercase;
}

.mh-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mh-navigation li {
  float: left;
  position: relative;
  font-size: 0.875rem;
  font-weight: 700;
}

.mh-main-nav li a {
  display: block;
  padding: 10px 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.mh-main-nav li:first-child a {
  border-left: none;
}

.mh-main-nav li:hover {
  background: #f9a01d;
}

.mh-main-nav li:hover > a {
  color: #ffffff;
}

/* Кнопки (меню и контент) */

.wp-block-button__link,
input[type="submit"],
.header-api-ads button {
  cursor: pointer;
  display: inline-block;
  border-radius: 9999px;
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  background: linear-gradient(135deg, #07badb, #1095b5);
  color: #ffffff;
}

.wp-block-button__link:hover,
input[type="submit"]:hover,
.header-api-ads button:hover {
  background: linear-gradient(135deg, #f9a01d, #b86f07);
  color: #ffffff;
}

.header-api-ads a {
  margin: 0 4px;
  display: inline-block;
}

/* Таблица офферов в контенте */

.mtm_table .table_line {
  display: grid;
  grid-template-columns: 30% 65%;
  justify-content: center;
  align-items: center;
  background: #111827;
  border-radius: 5px;
  margin-bottom: 4px;
  text-align: center;
  padding: 4px 0;
  box-sizing: border-box;
}

.mtm_table .table_line .image a {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mtm_table .table_line img {
  width: 96px;
  height: auto;
  border-radius: 5px;
  border: 1px solid #07badb;
}

.mtm_table .table_line .bonus a {
  display: block;
  color: #ffffff;
  background: linear-gradient(135deg, #07badb, #1095b5);
  border-radius: 5px;
  padding: 6px 8px;
  font-size: 0.8rem;
}

.mtm_table .table_line .bonus a:hover {
  background: linear-gradient(135deg, #f9a01d, #b86f07);
}

/* Сайдбар */

.mh-widget {
  margin-bottom: 25px;
}

.mh-widget-title {
  font-size: 0.875rem;
  text-transform: uppercase;
  margin-bottom: 15px;
  border-bottom: 3px solid #07badb;
  padding-bottom: 4px;
}

.mh-widget-title-inner {
  font-weight: 700;
}

.search-form .search-field {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #e5e5e5;
}

.search-form .search-submit {
  display: none;
}

.widget_recent_entries ul,
.widget_categories ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget_recent_entries li,
.widget_categories li {
  padding: 5px 0;
  border-bottom: 1px dotted #ebebeb;
}

/* Футер */

.mh-footer {
  font-size: 0.8125rem;
  color: #ffffff;
  padding: 25px 25px 0;
  background: #1095b5;
}

.mh-footer a {
  color: #ffffff;
}

.mh-footer a:hover {
  color: #f9a01d;
}

.mh-author-bio-widget {
  padding: 20px;
  border-bottom: 3px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.1);
  border-radius: 6px;
}

.mh-author-bio-title {
  font-size: 1rem;
  color: #ffffff;
  border-bottom: 3px solid #ffffff;
  padding-bottom: 5px;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.mh-author-bio-avatar {
  width: 220px;
  height: 90px;
  margin: 0 auto;
  border-radius: 0;
  overflow: hidden;
  border: none;
}

.mh-author-bio-text {
  font-size: 0.875rem;
  color: #ffffff;
  margin-top: 15px;
}

.mh-copyright-wrap {
  padding: 10px 25px;
  border-top: 3px solid rgba(255, 255, 255, 0.3);
  background: #1095b5;
}

.mh-copyright {
  font-size: 0.75rem;
  color: #e5e7eb;
}

.mh-copyright a {
  color: #ffffff;
}

.mh-back-to-top {
  display: none;
}

/* Адаптив */

@media screen and (max-width: 900px) {
  .mh-container-outer {
    margin: 0 auto;
  }

  .mh-wrapper {
    padding: 20px;
  }

  .mh-footer {
    padding: 20px 20px 0;
  }
}

@media screen and (max-width: 900px) {
  .mh-content,
  .mh-sidebar {
    float: none;
    width: 100%;
  }

  .mh-sidebar {
    margin-top: 20px;
  }

  .mh-burger {
    display: flex;
  }

  .mh-main-nav-wrap {
    display: none;
  }

  #mh-menu-toggle:checked ~ .mh-main-nav-wrap {
    display: block;
  }

  .mh-main-nav .menu {
    display: block;
  }

  .mh-main-nav li {
    float: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .mh-main-nav li a {
    padding: 10px 16px;
  }

  .header-api-ads a {
    display: block;
    margin: 6px auto;
  }
}


