:root {
  --ft-main-width: 1224px;
  --ft-medium-width: 1040px;
  --ft-small-width: 950px;
  --ft-very-small-width: 750px;
  --ft-c-blue: #0067AC;
  --ft-c-green: #00923F;
  --ft-c-orange: #E77817;
  --ft-c-red: #DA251D;
  --ft-c-white: #FFFFFF;
}

.wp-block-group{
    max-width: var(--ft-main-width);
    width: 100%;
    margin: 16px auto;
}

@media (max-width: 1240px){
    body:not(.single-post) .wp-block-group{
        padding: 0 16px;
    }
}

/* Paragraph Styles */
p a{
    color: var(--ft-c-blue);
}
p a:hover{
    filter: brightness(50%);
}
p.is-style-green a{
    color: var(--ft-c-green);
}
p.is-style-green a:hover{
    filter: brightness(50%);
}
p.is-style-orange a{
    color: var(--ft-c-orange);
}
p.is-style-orange a:hover{
    filter: brightness(50%);
}
p.is-style-red a{
    color: var(--ft-c-red);
}
p.is-style-red a:hover{
    filter: brightness(50%);
}

/* Button Styles */
.wp-block-button a{
    display: inline-block;
    background-color: var(--ft-c-blue);
    border: 1px solid var(--ft-c-blue);
    color: var(--ft-c-white);
    border-radius: 20px;
    padding: 8px 20px;

    font: 400 1.6rem/2.4rem 'Jost', sans-serif;
    white-space: nowrap;

    outline: none;
    cursor: pointer;
    transition: .3s ease;
}
.wp-block-button a:hover{
    background-color: var(--ft-c-white);
    border: 1px solid var(--ft-c-blue);
    color: var(--ft-c-blue);
}
.wp-block-button.is-style-green a{
    background-color: var(--ft-c-green);
    border: 1px solid var(--ft-c-green);
    color: var(--ft-c-white);
}
.wp-block-button.is-style-green a:hover {
     background-color: var(--ft-c-white);
     color: var(--ft-c-green);
     border: 1px solid var(--ft-c-green);
}
.wp-block-button.is-style-green a:hover svg path {
    fill: var(--ft-c-green);
}
.wp-block-button.is-style-orange a{
    background-color: var(--ft-c-orange);
    border: 1px solid var(--ft-c-orange);
    color: var(--ft-c-white);
}
.wp-block-button.is-style-orange a:hover {
     background-color: var(--ft-c-white);
     color: var(--ft-c-orange);
     border: 1px solid var(--ft-c-orange);
}
.wp-block-button.is-style-orange a:hover svg path {
    fill: var(--ft-c-green);
}
.wp-block-button.is-style-red a{
    background-color: var(--ft-c-red);
    border: 1px solid var(--ft-c-red);
    color: var(--ft-c-white);
}
.wp-block-button.is-style-red a:hover {
     background-color: var(--ft-c-white);
     color: var(--ft-c-red);
     border: 1px solid var(--ft-c-red);
}
.wp-block-button.is-style-red a:hover svg path {
    fill: var(--ft-c-red);
}

