/*
Theme Name: Thelos Portal
Theme URI: https://thelos.org.br
Author: Anderson Silva
Author URI: https://agdigital.com.br
Description: Tema editorial estilo portal  clean para WordPress.
Version: 1.0.0
Requires at least: 6.8
Tested up to: 6.8.3
Requires PHP: 8.1
Text Domain: thelos-portal
*/

:root {
    --primary: #1A0066;
    --secondary: #0669b2;
    --bg-body: #ffffff;
    --bg-alt: #f9f9f9;
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --text-main: #1a1a1a;
    --text-muted: #666666;
    --radius: 4px;
    --accent: var(--primary);
    --dark: var(--text-main);
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.8;
    margin: 0;
    padding: 0;
}

.serif {
    font-family: var(--font-serif);
}

.section-title {
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    border-bottom: 3px solid var(--accent);
    display: inline-block;
}

.main-header {
    background: #fff;
    border-bottom: 1px solid #eee;
}

.logo {
    display: flex;
    align-items: center;
}

.logo .custom-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo .custom-logo {
    max-width: 277px;
    width: auto;
    height: auto;
    max-height: 63px;
    display: block;
}

.logo a {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: -2px;
}

.logo span {
    color: var(--dark);
    font-weight: 400;
    font-size: 1.5rem;
    letter-spacing: 0;
    margin-left: 5px;
}

.logo .logo-text {
    color: var(--accent);
    font-weight: 900;
}

.main-nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-nav a:hover {
    color: var(--accent);
}

.ticker-bar {
    font-size: 0.9rem;
}

.sidebar-box {
    border: 1px solid #ececec;
    padding: 24px;
    background: #fff;
    margin-bottom: 30px;
}

.site-footer {
    background: #fbfbfc;
    border-top: 1px solid #e8e8e8;
    margin-top: 70px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    text-decoration: none;
}

.footer-logo span {
    color: var(--text-main);
    font-weight: 400;
    font-size: 1.2rem;
}

.footer-title {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 800;
    margin-bottom: 18px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid #e9e9e9;
    margin-top: 35px;
    padding-top: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.3s ease-in-out;
    z-index: 9999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--secondary);
}









.hero-card {
    margin-bottom: 3rem;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image-wrapper img {
    width: 100%;
    height: 60vh;
    object-fit: cover;
    display: block;
    filter: grayscale(10%);
}

.hero-content {
    background: #fff;
    padding: 50px;
    width: 85%;
    margin: -80px auto 0;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
    text-align: center;
}

.badge-category,
.category {
    display: inline-block;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1.5px;
    font-size: 0.75rem;
    margin-bottom: 10px;
}

.news-grid {
    margin-bottom: 10px;
}

.news-item .thumb img {
    width: 100%;
    max-height: 275px;
    object-fit: cover;
    display: block;
}

.news-list-section {
    margin: 55px 0 20px;
    padding-top: 10px;
}

.news-list-item {
    display: flex;
    gap: 18px;
    padding: 22px 0;
    border-bottom: 1px solid #ececec;
}

.news-list-thumb {
    width: 210px;
    min-width: 210px;
}

.news-list-thumb img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.news-list-content {
    flex: 1;
}

.news-list-content p {
    color: var(--text-muted);
    margin-bottom: 8px;
    line-height: 1.6;
}

.news-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
}





.portal-pagination {
    width: 100%;
    margin-top: 30px;
}

.portal-pagination ul.page-numbers {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0 !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.portal-pagination ul.page-numbers li {
    display: inline-flex !important;
    margin: 0 !important;
    padding: 0 !important;
}

.portal-pagination a,
.portal-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid #ddd;
    color: var(--text-main);
    text-decoration: none;
    line-height: 1;
    background: #fff;
    margin: 0;
}

.portal-pagination li + li a,
.portal-pagination li + li span {
    margin-left: -1px;
}

.portal-pagination .current,
.portal-pagination a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.portal-pagination .prev,
.portal-pagination .next {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding-left: 18px;
    padding-right: 18px;
}

.portal-pagination .dots {
    border: 1px solid #ddd;
    background: #fff;
    min-width: 42px;
    padding: 10px 14px;
}






.lower-news-section {
    margin-top: 40px;
}

.lower-news-card .thumb img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.lower-news-card p {
    color: var(--text-muted);
    margin-top: 10px;
    margin-bottom: 10px;
}

.sidebar-inner.sticky-item {
    position: sticky;
    top: 100px;
}

.trending-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.number {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: #eee;
    font-weight: 900;
    line-height: 1;
}

