/* Devthon reading theme
   Same logo, blue links, and page structure. Quieter type, spacing, and cards.
*/

body,
body.custom-background,
body.scheme_default {
  background: #f4f2ee !important;
  background-image: none !important;
  color: #242424;
  font-family: "Barlow", "Roboto", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.page_wrap,
.body_wrap {
  background: transparent;
}

a {
  color: #077fd3;
}

a:hover {
  color: #0a4e86;
}

/* Header and navigation */
.top_panel,
.top_panel .elementor-section,
.top_panel .elementor-top-section,
.top_panel .sc_layouts_row,
.menu_mobile,
.menu_mobile_inner {
  background-color: #ffffff !important;
  background-image: none !important;
  box-shadow: none !important;
}

.top_panel {
  border-bottom: 1px solid #e6e3dc;
}

.top_panel .sc_layouts_menu_nav > li > a,
.menu_mobile_nav > li > a,
.menu_mobile .menu_mobile_nav_area a {
  font-family: "Barlow", "Roboto", sans-serif !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em;
  color: #243044 !important;
}

.top_panel .sc_layouts_menu_nav > li {
  margin: 0 0.15rem;
}

.top_panel .sc_layouts_menu_nav > li > a {
  padding: 0.35em 0.7em;
}

.top_panel .sc_layouts_menu_nav > li > a:hover,
.top_panel .sc_layouts_menu_nav > li.current-menu-item > a,
.top_panel .sc_layouts_menu_nav > li.current_page_item > a,
.menu_mobile_nav > li > a:hover,
.menu_mobile_nav > li.current-menu-item > a {
  color: #077fd3 !important;
}

.top_panel .sc_layouts_logo img {
  max-height: 46px;
  width: auto;
}

/* Page rhythm */
.page_content_wrap {
  padding-top: 2.75rem;
  padding-bottom: 4.5rem;
}

.elementor-widget-heading .elementor-heading-title,
.archive .page_title,
.single .elementor-widget-heading .elementor-heading-title,
.page .elementor-widget-heading .elementor-heading-title {
  font-family: "PT Serif", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.elementor-widget-text-editor,
.single .elementor-widget-text-editor,
.page .elementor-widget-text-editor {
  font-family: "Barlow", "Roboto", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #2a2a2a;
}

.elementor-widget-text-editor p {
  margin-bottom: 1.1em;
}

.elementor-widget-text-editor a {
  color: #077fd3;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.elementor-widget-text-editor a:hover {
  color: #0a4e86;
}

/* Compact cards used by the home, prototypes, and experiments lists */
.devthon_listing_grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 24px;
  margin: 0 !important;
}

.devthon_listing_grid > [class*="trx_addons_column-"] {
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  float: none !important;
}

.devthon_listing_grid .sc_blogger_item,
.sc_blogger.sc_blogger_default:not(.scheme_dark) .sc_blogger_item,
.archive .posts_container .post_layout_excerpt,
.single .posts_container .post_item {
  background: #fff;
  border: 1px solid #e6e3dc;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: none;
  width: 100%;
  height: 100%;
  margin: 0 !important;
}

.devthon_listing_grid .sc_blogger_item_featured,
.archive .posts_container .post_featured,
.single .posts_container .post_featured {
  display: block;
  width: 100%;
  overflow: hidden;
  margin: 0;
  border-radius: 0;
}

.devthon_listing_grid .sc_blogger_item_featured img,
.sc_blogger.sc_blogger_default:not(.scheme_dark) .sc_blogger_item_featured img,
.archive .posts_container .post_featured img,
.single .posts_container .post_featured img {
  width: 100% !important;
  height: 168px !important;
  max-height: 168px;
  object-fit: cover;
  display: block;
}

.devthon_listing_grid .sc_blogger_item:hover .sc_blogger_item_featured img,
.archive .posts_container .post_item:hover .post_featured img {
  transform: none;
}

.devthon_listing_grid .sc_blogger_item_content,
.sc_blogger.sc_blogger_default:not(.scheme_dark) .trx_addons_column-1_2 .sc_blogger_item_content,
.sc_blogger.sc_blogger_default:not(.scheme_dark) .trx_addons_column-1_4 .sc_blogger_item_content {
  padding: 14px 16px 2px !important;
}

.devthon_listing_grid .sc_blogger_item_title,
.devthon_listing_grid .sc_blogger_item_title a,
.archive .posts_container .post_title,
.archive .posts_container .post_title a,
.single .posts_container .post_title,
.single .posts_container .post_title a {
  font-family: "PT Serif", Georgia, serif;
  font-size: 1.12rem !important;
  line-height: 1.35 !important;
  font-weight: 600;
  color: #1a1a1a !important;
  text-decoration: none;
}

.devthon_listing_grid .sc_blogger_item_title a:hover,
.archive .posts_container .post_title a:hover,
.single .posts_container .post_title a:hover {
  color: #077fd3 !important;
}

.devthon_listing_grid .post_meta,
.archive .posts_container .post_meta,
.single .posts_container .post_meta {
  margin-top: 0.45rem !important;
  color: #6f6c66;
  font-family: "Barlow", "Roboto", sans-serif;
  font-size: 0.84rem;
}

.devthon_listing_grid .sc_blogger_item_button,
.archive .posts_container .more-link,
.sc_blogger.sc_blogger_default:not(.scheme_dark) .sc_blogger_item_button {
  padding: 2px 16px 14px;
  margin: 0;
}

.devthon_listing_grid .sc_button_simple,
.archive .posts_container .more-link,
.sc_blogger.sc_blogger_default:not(.scheme_dark) .sc_button_simple {
  color: #077fd3 !important;
  background: transparent !important;
  font-family: "Barlow", "Roboto", sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  box-shadow: none !important;
}

.archive .posts_container .post_header,
.archive .posts_container .post_content,
.single .posts_container .post_header,
.single .posts_container .post_content {
  padding: 14px 16px 0;
}

.archive .posts_container .post_content_inner,
.archive .posts_container .post_content p {
  color: #4a4844;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Category, tag, and author listings */
.archive .posts_container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 24px;
}

.archive .posts_container .post_layout_excerpt + .post_layout_excerpt {
  margin-top: 0;
  padding-top: 0;
}

.navigation.pagination {
  margin-top: 8px;
}

.navigation.pagination .page-numbers {
  font-family: "Barlow", "Roboto", sans-serif;
  border-radius: 8px;
  border-color: #e6e3dc;
  color: #243044;
}

.navigation.pagination .page-numbers.current,
.navigation.pagination a.page-numbers:hover {
  background: #077fd3;
  border-color: #077fd3;
  color: #fff;
}

/* Footer keeps the white mark on a quiet dark bar */
.footer_wrap,
.footer_wrap .elementor-section,
.footer_wrap .elementor-column-wrap,
.footer_wrap.scheme_dark {
  background-color: #1b2330 !important;
  background-image: none !important;
  color: #e7e4de !important;
}

.footer_wrap,
.footer_wrap .elementor-section {
  padding-top: 8px;
  padding-bottom: 8px;
}

.footer_wrap .elementor-text-editor,
.footer_wrap .elementor-text-editor p,
.footer_wrap a {
  color: #e7e4de !important;
  font-family: "Barlow", "Roboto", sans-serif;
}

.footer_wrap a:hover {
  color: #ffffff !important;
}

@media (max-width: 720px) {
  .devthon_listing_grid,
  .archive .posts_container {
    grid-template-columns: 1fr;
  }

  .page_content_wrap {
    padding-top: 1.5rem;
    padding-bottom: 3rem;
  }
}
