/*
Theme Name: Townly (Invest ASEAN)
Theme URI: https://themestate.com/docs/townly/
Template: townly
Author: Dannci &amp; Themnific &amp; ddx
Author URI: https://themnific.com/ &amp; https://ddxtransformation.com/
Description: Government &amp; Municipal WordPress Theme. Online Documentation: https://themestate.com/docs/townly/
Version: 1.1.2

*/

.dekoline:before,
.eleslideinside h2:before,
a.mainbutton.inv,
#menu-widget-menu > li > a:hover,
#menu-widget-menu > .current-menu-item > a {
  background-color: var(
    --dekoline-color,
    var(--e-global-color-primary, #0060a9)
  ) !important;
}

.menu-item-has-children > a::after {
  content: "\25bc";
}

.news-header.dekoline {
  margin-bottom: 13px !important;
  padding-bottom: 13px !important;
}

.sidebar_item {
  border: none !important;
  padding: none !important;
}

.site_wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: transparent !important;
  .wrapper.p-border {
    background: transparent;
    display: flex;
    flex-direction: column;
    flex: 1;
    .tmnf_page,
    [data-elementor-type="wp-page"],
    [data-elementor-type="wp-post"] {
      display: flex;
      flex-direction: column;
      flex: 1;
    }
  }
}

#core,
[data-elementor-type="wp-page"],
[data-elementor-type="wp-post"] {
  ul,
  ol {
    padding: revert;
  }
  p {
    margin: revert;
  }
  hr {
    border: 1px solid black !important;
  }
}

[data-widget_type="wp-widget-townly_news_list.default"],
[data-widget_type="wp-widget-townly_news_grid.default"] {
  .ribbon {
    background-color: var(--ia-color-2026-yellow-500, #fcd116);
    color: black !important;
  }
  .ribbon:hover {
    background-color: var(--ia-color-2026-yellow-400, #fff435);
  }
  .grid_post img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }
  .content {
    min-height: clamp(9.375rem, 19.0875rem + -11.73675vi, 14.0625rem);
  }
}

.grid_blogger {
  display: flex;
  flex-wrap: wrap;
}

.news-btn {
  transition: all 0.4s;
  padding: 12px 24px;
  background-color: var(--ia-color-2026-yellow-500, #fcd116);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  height: 44px;
  border-radius: 22px;
  text-transform: uppercase;
}

.news-btn:hover {
  background-color: var(--ia-color-2026-yellow-400, #fff435);
  text-decoration: none;
}

.cky-category-direct-switch input[type="checkbox"] {
  padding: 9.5px 5px;
}
.cky-notice-btn-wrapper .cky-btn,
.cky-category-direct-preview-btn-wrapper .cky-btn-preferences {
  border-radius: 0;
}

@media screen and (max-width: 1555px) {
  [data-widget_type="wp-widget-townly_news_list.default"],
  [data-widget_type="wp-widget-townly_news_grid.default"] {
    .grid_post img {
      max-height: 400px;
    }
  }
}

@media screen and (max-width: 684px) {
  [data-widget_type="wp-widget-townly_news_list.default"],
  [data-widget_type="wp-widget-townly_news_grid.default"] {
    .content {
      min-height: unset;
    }
  }
  #core,
  [data-elementor-type="wp-page"],
  [data-elementor-type="wp-post"] {
    ul,
    ol {
      padding: 0;
    }
  }
}