.login-sidebar-box {
    background: linear-gradient(135deg, #ffffff 0%, #f6f8fb 100%);
    border: 1px solid #e9edf2;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    border-radius: 10px;
    overflow: hidden;
}

.login-sidebar-inner {
    padding: 32px 28px;
}

.login-kicker {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 10px;
}

.login-helper {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.form-control-login,
#thelos-loginform input[type="text"],
#thelos-loginform input[type="password"] {
    width: 100%;
    height: 48px;
    border-radius: 0;
    border: 1px solid #d8dee6;
    font-size: 0.95rem;
    padding: 12px 14px;
    box-shadow: none;
    margin-bottom: 15px;
}

.btn.btn-login,
#thelos-loginform .button-primary,
#thelos-loginform input[type="submit"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 48px !important;
    padding: 12px 18px !important;
    background-color: var(--primary) !important;
    border: 1px solid var(--primary) !important;
    color: #fff !important;
    border-radius: 0 !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.btn.btn-login:hover,
#thelos-loginform input[type="submit"]:hover {
    background-color: var(--secondary) !important;
    border-color: var(--secondary) !important;
    color: #fff !important;
}

#thelos-loginform label {
    display: none;
}

#thelos-loginform .login-remember {
    display: none;
}

.login-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    transition: var(--transition);
}

.login-links a:hover {
    color: var(--primary);
}

@media (max-width: 767px) {
    .hero-content {
        width: 92%;
        padding: 28px 20px;
        margin-top: -50px;
    }

    .news-list-item {
        flex-direction: column;
    }

    .news-list-thumb,
    .news-list-thumb img {
        width: 100%;
        min-width: 100%;
        height: auto;
    }
}


.single .entry-content h6,
.single .article-content h6 {
    border-left: 4px solid var(--primary);
    padding: 12px 0 12px 22px;
    margin: 2rem 0;
    font-size: 1.2rem;
    font-family: var(--font-serif);
    color: #222;
    background: #fafafa;
}


/*******************/

.single-hero {
    padding: 50px 0 30px;
    border-bottom: 1px solid #eee;
}

.single-category {
    display: inline-block;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 0.75rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.single-title {
    font-family: var(--font-serif);
    font-size: 3.3rem;
    line-height: 1.08;
    font-weight: 900;
    margin-bottom: 18px;
}

.single-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 900px;
    margin-bottom: 25px;
}

.article-meta {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 14px 0;
    font-size: 0.92rem;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.featured-image {
    margin: 35px 0 10px;
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.article-layout {
    padding-top: 35px;
}

.article-content {
    font-size: 1.1rem;
}

.article-content p {
    margin-bottom: 1.6rem;
}

.article-content h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin: 2.4rem 0 1rem;
    line-height: 1.2;
}

.article-content h3 {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    margin: 2rem 0 0.9rem;
}



@media (max-width: 991px) {
    .single-title {
        font-size: 2.4rem;
    }
}

@media (max-width: 767px) {
    .single-title {
        font-size: 2rem;
    }

    .article-content {
        font-size: 1.03rem;
    }
}

/****/

.article-content img {
    max-width: 100%;
    height: auto;
}

.article-content .alignright {
    float: right;
    margin: 0 0 20px 25px;
}

.article-content .alignleft {
    float: left;
    margin: 0 25px 20px 0;
}

.article-content .aligncenter {
    display: block;
    margin: 20px auto;
}

@media (max-width: 767px) {
    .article-content .alignright,
    .article-content .alignleft {
        float: none;
        display: block;
        margin: 20px auto;
    }
}
/**************/
.single-hero .container {
    max-width: 1140px;
}

.single-subtitle:empty {
    display: none;
}

.featured-image {
    margin: 35px 0 0;
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.image-caption {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.article-layout {
    padding-top: 35px;
}

.article-toc {
    background: var(--bg-alt);
    border: 1px solid #ececec;
    padding: 14px;
    margin: 0 0 20px;
}

.article-toc h5 {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}

.article-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-toc li {
    margin-bottom: 10px;
}

.article-toc a {
    color: var(--text-main);
    text-decoration: none;
}

.article-toc a:hover {
    color: var(--primary);
}

.article-content {
    font-size: 1.1rem;
}

.article-content p {
    margin-bottom: 1.6rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
}

.article-content .alignright {
    float: right;
    margin: 0 0 20px 25px;
}

.article-content .alignleft {
    float: left;
    margin: 0 25px 20px 0;
}

.article-content .aligncenter {
    display: block;
    margin: 20px auto;
}

.article-content h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin: 2.4rem 0 1rem;
    line-height: 1.2;
}

.article-content h3 {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    margin: 2rem 0 0.9rem;
}

.article-content h6 {
    border-left: 4px solid var(--primary);
    padding: 12px 0 12px 22px;
    margin: 2rem 0;
    font-size: 1.2rem;
    font-family: var(--font-serif);
    color: #222;
    background: #fafafa;
}

.article-content ul {
    padding-left: 1.2rem;
    margin-bottom: 1.0rem;
}

.article-content::after {
    content: "";
    display: block;
    clear: both;
}

@media (max-width: 767px) {
    .single-title {
        font-size: 2rem;
    }

    .article-content {
        font-size: 1.03rem;
    }

    .article-content .alignright,
    .article-content .alignleft {
        float: none;
        display: block;
        margin: 20px auto;
    }
}

/***final co content single ************/

.share-box,
.tag-box,
.post-nav {
    border-top: 1px solid #eee;
    padding-top: 22px;
    margin-top: 24px;
}

.share-links a,
.tag-list a,
.post-nav a {
    text-decoration: none;
}

.share-links a {
    display: inline-block;
    margin-right: 10px;
    color: var(--text-main);
    font-weight: 700;
}

.share-links a:hover {
    color: var(--primary);
}

.tag-list a {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #ddd;
    color: var(--text-main);
    font-size: 0.85rem;
    margin: 0 8px 8px 0;
}

.tag-list a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.post-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.post-nav-card {
    border: 1px solid #ececec;
    padding: 18px;
    min-height: 120px;
}

.post-nav-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
}

.post-nav-card a {
    color: var(--text-main);
    font-weight: 700;
}

.post-nav-card a:hover {
    color: var(--primary);
}

.related-section {
    background: var(--bg-alt);
    padding: 70px 0;
    margin-top: 70px;
}

.related-card {
    background: #fff;
    border: 1px solid #ececec;
    height: 100%;
    transition: 0.3s ease-in-out;
}

.related-card:hover {
    transform: translateY(-4px);
}

.related-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}

