/* 
    Created on : 09/02/2016, 14:13:33
    Author     : robsonvleite
    Updated    : Modernization
*/

:root {
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 8px;
    --radius-sm: 4px;
}

body {
    background-color: #f8f9fa; /* Fundo levemente cinza para destacar os cards brancos */
    color: #333;
    line-height: 1.6;
    font-family: 'Open Sans', sans-serif; /* Garantindo fonte moderna */
}

.content{
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/*HEADER*/
.main_header_top {
    border-top: 5px solid var(--colorMain);
    background: #ffffff;
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 100;
}

.header_flex {
    display: flex;
    justify-content: space-between; /* Logo na esquerda, menu/ação na direita se houver */
    align-items: center;
    position: relative;
}

.main_header_top header{
    text-align: left; /* Logo alinhado a esquerda */
    color: #333;
    display: flex;
    align-items: center;
    gap: 15px;
}

.main_header_top header h1{
    font-size: 1.5em;
    font-weight: 700;
    color: var(--colorMain);
    margin: 0;
    line-height: 1.2;
}

.main_logo {
    width: 80px;
    height: auto;
}

.mobile_action {
    display: none;
}

.mobile_menu_btn {
    background: none;
    border: none;
    font-size: 1.8em;
    color: var(--colorMain);
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s;
}

.mobile_menu_btn:hover {
    color: var(--colorMainHover);
}

/*HEADER NAV*/
.main_header{
    background: var(--colorMainGradient);
    padding: 0;
    color: #ffffff;
    box-shadow: var(--shadow);
}

.main_nav {
    display: block;
    text-align: center;
}

.main_nav ul{
    margin: 0;
    padding: 0;
    display: inline-block;
    list-style: none;
}

.main_nav > ul > li{
    display: inline-block;
    position: relative;
}

.main_nav > ul > li > a{
    display: inline-block;
    padding: 18px 25px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.3s, transform 0.2s;
}

.main_nav .login{
    background: rgba(0,0,0,0.1);
}

.main_nav > ul > li:hover > a,
.main_nav > ul > li > a:hover{
    background: rgba(255,255,255,0.15);
}

.main_nav li:hover .sub{
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main_nav .sub{
    display: block;
    opacity: 0;
    visibility: hidden;
    z-index: 99;
    position: absolute;
    width: 240px;
    background: #fff;
    margin: 0;
    top: 100%;
    left: 0;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius) var(--radius);
    transition: all 0.3s ease;
    transform: translateY(10px);
    text-align: left;
    overflow: hidden;
}

.main_nav .sub li{
    display: block;
    width: 100%;
}

.main_nav .sub li a{
    color: #555;
    display: block;
    width: 100%;
    padding: 12px 20px;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9em;
    text-transform: none;
    font-weight: 500;
    transition: all 0.2s;
}

.main_nav .sub li:last-child a {
    border-bottom: none;
}

.main_nav .sub li a:hover{
    background: #f9f9f9;
    color: var(--colorMain);
    padding-left: 25px; /* Efeito de movimento */
}

.site_title{
    display: inline-block;
    width: 1px;
    position: absolute;
    text-indent: -9999px;
}

/*CONTENT*/
.main_content{
    padding: 60px 0;
    background: #f8f9fa;
}

/*HOME*/
.flex {
    display: flex;
    flex-wrap: wrap;
}

.post_left{
    width: 50%;
}

.post_right{
    width: 50%;
    text-align: left;
    padding: 0px 30px !important;
}

.main_blog{
    float: right;
    width: 67%;
}

.main_blog_post{
    background: #fff;
    margin-bottom: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.main_blog_post:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.main_blog_post img{
    width: 100%;
    height: auto;
    display: block;
}

.main_blog_post header{
    padding: 30px;
    border: none;
}

.main_blog_post h1{
    font-weight: 700;
    font-size: 1.8em;
    margin-bottom: 15px;
    line-height: 1.3;
}

.main_blog_post a{
    color: var(--colorMain);
    text-decoration: none;
}

.main_blog_post a:hover{
    text-decoration: underline;
}

.main_blog_post .tagline{
    font-size: 1em;
    color: #666;
    margin-bottom: 20px;
}

.main_sidebar{
    float: left;
    width: 30%;
    padding: 0;
}

.main_sidebar_widget{
    display: block;
    width: 100%;
    margin-bottom: 30px;
    background: #fff;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.main_sidebar_widget > h1{
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    color: #333;
}

.main_sidebar_widget > h1 span{
    border-bottom: 2px solid var(--colorSecondary);
    padding-bottom: 10px;
}

.main_sidebar_widget a{
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

.main_sidebar_widget a:hover{
    color: var(--colorMain);
}

.main_sidebar_widget ul{
    display: block;
    width: 100%;
}

.main_sidebar_widget ul li{
    display: block;
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9em;
    font-weight: 500;
}

.main_sidebar_widget ul li:last-child {
    border-bottom: none;
}

.main_sidebar_widget_post{
    display: flex;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 20px;
    border: none;
    gap: 15px;
}

.main_sidebar_widget_post img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.main_sidebar_widget_post header {
    padding: 0;
    flex: 1;
}

.main_sidebar_widget_post h1{
    font-size: 1em;
    font-weight: 600;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.main_sidebar_widget_post .tagline{
    font-size: 0.85em;
    color: #777;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search_form{
    width: 100%;
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    text-align: center;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.search_form input{
    margin-bottom: 10px;
    width: 100%;
}

.search_form button{
    width: 100%;
    text-transform: uppercase;
    font-size: 0.9em;
    font-weight: 600;
}

/*PAGINATOR*/
.paginator{
    display: block;
    width: 100%;
    text-align: center;
    padding: 40px 0;
}

.paginator li{
    display: inline-block;
    font-size: 1em;
}

.paginator li a,
.paginator li span{
    padding: 10px 15px;
    margin: 0 5px;
    background: #fff;
    color: var(--colorMain);
    text-decoration: none;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
    transition: all 0.2s;
    border: 1px solid #eee;
}

.paginator li a:hover{
    background: var(--colorMain);
    color: #fff;
    transform: translateY(-2px);
}

.paginator li span{
    background: var(--colorMain);
    color: #fff;
    border-color: var(--colorMain);
}


/*FOOTER*/
.main_footer{
    background: var(--colorMainGradient);
    padding: 50px 0;
    color: #fff;
    font-size: 0.95em;
    text-align: center;
    margin-top: 40px;
}

.main_footer a {
    color: rgba(255,255,255,0.8);
    transition: color 0.2s;
}

.main_footer a:hover {
    color: #fff;
    text-decoration: underline;
}

/*SINGLE*/
.post_single{
    padding: 50px 0;
    background: #f8f9fa;
}

.post_single .cover{
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.post_single .fb-comments{
    display: block;
    width: 100%;
    margin-top: 40px;
    background: #fff;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.post_single .main_sidebar{
    float: right;
}

.post_single .left_content{
    float: left;
    width: 67%;
}

.post_content{
    background: #fff;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.post_content > h1{
    padding: 0 0 20px 0;
    font-size: 2.2em;
    font-weight: 700;
    color: var(--colorMain);
    line-height: 1.2;
}

.post_content .tagline{
    padding: 0 0 30px 0;
    font-size: 1.2em;
    font-weight: 300;
    color: #666;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.single_post_more{
    float: left;
    width: 100%;
    padding: 30px;
    background: var(--colorMain); /* Usando a cor principal */
    border-radius: var(--radius);
    margin-top: 30px;
    color: #fff;
}

.single_post_more header{
    margin-bottom: 20px;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 10px;
}

.single_post_more_post{
    float: left;
    width: 50%;
    padding: 10px;
}

.single_post_more_post img {
    border-radius: var(--radius-sm);
    transition: transform 0.2s;
}

.single_post_more_post:hover img{
    transform: scale(1.02);
}


/*404*/
.not_found{
    padding: 80px 0;
    text-align: center;
}

.not_found header{
    width: 800px;
    max-width: 100%;
    margin: 0 auto 40px auto;
}

.not_found header h1{
    font-size: 4em;
    font-weight: 800;
    color: var(--colorMain);
}

.not_found header p{
    font-size: 1.2em;
    font-weight: 300;
    margin: 10px 0 0 0;
    color: #666;
}

.page_header {
    background: var(--colorMain);
    color: #FFFFFF;
    padding: 60px 0;
    margin-bottom: 40px;
    box-shadow: inset 0 -10px 20px -10px rgba(0,0,0,0.2);
}

.page_header h1 {
    font-family: var(--fontTema);
    font-size: 2.5em;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.border_left {
    border-left: 5px solid rgba(255,255,255,0.3);
    padding-left: 20px;
}

.page_single{
    padding: 0 0;
}

.page_single .content{
    background: #fff;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* MODERN FORM STYLES */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="search"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-size: 1em;
    color: #333;
    background-color: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--colorMain);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    font-size: 1em;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn_blue { background-color: #0E96E5; color: #fff; }
.btn_blue:hover { background-color: #0c85cc; }

.btn_green { background-color: #00B494; color: #fff; }
.btn_green:hover { background-color: #009e82; }

.btn_main { background-color: var(--colorMain); color: #fff; }
.btn_main:hover { background-color: var(--colorMainHover); }

/* MEDIA QUERIES */
@media (max-width: 80em){
    .content{
        width: 92%;
    }
    
    .main_blog{
        float: none;
        display: block;
        width: 100%;
    }

    .main_sidebar{
        float: none;
        display: block;
        width: 100%;
        padding: 0;
        margin-top: 40px;
    }

    .main_sidebar_widget{
        display: inline-block;
        width: 48%;
        margin-right: 2%;
        vertical-align: top;
    }

    .main_sidebar_widget:nth-child(2n) {
        margin-right: 0;
    }

    .left_content{
        float: none;
        display: block;
        width: 100% !important;
        margin-bottom: 30px;
    }

    .post_single .main_sidebar {
        float: none;
        width: 100%;
    }
}

@media (max-width: 64em){
    .content{
        width: 94%;
    }

    .mobile_action {
        display: block;
    }

    .main_nav {
        display: none;
        background: #fff;
        padding: 0;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        z-index: 999;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid #eee;
    }

    .main_nav.active {
        display: block;
    }

    .main_nav > ul {
        display: block;
        width: 100%;
    }

    .main_nav > ul > li {
        display: block;
        border-bottom: 1px solid #f0f0f0;
    }

    .main_nav > ul > li > a {
        padding: 15px 20px;
        text-align: left;
        color: #333;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .main_nav > ul > li > a:hover {
        background: #f9f9f9;
        color: var(--colorMain);
    }

    .main_nav .sub {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        display: none;
        box-shadow: none;
        background: #f5f5f5;
        transform: none;
        border-radius: 0;
    }

    .main_nav li.has-sub.open .sub {
        display: block;
    }

    .main_nav .sub li a {
        padding-left: 40px;
        border-bottom: 1px solid #e0e0e0;
    }

    .link-inscricao-evento {
        flex-direction: column;
    }

    .header_flex {
        justify-content: space-between;
    }

    .main_header_top header {
        justify-content: flex-start;
    }
}

@media (max-width: 50em){
    .main_sidebar_widget,
    .main_sidebar_widget_most .main_sidebar_widget_post{
        padding: 20px;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        display: block;
    }

    .not_fount_post{
        width: 100%;
        padding: 20px;
    }

    .link-inscricao-evento {
        flex-direction: column;
    }

    .post_left, .post_right {
        width: 100%;
        padding: 0 !important;
    }

    .post_right {
        margin-top: 20px;
    }

    .single_post_more_post {
        width: 100%;
        margin-bottom: 20px;
    }

    .post_content {
        padding: 20px;
    }
}

/*COOKIE POLICY*/
#cookiePolicy {
    position: fixed;
    right: 20px;
    bottom: 20px;
    left: auto;
    width: 350px;
    max-width: 90%;
    background-color: #fff;
    z-index: 99999;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    color: #333;
    border: 1px solid #eee;
}

#cookiePolicy .container {
    padding: 20px;
    text-align: left;
    color: #333;
    width: 100%;
}

#cookiePolicy span {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 0.9em;
    font-weight: 400;
    display: block;
    color: #555;
}

#cookiePolicy span a {
    color: var(--colorMain);
    font-weight: 600;
    text-decoration: none;
}

#cookiePolicy .footer_optout_btn {
    padding: 10px 20px;
    font-size: 1em;
    font-weight: 600;
    background: var(--colorMain);
    color: #fff;
    border-radius: var(--radius-sm);
    display: block;
    text-align: center;
    margin-top: 10px;
    cursor: pointer;
}

/* CHECKBOX CUSTOM */
.b-contain *,
.b-contain *::before,
.b-contain *::after {
    box-sizing: content-box !important;
}

.b-contain input {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

.b-contain span {
    line-height: 1.5;
    font-size: 1rem;
    font-family: inherit;
}

.b-contain {
    display: table;
    position: relative;
    padding-left: 2rem;
    cursor: pointer;
    margin-bottom: 0.4rem;
}

.b-contain input[type="checkbox"] ~ .b-input {
    position: absolute;
    top: 0;
    left: 0;
    height: 1.25rem;
    width: 1.25rem;
    background: #fff;
    transition: background 250ms;
    border: 1px solid #ccc;
    border-radius: 0.2rem;
}

.b-contain input[type="radio"] ~ .b-input {
    position: absolute;
    top: 0;
    left: 0;
    height: 1.25rem;
    width: 1.25rem;
    background: #fff;
    transition: background 250ms;
    border: 1px solid #ccc;
    border-radius: 3rem;
}

.b-contain input[type="checkbox"] ~ .b-input::after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 0.3rem;
    height: 0.6rem;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transition: background 250ms;
    transform: rotate(45deg);
}

.b-contain input[type="radio"] ~ .b-input::after {
    content: "";
    position: absolute;
    display: none;
    left: 4px;
    top: 4px;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 3rem;
    background: #ffffff;
    transition: background 250ms;
}

.b-contain input:checked ~ .b-input::after {
    display: block;
}

.b-contain:hover input[type="checkbox"]:not([disabled]) ~ .b-input,
.b-contain input[type="checkbox"]:focus ~ .b-input {
    background: #f0f0f0;
    border-color: #999;
}

.b-contain input[type="checkbox"]:checked ~ .b-input {
    background: var(--colorMain);
    border-color: var(--colorMain);
}

.b-contain input[type="radio"]:checked ~ .b-input {
    background: var(--colorMain);
    border-color: var(--colorMain);
}
