/* Νέο καθαρό UI */
:root {
  --color-primary: #1f7a8c;
  --color-secondary: #e2f3f5;
  --color-text: #1f2933;
  --color-muted: #52616b;
  --color-bg: #f7f9fb;
  --color-white: #ffffff;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
}

body.page_body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  background: #f3f3f3;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page_main {
  flex: 1;
}

.container {
  width: 95%;
  max-width: 1180px;
  margin: 0 auto;
}

.flex_between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site_header {
  background: var(--color-white);
  border-bottom: 1px solid #e5e8ec;
  z-index: 60;
}

.header_bar {
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header_bar_mobile {
  display: none;
}

.header_bar_desktop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 5px 0 5px 0;
}

.logo_link {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 3px 0;
}

.logo_img {
  height: calc(100% - 6px);
  width: auto;
}

.search_form {
  position: relative;
  flex: 1;
  max-width: 680px;
}

.search_input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d9dde3;
  border-radius: 4px;
  background: #f8fafc;
}

.search_results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e5e8ec;
  border-radius: 0;
  box-shadow: var(--shadow);
  max-height: 360px;
  overflow-y: auto;
  display: none;
  z-index: 80;
}

.search_results.open {
  display: block;
}

.result_item {
  display: flex;
  gap: 12px;
  padding: 10px;
  cursor: pointer;
  align-items: center;
}

.result_item:hover {
  background: #f3f6f9;
}

.result_thumb {
  width: 64px;
  height: 48px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  flex-shrink: 0;
}

.result_text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.result_title {
  font-weight: 600;
  color: var(--color-text);
}

.result_extra {
  font-size: 13px;
  color: var(--color-muted);
}

.result_loading {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}

.main_nav {
  background: var(--color-primary);
  padding: 0;
  margin: 0;
}

.menu_list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
}

.menu_item {
  position: relative;
  margin: 0;
  padding: 0;
}

.menu_link {
  color: #fff;
  padding: 12px 14px;
  display: block;
  font-weight: 600;
}

.menu_link:hover {
  text-decoration: none;
}

.submenu_list {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #e5e8ec;
  border-top: none;
  border-radius: 0;
  box-shadow: var(--shadow);
  list-style: none;
  margin: 0;
  padding: 0 0 6px 0;
  min-width: 200px;
  width: max-content;
  max-width: 320px;
  display: none;
}


.submenu_item:hover {
  background-color: #dbeaed;
}

.submenu_link {
  display: block;
  padding: 8px 12px;
  color: var(--color-text);
  white-space: normal;
  word-wrap: break-word;
}

.submenu_link:hover {
  text-decoration: none;
}

@media (min-width: 721px) {
  .menu_item:hover .submenu_list {
    display: block;
  }
}

.nav_container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  position: relative;
  padding: 0;
}

.nav_toggle {
  display: none;
  background: #0f6b7a;
  border: 1px solid #0a5560;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
}

.nav_toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

.nav_toggle span+span {
  margin-top: 4px;
}

.search_toggle {
  display: none;
  background: #0f6b7a;
  border: 1px solid #0a5560;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon_search {
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 50%;
  position: relative;
}

.icon_search::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  background: #fff;
  right: -6px;
  bottom: -2px;
  transform: rotate(45deg);
  border-radius: 2px;
}

.search_mobile_panel {
  display: none;
  padding: 0 0 10px;
}

.page_main {
  padding: 0px 0 40px;
  background: #f3f3f3;
}

.section_block {
  margin-bottom: 30px;
}

.section_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section_title {
  margin: 0 0 0 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text);
}

.section_title_sm {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
}

.section_link {
  font-weight: 600;
  font-size: 14px;
}

.hero_section {
  margin-bottom: 30px;
  overflow: visible;
}

.hero_grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 14px;
}

.hero_card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 240px;
  box-shadow: var(--shadow);
  background: #000;
}

.hero_card_main {
  grid-row: span 2;
  min-height: 500px;
}

.hero_media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero_content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.75) 100%);
  color: #fff;
}

.hero_title,
.hero_title_sm {
  margin: 6px 0 0 0;
}

.hero_title a,
.hero_title_sm a {
  color: #fff;
}

.hero_title {
  font-size: 26px;
  line-height: 1.3;
}

.hero_title_sm {
  font-size: 18px;
}

.hero_summary {
  margin-top: 8px;
  color: #e7edf3;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  width: fit-content;
}

.pill_green {
  background: #6acb6f;
  color: #0b3611;
}

.pill_gray {
  background: #e8edf3;
  color: #4b5563;
}

.cards_grid {
  display: grid;
  gap: 16px;
}

.cards_grid_three {
  grid-template-columns: repeat(3, 1fr);
}

.cards_grid_four {
  grid-template-columns: repeat(4, 1fr);
}