.related-card-body {
    padding: 18px;
}

.related-card .category {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    color: var(--primary);
    margin-bottom: 10px;
}

.related-card h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    line-height: 1.25;
    margin-bottom: 10px;
}

@media (max-width: 991px) {
    .post-nav-grid {
        grid-template-columns: 1fr;
    }
}


body.archive,
body.category {
    display: block !important;
}

.portal-pagination .nav-links {
    display: flex;
    justify-content: center;
    width: 100%;
}


/* SEARCH BOX */
.widget_search .search-form {
    display: flex;
    width: 100%;
}

.widget_search .search-form label {
    flex: 1;
    margin: 0;
}

.widget_search .search-field {
    width: 100%;
    height: 48px;
    border: 1px solid #d8dee6;
    padding: 0 14px;
    font-size: 0.95rem;
    border-right: none;
    outline: none;
}

.widget_search .search-field::placeholder {
    color: var(--text-muted);
}

.widget_search .search-submit {
    height: 48px;
    padding: 0 18px;
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.2s;
}

.widget_search .search-submit:hover {
    background: var(--secondary);
    border-color: var(--secondary);
}

/* remove estilo padrão estranho */
.widget_search .search-form label span {
    display: none;
}





/* BOX GERAL */
.page-restrict-output {
    border: 1px solid #ececec;
    padding: 28px;
    background: #fff;
    margin: 30px 0;
}

/* TEXTO */
.page-restrict-output > p:first-child {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* FORM */
.page-restrict-output form {
    display: flex;
    flex-direction: column;
}

/* LABEL */
.page-restrict-output label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
    color: var(--text-main);
}

/* INPUTS */
.page-restrict-output input[type="text"],
.page-restrict-output input[type="password"] {
    width: 100%;
    height: 48px;
    border: 1px solid #d8dee6;
    padding: 0 14px;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

/* BOTÃO */
.page-restrict-output input[type="submit"] {
    height: 48px;
    background: var(--primary);
    border: 1px solid var(--primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    margin-bottom: 12px;
}

.page-restrict-output input[type="submit"]:hover {
    background: var(--secondary);
    border-color: var(--secondary);
}

/* CHECKBOX */
.page-restrict-output input[type="checkbox"] {
    margin-right: 6px;
}

/* LINKS */
.page-restrict-output a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
}

.page-restrict-output a:hover {
    color: var(--primary);
}


/* LABELS DE INPUT (texto/senha) */
.page-restrict-output label:has(input[type="text"]),
.page-restrict-output label:has(input[type="password"]) {
    display: flex;
    flex-direction: column-reverse;
}

/* CHECKBOX */
.page-restrict-output label:has(input[type="checkbox"]) {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    text-transform: none;
    letter-spacing: 0;
    margin-top: 10px;
}



