/** 
 * CSS Style: Theme page, single, archive 
 * 
 * @since 1.0
 */
.theme-widget:not(:last-child) {
    margin-bottom: var(--theme-margin);
}

/** 
 * Front page
 * 
 * @since 1.0
 */
.theme-home .theme-block:not(:last-child) {
    margin-bottom: var( --theme-margin ); /*calc(var(--theme-margin) * 1.5)*/
}

.theme-home-main > .theme-grid-col:first-child {
    flex: 0 0 calc(100% - 370px);
    max-width: calc(100% - 370px);
}

.theme-home-main > .theme-grid-col:last-child {
    flex: 0 0 330px;
    max-width: 330px;
    margin-left: calc(var(--theme-margin) * 2);
}

.theme-home-main > .theme-grid-col:first-child > .theme-grid-row:first-child > .theme-grid-col:first-child {
    flex: 0 0 66.67%;
    max-width: 66.67%;
    margin-right: calc(var(--theme-margin));
}

.theme-home-main > .theme-grid-col:first-child > .theme-grid-row:first-child > .theme-grid-col:last-child .theme-grid-row {
    height: 100%;
    flex-direction: column;
    justify-content: space-between;
}

.theme-home-second > .theme-grid-col:first-child, .theme-home-second > .theme-grid-col:last-child {
    flex: 0 0 330px;
    max-width: 330px;
}

.theme-home-second > .theme-grid-col:nth-child(2) {
    flex: 0 0 calc( 100% - ( 660px + var(--theme-margin) * 4 ) );
    max-width: calc( 100% - ( 660px + var(--theme-margin) * 4 ) );
    margin-left: calc(var(--theme-margin) * 2);
    margin-right: calc(var(--theme-margin) * 2);
}

@media only screen and (max-width: 1200px) {

    .theme-home-main > .theme-grid-col:first-child {
        flex: 0 0 100%;
        max-width: 100%;   
    }

    .theme-home-main > .theme-grid-col:last-child {
        display: none;
    }

}