/* Medical topics: 3 columns on screens < 1150px */
@media (max-width: 1150px) {
  .cards_grid_four {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Medical topics: 2 columns on screens < 800px */
@media (max-width: 800px) {
  .cards_grid_four {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Medical topics: smaller font size on screens < 600px */
@media (max-width: 600px) {
  .cards_grid_four .card_title {
    font-size: 14px;
  }
}

/* Medical topics: 1 column on screens < 400px */
@media (max-width: 400px) {
  .cards_grid_four {
    grid-template-columns: 1fr;
  }
}

.card_item {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.card_item_compact {
  min-height: 100%;
}

.card_media {
  width: 100%;
  padding-top: 60%;
  background-size: cover;
  background-position: center;
  display: block;
}

.card_body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card_meta {
  font-size: 13px;
  color: var(--color-muted);
}

.card_title {
  margin: 0;
  font-size: 18px;
}

.card_title_sm {
  margin: 0;
  font-size: 16px;
}

.card_excerpt {
  margin: 0;
  color: var(--color-muted);
}

.card_link {
  font-weight: 700;
  font-size: 14px;
}

.section_split {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 30px;
}

.section_column {
  background: #ffffff !important;
}

.section_column_right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section_block_inner {
  background: #ffffff !important;
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: none;
}

.section_column.section_block_inner {
  background: #ffffff !important;
}

.section_split .section_column:first-child .section_block_inner {
  background: #ffffff !important;
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: none;
}

.section_block_inner_primary {
  background: #ffffff !important;
  border: none;
  box-shadow: none;
  padding: 18px;
}

.section_block_inner_recent {
  background: #ffffff !important;
  border: none;
  box-shadow: none;
  padding: 20px;
}

.section_split .section_column:first-child .cards_list {
  background: #ffffff !important;
  border: none;
  border-radius: var(--radius);
  box-shadow: none;
  padding: 18px;
}

.cards_list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.list_row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  align-items: center;
  /* Default center align for small lists */
}

.list_media {
  width: 110px;
  height: 90px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  display: block;
}

/* Specific styling for large list items (Main Section) */
.list_row_large {
  grid-template-columns: 220px 1fr;
  gap: 20px;
  align-items: start;
}

.list_row_large .list_media {
  width: 220px;
  height: 150px;
}

.list_row_large .list_title {
  font-size: 20px;
}

.list_content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.list_title {
  margin: 0;
  font-size: 16px;
  /* Reset to smaller default */
  color: var(--color-text);
  line-height: 1.3;
}

.list_meta {
  font-size: 14px;
  color: var(--color-muted);
}

.list_excerpt {
  margin: 0;
  color: var(--color-muted);
  font-size: 15px;
}

.article_page {
  background: #fff;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.article_header {
  margin-bottom: 14px;
}

.article_meta_row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.article_date {
  color: var(--color-muted);
  font-size: 14px;
}

.article_title {
  margin: 8px 0 0;
  font-size: 28px;
  line-height: 1.3;
}

.article_cover {
  width: 100%;
  padding-top: 50%;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  margin: 14px 0;
}

.content_body {
  line-height: 1.7;
  color: #2c313a;
}

.content_body img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.content_body p {
  margin: 0 0 14px 0;
}

.article_side_layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  margin-top: 20px;
}

.article_main {}

.article_side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pager {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.pager_link {
  padding: 8px 12px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 8px;
}

.pager_page {
  font-weight: 700;
  color: var(--color-text);
}

.site_footer {
  background: var(--color-primary);
  color: #e8f7fb;
  padding: 16px 0;
}

.footer_inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer_brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.footer_logo {
  height: 32px;
}

.footer_links {
  display: flex;
  gap: 12px;
}

.footer_links a {
  color: #e8f7fb;
  font-weight: 600;
}

.center_block {
  text-align: center;
}

.button_primary {
  display: inline-block;
  padding: 10px 16px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 8px;
}

.banner_slot {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0px !important;
}

.hero_banner_mobile {
  display: none;

  border: none;
  background: transparent;
}

.banner_placeholder {
  font-weight: 700;
  color: #7a8b98;
}

.section_block_split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.section_main {}

.section_side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (min-width: 960px) {
  .section_block_split {
    grid-template-columns: 1fr 300px;
    align-items: start;
  }

  .section_side {
    width: 300px;
  }
}

.search_layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search_main {
  flex: 1;
}

.search_side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (min-width: 960px) {
  .search_layout {
    flex-direction: row;
    align-items: flex-start;
  }

  .search_side {
    width: 300px;
    flex-shrink: 0;
  }
}

@media (max-width: 1024px) {
  .hero_grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero_card_main {
    grid-column: span 2;
  }

  .section_split,
  .article_side_layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .header_bar_desktop {
    display: none;
  }

  .header_bar_mobile {
    display: flex;
    padding: 10px 0;
    gap: 10px;
  }


  .main_nav {
    padding: 0;
    position: relative;
    background: transparent;
  }

  .nav_toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .menu_list {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: 72px;
    background: #0f6b7a;
    border-radius: 0 0 12px 12px;
    padding: 12px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
    grid-template-columns: 1fr;
    gap: 8px;
    z-index: 60;
  }

  .menu_list.open {
    display: grid;
  }

  .menu_link {
    padding: 12px 10px;
    font-size: 15px;
    text-align: left;
    border-radius: 6px;
    background: #0f6b7a;
    border: 1px solid #0a5560;
  }

  .menu_link:hover {
    background: #0a5560;
  }

  .search_toggle {
    display: inline-flex;
  }

  .search_mobile_panel {
    display: none;
  }

  .search_mobile_panel.open {
    display: block;
  }

  .search_form {
    width: 100%;
  }

  .search_input {
    width: 100%;
  }

  .submenu_list {
    position: relative;
    top: auto;
    left: auto;
    border: none;
    box-shadow: none;
    padding: 0;
    min-width: 0;
  }

  .submenu_list {
    display: none;
  }

  .header_bar {
    padding: 10px 0;
    gap: 10px;
  }

  .search_input {
    padding: 10px 12px;
    font-size: 14px;
  }

  .page_main {
    padding: 16px 0 24px;
    background: #f3f3f3;
  }

  .hero_section {
    overflow: visible;
  }

  .hero_grid {
    grid-template-columns: 1fr;
    display: grid;
    overflow: visible;
  }

  .hero_card_main {
    grid-row: span 1;
    grid-column: span 1;
    min-height: 300px;
  }

  .hero_card {
    display: block;
    visibility: visible;
  }

  .hero_card_secondary {
    display: block;
    visibility: visible;
  }

  /* Show mobile banner after 3rd article */
  .hero_banner_mobile {
    display: block;
    width: 100%;
    padding: 14px 0;
  }

  /* Hide sidebar banner container on mobile */
  .banner_slot_desktop {
    display: none !important;
    min-height: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  /* Ensure banner is visible in mobile position */
  #mobile-banner-placeholder {
    display: block !important;
    grid-column: 1 / -1;
    /* Span all columns in grid */
    width: 100%;
    margin: 14px 0;
    padding: 0 !important;
    text-align: center;
  }

  #mobile-banner-placeholder #div-gpt-ad-1765722149472-0 {
    margin: 0 auto !important;
    display: block !important;
    width: 300px !important;
    max-width: 100%;
  }

  /* Center all banners on mobile */
  .banner_slot {
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    text-align: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
  }

  .banner_slot>div,
  .banner_slot [id^="div-gpt-ad"] {
    margin: 0 auto !important;
    display: block !important;
    width: 300px !important;
    max-width: 100% !important;
    background: transparent !important;
    border: none !important;
  }

  /* Remove border and background from mobile banner placeholder */
  #mobile-banner-placeholder,
  #article-mobile-banner-placeholder {
    background: transparent !important;
    border: none !important;
  }

  .hero_banner_mobile {
    background: transparent !important;
    border: none !important;
  }

  /* Show article mobile banner placeholder at top of page */
  #article-mobile-banner-placeholder {
    display: block !important;
    width: 100%;
    margin: 0 0 30px 0 !important;
    /* Increased bottom margin */
    padding: 0 !important;
    text-align: center;
  }

  /* Remove top margin from article layout on mobile */
  .article_side_layout {
    margin-top: 0 !important;
  }

  /* Remove any top margin/padding from article_main on mobile */
  .article_main {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  #article-mobile-banner-placeholder #div-gpt-ad-1765722149472-0 {
    margin: 0 auto !important;
    display: block !important;
    width: 300px !important;
    max-width: 100%;
  }

  /* Footer: Reduce font weight on mobile */
  .footer_links a {
    font-weight: 400;
    font-size: 14px;
  }

  /* Hide first sidebar banner on mobile in article pages */
  .article_side_layout .article_side .banner_slot:first-of-type {
    display: none !important;
  }

  /* Center banner in article pages on mobile */
  .article_side_layout .banner_slot {
    width: 100%;
    margin: 0 auto;
    padding: 0 !important;
    text-align: center;
  }

  .article_side_layout .banner_slot>div {
    margin: 0 auto !important;
    display: block !important;
  }

  /* Hide "Πρόσφατα δημοφιλή" and "Ιατρικά θέματα" in sidebar on mobile */
  .article_side_layout .article_sidebar_popular,
  .article_side_layout .article_sidebar_medical {
    display: none !important;
  }

  .card_media {
    padding-top: 56%;
  }

  .card_body {
    padding: 12px;
  }

  .card_item {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
  }

  .cards_grid_three {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  }

  .section_header {
    flex-wrap: wrap;
  }

  .section_block {
    margin-bottom: 20px;
  }

  .section_block_inner {
    padding: 12px;
  }

  .section_split {
    gap: 14px;
  }

  .section_split .section_column {
    margin-bottom: 12px;
  }

  .cards_list {
    gap: 10px;
  }

  .list_row {
    grid-template-columns: 80px 1fr;
    gap: 10px;
  }

  .list_media {
    width: 80px;
    height: 76px;
  }

  .list_content {
    gap: 4px;
  }

  .list_title {
    font-size: 14px;
  }

  .list_row_large .list_title {
    font-size: 14px;
  }

  /* Convert list_row_large to list_row format on mobile */
  .list_row_large {
    grid-template-columns: 80px 1fr;
    gap: 10px;
    align-items: center;
  }

  .list_row_large .list_media {
    width: 80px;
    height: 76px;
  }

  .list_row_large .list_content {
    gap: 4px;
  }

  /* Hide excerpt on mobile for list_row_large */
  .list_row_large .list_excerpt {
    display: none;
  }

  /* Move date to top on mobile (like latest articles) */
  .list_row_large .list_meta {
    order: -1;
    margin-bottom: 0;
  }

  .section_title {
    font-size: 20px;
    margin: 16px 0 12px 0;
  }

  .section_title_sm {
    font-size: 20px;
    margin: 16px 0 12px 0;
  }
}

/* Category Page Specifics */
.category_hero {
  margin-bottom: 30px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}

.category_hero .card_media {
  height: 350px;
  display: block;
  background-size: cover;
  background-position: center;
}

.category_hero .card_body {
  padding: 24px;
}

.category_hero .card_title {
  font-size: 26px;
  margin: 10px 0;
  line-height: 1.3;
}

.category_hero .card_excerpt {
  font-size: 16px;
  margin-bottom: 16px;
}

.cards_grid_two {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .cards_grid_two {
    grid-template-columns: 1fr;
  }

  .category_hero .card_media {
    height: 250px;
  }

  .category_hero .card_title {
    font-size: 22px;
  }
}

.category_header_block {
  background: #ffffff;
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  text-align: center;
  border-bottom: 1px solid #eee;
  border: 1px solid #79abad;
}


.category_page_title {
  margin: 0;
  color: #000;
  font-size: 32px;
  font-weight: 400;
  /* Normal weight */
  letter-spacing: -0.5px;
}

@media (max-width: 768px) {
  .category_header_block {
    padding: 30px 20px;
    border: 1px solid #79abad;
  }

  .category_page_title {
    font-size: 28px;
  }
}

/* Pagination Styles */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page_link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 6px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #4a5568;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.page_link:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--color-primary);
}