/* Button Styles Editor */
.wp-block-button div{
    display: inline-block;
    background-color: var(--ft-c-blue);
    border: 1px solid var(--ft-c-blue);
    color: var(--ft-c-white);
    border-radius: 20px;
    padding: 8px 20px;

    font: 400 1.6rem/2.4rem 'Jost', sans-serif;
    white-space: nowrap;

    outline: none;
    cursor: pointer;
    transition: .3s ease;
}
.wp-block-button div:hover{
    background-color: var(--ft-c-white);
    border: 1px solid var(--ft-c-blue);
    color: var(--ft-c-blue);
}
.wp-block-button.is-style-green div{
    background-color: var(--ft-c-green);
    border: 1px solid var(--ft-c-green);
    color: var(--ft-c-white);
}
.wp-block-button.is-style-green div:hover {
     background-color: var(--ft-c-white);
     color: var(--ft-c-green);
     border: 1px solid var(--ft-c-green);
}
.wp-block-button.is-style-green div:hover svg path {
    fill: var(--ft-c-green);
}
.wp-block-button.is-style-orange div{
    background-color: var(--ft-c-orange);
    border: 1px solid var(--ft-c-orange);
    color: var(--ft-c-white);
}
.wp-block-button.is-style-orange div:hover {
     background-color: var(--ft-c-white);
     color: var(--ft-c-orange);
     border: 1px solid var(--ft-c-orange);
}
.wp-block-button.is-style-orange div:hover svg path {
    fill: var(--ft-c-green);
}
.wp-block-button.is-style-red div{
    background-color: var(--ft-c-red);
    border: 1px solid var(--ft-c-red);
    color: var(--ft-c-white);
}
.wp-block-button.is-style-red div:hover {
     background-color: var(--ft-c-white);
     color: var(--ft-c-red);
     border: 1px solid var(--ft-c-red);
}
.wp-block-button.is-style-red div:hover svg path {
    fill: var(--ft-c-red);
}

/* Quote Styles */
.wp-block-quote{
    padding-left: 12px;
    border-left: 3px solid var(--ft-c-blue);
}
.wp-block-quote.is-style-green{
    border-left: 3px solid var(--ft-c-green);
}
.wp-block-quote.is-style-orange{
    border-left: 3px solid var(--ft-c-orange);
}
.wp-block-quote.is-style-red{
    border-left: 3px solid var(--ft-c-red);
}

/* Tabs Styles */
.block-editor-block-list__block[data-type="ep/tabs"] .ep_tabs_header,
.wp-block-ep-tabs .ep_tabs_header{
    gap: 0 !important;
}
.block-editor-block-list__block[data-type="ep/tabs"] div.ep_label_main,
.wp-block-ep-tabs a.ep_label_main {
    margin-right: 0;
    background-color: var(--ft-c-white);
    background-image: none !important;
    border-top: 1px solid transparent;
    border-bottom: 1px solid var(--ft-c-blue);
    border-left: 1px solid transparent;
    border-right: 1px solid transparent;
}
.block-editor-block-list__block[data-type="ep/tabs"] div.ep_label_main.ep_active_tab,
.wp-block-ep-tabs a.ep_label_main.ep_active_tab {
    border-top: 1px solid var(--ft-c-blue);
    border-bottom: 1px solid transparent;
    border-left: 1px solid var(--ft-c-blue);
    border-right: 1px solid var(--ft-c-blue);
}
.block-editor-block-list__block[data-type="ep/tabs"] div.ep_label_main span,
.wp-block-ep-tabs a.ep_label_main span {
    color: #000000 !important;
}
.block-editor-block-list__block[data-type="ep/tabs"] .ep_tab_item_wrapper,
.wp-block-ep-tabs .ep_tab_item_wrapper {
    position: relative;
    border-left: 1px solid var(--ft-c-blue) !important;
    border-right: 1px solid var(--ft-c-blue) !important;
    border-bottom: 1px solid var(--ft-c-blue) !important;
    background-color: var(--ft-c-white) !important;
    background-image: none !important;
}
.block-editor-block-list__block[data-type="ep/tabs"] .ep_tab_item_wrapper::after,
.wp-block-ep-tabs .ep_tab_item_wrapper::after{
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--ft-c-blue);
    z-index: -1;
}