@media only screen and (max-width: 1100px) {
    .theme-home-main > .theme-grid-col:first-child > .theme-grid-row:first-child {
        flex-direction: column;
    }

    .theme-home-main > .theme-grid-col:first-child > .theme-grid-row:first-child > .theme-grid-col:first-child {
        flex: 0 0 100%;
        max-width: 100%;
        margin-right: 0;
    }

    .theme-home-second > .theme-grid-col:first-child, 
    .theme-home-second >.theme-grid-col:last-child,
    .theme-home-second > .theme-grid-col:nth-child(2) {
        flex: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

/** 
 * Theme widgets. Widget "All news"
 * 
 * @since 1.0
 */
.theme-all-posts .theme-grid-card {
    height: 550px;
    overflow-y: auto;
}

.theme-content .theme-all-posts .theme-grid-card {
    height: 700px;
}

.theme-all-posts .theme-card {
    padding-bottom: 15px;
    padding-right: var(--theme-padding);
}

.theme-card.theme-card-all-posts .theme-card-text {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: flex-start;
}

.theme-card.theme-card-all-posts .theme-card-title {
    font-size: 17px;
    font-weight: 400;
    margin-bottom: 0;
}

.theme-card.theme-card-all-posts .theme-card-info {
    color: var(--theme-color);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    margin-right: var(--theme-margin);
    margin-top: 0;;
}

/** 
 * Theme widgets. Widget "Popular Post"
 * 
 * @since 1.0
 */
.theme-popular-posts {
    margin: 0 auto;
    margin-bottom: var(--theme-margin);
    padding: var(--theme-padding);
    border-radius: 10px;
    border: 1px solid var(--theme-color);
    max-width: 400px;
}

@media only screen and (max-width: 480px) {
    .theme-popular-posts {
        max-width: 100%;
    }
}

.theme-popular-posts-items .theme-card {
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 15px;
}

.theme-popular-posts-items .theme-card:last-child {
    padding-bottom: 0;
}

.theme-page-sidebar .theme-popular-posts-items .theme-card {
    padding-left: 0;
    padding-right: 0;
}

.theme-card.theme-card-popular-posts .theme-card-text {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: flex-start;
}

.theme-card.theme-card-popular-posts .theme-counter {
    font-size: 16px;
    font-weight: bold;
    margin-right: 30px;
    color: var(--theme-color);
    padding-top: 4px;
}

.theme-card.theme-card-popular-posts a {
    font-size: 16px;
}

.theme-card.theme-card-popular-posts .theme-card-title {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 0;
}

/** 
 * Theme page category / widget title / layout title
 * 
 * @since 1.0
 */
.theme-grid-title {
    height: 40px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
}

.theme-widget-title {
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    color: #ffffff;
    background-color: var(--theme-color);
    padding: 3px 5px;
    text-transform: uppercase;
}

.theme-home-allnews .theme-widget-title, 
.theme-popular-posts .theme-widget-title, 
.widget_forminator_widget .theme-widget-title, .widget_democracy .theme-widget-title {
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
    color: #000000;
    background-color: transparent;
    padding: 0;
    text-transform: none;
}

.theme-home-allnews .theme-widget-title a {
    color: #000000;
}

.theme-widget-title:hover {
    opacity: 0.7;
}

.theme-widget-title a {
    color: #ffffff;
}

/*@media only screen and (max-width: 1100px) {
    .theme-block-today .theme-widget-title {
        text-transform: uppercase;
    }
}*/

/** 
 * Theme page / post title
 * 
 * @since 1.0
 */
.theme-page-title {
    font-size: 32px;
    font-weight: 500;
    line-height: 1.2;
    padding-bottom: var( --theme-padding );
}

.page .theme-page-title {
    text-align: center;
    margin: 0 auto;
    max-width: 800px;
}

.page-template-project .theme-page-title {
    text-align: left;
}

.archive .theme-page-title:first-letter {
  text-transform: uppercase;
}

@media only screen and (max-width: 1100px) {
  .theme-page-title {
    font-size: 30px;
  }
}

@media only screen and (max-width: 768px) {
  .theme-page-title {
    font-size: 28px;
  }
  
  /*.theme-page-category {
    font-size: 10px;
  }*/
  
}

/**
 * Theme sidebar 
 *
 */
.theme-sidebar {
    flex: 0 0 330px;
    max-width: 330px;
    margin-left: calc( var(--theme-margin) * 2 );
}

.theme-sidebar-sticky {
    position: sticky;
    top: 90px;
    margin-bottom: var( --theme-margin );
}

@media only screen and (max-width: 1100px) {
    .theme-sidebar {
        display: none;
    }
}

.theme-sidebar .theme-widget:not(:last-child) {
    margin-bottom: var( --theme-margin );
}

/** 
 * Theme pagination
 * 
 * @since 1.0
 */
.theme-paginate {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: center;
    margin: var( --theme-margin ) auto var(--theme-margin);
    font-size: 14px;
}

.theme-paginate ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.theme-paginate ul li {
    margin: 0 10px 10px 10px;
    font-weight: 500;
}

.theme-paginate ul li a.page-numbers, 
.theme-paginate ul li .current, 
.theme-paginate ul li .dots {
    display: block;
    padding: 8px 13px;
    border-radius: 5px;
}

.theme-paginate ul li a.page-numbers  {
    color: #ffffff;
    background-color: var(--theme-color );
}

.theme-paginate ul li .current {
    color: #ffffff;
    background-color: var( --theme-color-dark-grey );
}

.theme-paginate ul li a:hover {
    opacity: 0.8;
}

/** 
 * Theme label
 * 
 * @since 1.0.0
 */
.theme-label {
    font-weight: bold;
    font-size: 14px;    
}

/**
 * WP Quiz 
 *
 */
.wq-quiz-trivia .wq_questionTextCtr {
    width: 100%;
}

body .wq_questionTextCtr h4 {
    font-size: 20px;
    line-height: 1.3;
}

.wq_singleAnswerCtr .wq_answerTxtCtr {
    font-size: 16px;
}

.wq-skin-traditional .wq_singleAnswerCtr {
    padding: 7px 20px;
}

.wq_singleAnswerCtr .wq_answerTxtCtr:before, .wq_singleAnswerCtr.chosen .wq_answerTxtCtr:after {
    top: 0;
}

/**
 * Forminator
 *
 */
.widget_forminator_widget, .theme-poll-small-widget {
    padding: var(--theme-padding);
    border-radius: 10px;
    border: 1px solid var(--theme-color);
    max-width: 400px;
    margin: 0 auto;
}

.forminator-ui.forminator-poll {
    margin-top: 0 !important;
}

.forminator-ui .forminator-question, .theme-forminator-poll-question {
    color: var( --theme-color ) !important;
    font-weight: bold;
}

.forminator-ui .forminator-button-submit, .theme-button-open-poll {
    background-color: var( --theme-color ) !important;
}

.forminator-ui .forminator-radio span:not([aria-hidden]) {
    font-size: 14px !important;
}

@media only screen and (max-width: 480px) {
    .widget_forminator_widget {
        max-width: 100%;
    }
}

/**
 * Democracy poll 
 *
 */
.dem-copyright, .dem-date, .dem-archive-link {
    display: none !important;
}

.widget_democracy, .dem-poll-shortcode {
    padding: var(--theme-padding);
    border-radius: 10px;
    border: 1px solid var(--theme-color);
    max-width: 400px;
    margin: 0 auto;
}

.dem-poll-title {
    margin-top: 0 !important;
    font-size: 17px !important;
    color: var( --theme-color );
    text-align: left !important;
}

.dem__radio_label, .dem-answers .dem-label {
    font-size: 14px;
}

.dem-answers .dem-label {
    margin-bottom: 5px !important;
}

input.dem-add-answer-txt {
    padding: 5px;
    border: 1px solid var(--theme-color);
    outline: none;
}

input[type=submit].dem-button, a.dem-button, .dem-button {
    font-size: 90%;
    font-family: tahoma, arial, sans-serif;
    padding: .8em 1.6em !important;
    color: #fff;
    background: #61a9de;
    text-transform: uppercase;
}

.dem-bottom, .dem-poll-info {
    padding-bottom: 0 !important;
}

.dem-link {
    margin: .8em 0 0 0 !important;
}

.dem-voted-this .dem-fill, .dem-fill {
    background-color: var( --theme-color ) !important;
}

.theme-modal-poll .dem-poll-shortcode {
    margin-top: calc( var(  --theme-margin ) * 2 );
    background-color: #ffffff;
    border: none;
}

/**
 * Poll button 
 *
 */
.theme-button.theme-button-open-poll {
    margin: var(--theme-margin) 0 0 0;
    color: #ffffff;
    font-size: 13px;
    padding: 3px 5px;
    height: auto;
}

.theme-button.theme-button-open-poll:hover {
    background-color: #ffffff !important;
    color: var(--theme-color);
}

/**
 * FAQS
 *
 * @since 1.0.0
 */
.dmi-faqs-row div {
   margin-bottom: 0!important;
}

.dmi-faqs-row-accordion .dmi-faq {
  border-top: 3px solid #000000;
}

.theme-dark-background .dmi-faqs-row-accordion .dmi-faq {
  border-top: 3px solid #ffffff;
}

.dmi-faqs-row-accordion .dmi-faq:last-child {
  border-bottom: 3px solid #000000;
}

.theme-dark-background .dmi-faqs-row-accordion .dmi-faq:last-child {
  border-bottom: 3px solid #ffffff;
}

.dmi-faqs-row-accordion .dmi-faq-content {
  border-top: 0!important;
  padding: 20px 60px 20px 0;
}

.dmi-faqs-row-accordion .dmi-faq-title {
  padding-left: 0;
  padding-right: 60px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3
}

.dmi-faqs-row-accordion .dmi-faq-title:before {
  display: none;
}

.dmi-faqs-row-accordion .dmi-faq-title:after {
  content: '+';
  position: absolute;
  top: 15px;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 34px;
  line-height: 40px;
  text-align: center;
  vertical-align: middle;
  transition: transform 500ms;
  font-weight: 500;
  color: var( --theme-color-background );
  background-color: #000000;
}

.theme-dark-background .dmi-faqs-row-accordion .dmi-faq-title:after {
  color: var( --theme-color );
  background-color: #ffffff;
}

.dmi-faqs-row-accordion .dmi-faq-title:hover:after, .dmi-faqs-row-accordion .dmi-faq-title.dmi-faq-title-active:after {
  background-color: #000000;
  color: var( --theme-color-background );
}

.theme-dark-background .dmi-faqs-row-accordion .dmi-faq-title:hover:after, .theme-dark-background .dmi-faqs-row-accordion .dmi-faq-title.dmi-faq-title-active:after {
  background-color: #000000;
  color: var( --theme-color-background );
}

.dmi-faqs-row-accordion .dmi-faq-title.dmi-faq-title-active:after {
  transform: rotate( -45deg );
  transition: transform 500ms;
}

/**
 * Gallery
 *
 * @since 1.0.0
 */
.theme-widget-gallery .theme-gallery-row {
  margin: 0 -10px;
}

.theme-widget-gallery .theme-gallery-col {
  padding: 0 10px;
}

@media only screen and (max-width: 560px) {
  .theme-widget-gallery .theme-gallery-col {
    padding: 0 10px 20px 10px;
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media only screen and (max-width: 400px) {
  .theme-widget-gallery .theme-gallery-col {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.theme-widget-gallery img.theme-gallery-image {
  display: block;
  width: 100%;
  height: auto;
}

/**
 * Search form 
 *
 * @since 1.0.0
 */
.theme-search .searchform {
    margin-bottom: var( --theme-margin );
}

.searchform .theme-search-options {
    justify-content: space-between;
}

.searchform .theme-search-options .theme-grid-col {
    /*flex: 0 0 calc( 50% - var( --theme-margin ) );
    max-width: 50%;*/
    flex: 0 0 100%;
    max-width: 100%;
}

.searchform .theme-search-options .theme-grid-col:not(:last-child) {
    margin-bottom: var( --theme-margin );
}

@media only screen and (max-width: 768px) {

    .searchform .theme-search-options .theme-grid-col {
        flex: 0 0 100%;
        max-width: 100%;
    }

}

.theme-radio-button {
    margin-bottom: 10px;
}

.theme-radio-button:not(:last-child) {
    margin-right: var(--theme-margin);
}

.theme-radio-button input[type=radio] {
    display: none;
}

.theme-radio-button label {
    display: inline-block;
    cursor: pointer;
    padding: 10px 15px;
    border: 1px solid var(--theme-color);
    user-select: none;
    font-size: 13px;
    color: var(--theme-color);
    border-radius: 5px;
}

/* Checked */
.theme-radio-button input[type=radio]:checked+label {
    background-color: var(--theme-color);
    color: #ffffff;
}

/* Hover */
.theme-radio-button label:hover {
    opacity: 0.8;
}

.searchform select {
    margin-bottom: var(--theme-margin);
    width: 100%;
    background-color: #ffffff;
    color: #000000;
    border: 1px solid var( --theme-color-grey );
    font-size: 14px;
    padding: 10px 20px;
    appearance: none;
    outline: none;
    cursor: pointer;
    position: relative;
}

.searchform select option:checked, .searchform select option:hover, 
.searchform select option:focus, .searchform select option:active {
    background-color: var( --theme-color );
    color: #ffffff;
}

.searchform .theme-label {
    margin-bottom: 10px;
}

.theme-search-input {
    position: relative;
}

.searchinput, .searchform input[name="daterange"] {
    width: 100%;
    height: 40px;
    border: none;
    outline: none;
    border: 1px solid var( --theme-color-grey );
    padding: 0 20px;
    font-size: 15px;
}

.searchinput {
    padding: 0 60px 0 20px;
}

.searchsubmit {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    border: 1px solid var(--theme-color);   
    outline: none;
    background-color: var( --theme-color );
    position: absolute;
    right: 0;
    top: 0;
    width: 60px;
    height: 40px;
    z-index: 1;
    cursor: pointer;
}

.searchsubmit:hover {
    border: 1px solid var( --theme-color );
    background-color: #ffffff;
}

.theme-search-phrase {
    margin-bottom: var( --theme-margin );
    font-size: 16px;
    font-weight: 700;
}

.theme-search-phrase span {
    font-weight: normal;
    font-style: italic;
}

.theme-search-link {
    padding: 10px var( --theme-padding ) 0 var(--theme-padding);
    font-size: 15px;
}

.daterangepicker .drp-selected {
    display: none !important;
}

/**
 * Button
 *
 */
.theme-button {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 0 20px;
    height: 40px;
    width: auto;
    max-width: 140px;
    flex: 0 0 auto;
    border: 1px solid var( --theme-color );
    color:var(--theme-color);
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;  
}

.theme-card .theme-button {
    margin: 0;
    color: #ffffff;
    border: 1px solid #ffffff;
    font-size: 13px;
}

.theme-button:hover, .theme-button-active {
    opacity: 1;
    background-color: var(--theme-color);
    color: #ffffff;
}

.theme-card .theme-button:hover {
    background-color: transparent;
    opacity: 0.8;
}

.theme-button-active {
    cursor: default;
}

.theme-button.theme-button-switch {
    width: 250px;
    max-width: none;
    height: 30px;
    font-size: 13px;
}

@media only screen and (max-width: 768px) {
    .theme-button.theme-button-switch {
        width: 100%;

    }
}

@media only screen and (max-width: 560px) {
    .theme-button.theme-button-switch {
        font-size: 12px;
    }
}

/**
 *
 *
 */
.theme-load-more {
    width: 100%;
}

.theme-preloader {
    flex: 0 0 100%;
    width: 100%;
    display: none;
    margin-bottom: var( --theme-margin );
}

/**
 *
 *
 */
.theme-not-found {
  padding: 0 20px;
}

/**
 * Text widget
 *
*/
.textwidget {
    font-size: 19px;
    line-height: 1.5;
    font-weight: 400;
}

footer .textwidget {
    font-size: 15px;
}

.textwidget:after,
.textwidget ol:before,
.textwidget ol:after,
.textwidget ul:before,
.textwidget ul:after,
.textwidget blockquote:after {
    content: '';
    clear: both;
    display: block;
}

.textwidget p:not(:last-child),
.textwidget ul:not(:last-child),
.textwidget ol:not(:last-child),
.textwidget>div:not(:last-child),
.textwidget blockquote:not(:last-child) {
    margin-bottom: var(--theme-margin);
}

.textwidget h2:not(:first-child),
.textwidget h3:not(:first-child),
.textwidget h4:not(:first-child),
.textwidget h5:not(:first-child),
.textwidget h6:not(:first-child) {
    margin-top: var(--theme-margin);
}

.textwidget h2:not(:last-child),
.textwidget h3:not(:last-child),
.textwidget h4:not(:last-child),
.textwidget h5:not(:last-child),
.textwidget h6:not(:last-child) {
    margin-bottom: var(--theme-margin);
}

/**
 * H2 - H6
 *
 */
.textwidget h2,
.textwidget h3,
.textwidget h4,
.textwidget h5,
.textwidget h6 {
    font-weight: 500;
    line-height: 1.2;
}

.textwidget h2 {
    font-size: 34px;
}

.textwidget h3 {
    font-size: 32px;
}

.textwidget h4 {
    font-size: 26px;
}

.textwidget h5 {
    font-size: 22px;
}

.textwidget h6 {
    font-size: 20px;
}

@media only screen and (max-width: 768px) {
    .textwidget h2 {
        font-size: 28px;
    }

    .textwidget h3 {
        font-size: 26px;
    }

    .textwidget h4 {
        font-size: 24px;
    }

    .textwidget h5 {
        font-size: 22px;
    }

    .textwidget h6 {
        font-size: 20px;
    }
}

/**
 * UL, OL
 *
 * @since 1.0.0
 */
.textwidget ul {
    padding: 0 var(--theme-padding);
}

.textwidget ul li {
    list-style: none;
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
    min-height: 32px;
}

.textwidget ul li ul {
    margin-top: 10px;
}

.textwidget ul li:before {
    content: '';
    background-color: var(--theme-color);
    position: absolute;
    top: 10px;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 2px;
}

.textwidget ul[style*="list-style-type: disc;"] li:before,
.textwidget ul[style*="list-style-type: disc"] li:before {
    border-radius: 50%;
}

.textwidget ul[style*="list-style-type: circle;"] li:before,
.textwidget ul[style*="list-style-type: circle"] li:before {
    border-radius: 50%;
    border: 1px solid var(--theme-color);
    background-color: transparent;
}

.textwidget ul li[style*="list-style-type: none;"]:before,
.textwidget ul li[style*="list-style-type: none"]:before {
    display: none;
}

.textwidget ol {
    counter-reset: themeCounter;
    padding: 0 var(--theme-padding);
}

@media only screen and (max-width: 768px) {

    .textwidget ul,
    .textwidget ol {
        padding: 0;
    }
}

.textwidget ol li {
    list-style: none;
    padding-left: 40px;
    padding-top: 0;
    position: relative;
    margin-bottom: 10px;
    min-height: 32px;
}

.textwidget ol li:before {
    counter-increment: themeCounter;
    content: counter(themeCounter);
    color: #ffffff;
    background-color: var(--theme-color);
    position: absolute;
    top: 0px;
    left: 0;
    text-align: center;
    line-height: 26px;
    width: 26px;
    height: 26px;
    border-radius: 3px;
    font-size: 12px;
}

.textwidget ol[style="list-style-type: lower-alpha;"] li:before {
    content: counter(themeCounter, lower-alpha);
}

.textwidget ol[style="list-style-type: lower-greek;"] li:before {
    content: counter(themeCounter, lower-greek);
}

.textwidget ol[style="list-style-type: lower-roman;"] li:before {
    content: counter(themeCounter, lower-roman);
}

.textwidget ol[style="list-style-type: upper-roman;"] li:before {
    content: counter(themeCounter, upper-roman);
}

.textwidget ol[style="list-style-type: upper-alpha;"] li:before {
    content: counter(themeCounter, upper-alpha);
}

/**
 * Images
 *
 * @since 1.0.0
 */
.textwidget img {
    max-width: 100%;
    height: auto;
}