.page_link.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.page_dots {
  display: flex;
  align-items: end;
  justify-content: center;
  height: 36px;
  color: #94a3b8;
  padding: 0 4px;
}

/* Submenu Toggles - Added for Mobile Navigation Fix */
.submenu_toggle {
  display: none;
}

.toggle_icon {
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  margin-top: -4px;
  transition: transform 0.2s;
}

.menu_item.open .toggle_icon {
  transform: rotate(225deg);
  margin-top: 4px;
}

@media (max-width: 720px) {

  /* Override menu item to be a wrapper */
  .menu_item {
    display: flex;
    flex-wrap: wrap;
    background: #0f6b7a;
    border: 1px solid #0a5560;
    border-radius: 6px;
    align-items: center;
    position: relative;
    overflow: hidden;
  }

  /* Reset link styles since wrapper handles the box */
  .menu_link {
    flex: 1;
    border: none;
    background: transparent !important;
    /* Ensure it overrides previous rules */
    border-radius: 0;
    margin: 0;
    width: auto;
    /* Allow flex to control width */
  }

  .menu_link:hover {
    background: transparent;
  }

  .submenu_toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    /* Approximate height of link */
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-left: 1px solid rgba(0, 0, 0, 0.2);
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
  }

  /* Ensure submenu list takes full width and looks integrated */
  .submenu_list {
    flex-basis: 100%;
    width: 100%;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    background: #0a5560;
    /* Darker shade for contrast */
    padding: 0;
    display: none;
    /* Hidden by default */
    position: static;
    /* Override absolute */
    box-shadow: none;
    border-radius: 0;
  }

  .menu_item.open .submenu_list {
    display: block;
  }

  .submenu_link {
    color: #fff;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .submenu_link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    text-decoration: none;
  }

  .submenu_item:hover {
    background-color: transparent;
  }
}

@media (max-width: 959px) {

  .mobile_hidden,
  .recently_popular_sidebar {
    display: none !important;
  }
}