.block-editor-block-list__block[data-type="ep/tabs"] > div.is-style-green div.ep_label_main,
.wp-block-ep-tabs.is-style-green a.ep_label_main {
    border-bottom: 1px solid var(--ft-c-green);
}
.block-editor-block-list__block[data-type="ep/tabs"] > div.is-style-green div.ep_label_main.ep_active_tab,
.wp-block-ep-tabs.is-style-green a.ep_label_main.ep_active_tab {
    border-top: 1px solid var(--ft-c-green);
    border-bottom: 1px solid transparent;
    border-left: 1px solid var(--ft-c-green);
    border-right: 1px solid var(--ft-c-green);
}
.block-editor-block-list__block[data-type="ep/tabs"] > div.is-style-green .ep_tab_item_wrapper,
.wp-block-ep-tabs.is-style-green .ep_tab_item_wrapper {
    border-left: 1px solid var(--ft-c-green) !important;
    border-right: 1px solid var(--ft-c-green) !important;
    border-bottom: 1px solid var(--ft-c-green) !important;
}
.block-editor-block-list__block[data-type="ep/tabs"] > div.is-style-green .ep_tab_item_wrapper::after,
.wp-block-ep-tabs.is-style-green .ep_tab_item_wrapper::after{
    background-color: var(--ft-c-green) !important;
}

.block-editor-block-list__block[data-type="ep/tabs"] > div.is-style-orange div.ep_label_main,
.wp-block-ep-tabs.is-style-orange a.ep_label_main {
    border-bottom: 1px solid var(--ft-c-orange);
}
.block-editor-block-list__block[data-type="ep/tabs"] > div.is-style-orange div.ep_label_main.ep_active_tab,
.wp-block-ep-tabs.is-style-orange a.ep_label_main.ep_active_tab {
    border-top: 1px solid var(--ft-c-orange);
    border-bottom: 1px solid transparent;
    border-left: 1px solid var(--ft-c-orange);
    border-right: 1px solid var(--ft-c-orange);
}
.block-editor-block-list__block[data-type="ep/tabs"] > div.is-style-orange .ep_tab_item_wrapper,
.wp-block-ep-tabs.is-style-orange .ep_tab_item_wrapper {
    border-left: 1px solid var(--ft-c-orange) !important;
    border-right: 1px solid var(--ft-c-orange) !important;
    border-bottom: 1px solid var(--ft-c-orange) !important;
}
.block-editor-block-list__block[data-type="ep/tabs"] > div.is-style-orange .ep_tab_item_wrapper::after,
.wp-block-ep-tabs.is-style-orange .ep_tab_item_wrapper::after{
    background-color: var(--ft-c-orange) !important;
}

.block-editor-block-list__block[data-type="ep/tabs"] > div.is-style-red div.ep_label_main,
.wp-block-ep-tabs.is-style-red a.ep_label_main {
    border-bottom: 1px solid var(--ft-c-red);
}
.block-editor-block-list__block[data-type="ep/tabs"] > div.is-style-red div.ep_label_main.ep_active_tab,
.wp-block-ep-tabs.is-style-red a.ep_label_main.ep_active_tab {
    border-top: 1px solid var(--ft-c-red);
    border-bottom: 1px solid transparent;
    border-left: 1px solid var(--ft-c-red);
    border-right: 1px solid var(--ft-c-red);
}
.block-editor-block-list__block[data-type="ep/tabs"] > div.is-style-red .ep_tab_item_wrapper,
.wp-block-ep-tabs.is-style-red .ep_tab_item_wrapper {
    border-left: 1px solid var(--ft-c-red) !important;
    border-right: 1px solid var(--ft-c-red) !important;
    border-bottom: 1px solid var(--ft-c-red) !important;
}
.block-editor-block-list__block[data-type="ep/tabs"] > div.is-style-red .ep_tab_item_wrapper::after,
.wp-block-ep-tabs.is-style-red .ep_tab_item_wrapper::after{
    background-color: var(--ft-c-red) !important;
}

/* Group Styles */
.block-editor-writing-flow .wp-block-group{
    border: 4px solid #f1f1f1;
    padding: 8px 16px;
}
.wp-block-group.is-style-medium{
    max-width: var(--ft-medium-width);
}
.wp-block-group.is-style-small{
    max-width: var(--ft-small-width);
}
.wp-block-group.is-style-very-small{
    max-width: var(--ft-very-small-width);
}