/*
Theme Name: Nexa
Author: Josef Salazar
Author URI: www.josefsalazar.com
Description: Nexa is an obscure theme made for people who enjoy a simple reading layout.
Requires at least: 5.3
Tested up to: 6.3
Requires PHP: 5.6
Version: 1.0.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nexa
Tags: blog, custom-colors, custom-menu, custom-logo, featured-images, threaded-comments
*/

:root {
    --primary: #ff9900;
    --secondary: #ffcc66;
    --header-footer-bg-color: #333;
    --text: #dfdfdf;
    --borders: #444;
    --background: #1d1d1d;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	-webkit-clip-path: inset(50%);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
	word-break: normal;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	-webkit-clip-path: none;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	right: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}


/* Skip Link --------------------------------- */

.skip-link {
	left: -9999rem;
	top: 2.5rem;
	z-index: 999999999;
	text-decoration: underline;
}

.skip-link:focus {
	display: block;
	left: 6px;
	top: 7px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	line-height: normal;
	padding: 15px 23px 14px;
	z-index: 100000;
	right: auto;
}


@font-face {
    font-family: Montserrat;
    src: url(assets/Montserrat/static/Montserrat-Regular.ttf);
}

body {
    font-family: "Montserrat", Arial, Helvetica, sans-serif !important;
    letter-spacing: 0.025rem;
}

article p {
    line-height: 2rem;
    font-weight: 500;
}

.wp-block-search {
    background-color: var(--background);
    border-radius: 5px;
}

.wp-block-search__label {
    color: var(--text);
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.wp-block-search__inside-wrapper {
    display: flex;
    align-items: center;
}

.wp-block-search__input {
    flex-grow: 1;
    padding: 5px 10px;
    margin-right: 10px;
    border: none;
    border-bottom: 1px solid var(--primary);
    outline: none;
    background-color: var(--background);
    color: var(--text);
    border-radius: 3px;
}


.wp-block-search__button {
    background-color: var(--background);
    color: var(--primary);
    border: 1px solid var(--borders);
    padding: 5px 15px;
    cursor: pointer;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.wp-block-search__button:hover {
    background-color: var(--background);
    color: var(--text)
}


#submit, .submit {
    background-color: var(--primary) !important;
}

#submit:hover, .submit:hover {
    background-color: var(--secondary) !important;
}

body {
    font-family: 'Arial', sans-serif;
    color: var(--text);
    background-color: var(--background);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}



.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.blog-page {
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    gap: 1em;
    max-width: 1200px;
    margin-inline: auto;
    padding: 0 2rem;
}

.blog-page > :first-child {
    flex-basis: 500px;
    flex-grow: 9999;
}

.blog-page > :last-child {
    flex-basis: 300px;
    flex-grow: 1;
}



.header-menu {
    display: flex;
    justify-content: space-between;
}

.header-identity {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

.sidebar {
    position: sticky;
    top: 0;
    border-radius: 15px;
    margin-left: 15px;
}

.sidebar .wp-block-heading {
    border-bottom: 2px solid var(--borders);
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.tag-cloud-link {
    padding: 1px 20px;  /* Increased horizontal padding for a better pill shape */
    display: inline-block;
    background-color: var(--background);
    color: var(--text);
    border-radius: 50px;  /* Large border-radius for the pill shape */
    font-size: 12px;
    transition: background-color 0.2s, color 0.2s;  /* Added transition for color as well */
    text-decoration: none;
    border: 1px solid var(--secondary)
}

.tag-cloud-link:hover {
    background-color: var(--secondary);
    color: var(--background);
    border: 1px solid var(--primary)
}

/* You might want to override the inline font-size style you provided in the HTML with the below rule */
.tag-cloud-link {
    font-size: 12px !important;
}

.wp-block-latest-posts__list {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}

.wp-block-latest-posts__post-title {
    display: block;
    padding: 8px 10px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.2s;
    color: var(--text);
    background-color: var(--header-footer-bg-color);
    margin-bottom: 5px;
}

.wp-block-latest-posts__post-title:hover {
    background-color: var(--secondary);
    color: var(--background);
    text-decoration: none;
}

/* Tag Cloud */
.wp-block-tag-cloud {
    margin-top: 10px;
    margin-bottom: 20px;
}

/* Categories */
.wp-block-categories-list {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}

.wp-block-categories-list .cat-item {
    padding: 5px 0;
}

.wp-block-categories-list .cat-item a {
    display: block;
    padding: 8px 10px;
    background-color: var(--header-footer-bg-color);
    color: var(--text);
    border-radius: 5px;
    transition: background-color 0.3s, color 0.2s;
}

.wp-block-categories-list .cat-item a:hover {
    background-color: var(--secondary);
    color: var(--background);
    text-decoration: none;
}

a:hover {
    color: var(--secondary);
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
}

header {
    background-color: var(--header-footer-bg-color);
    padding: 0 0 20px 0;
}

header h1 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

header p {
    margin-bottom: 20px;
}

.search-results {
    padding: 20px;
}

.top-header {
    padding: 20px;
}

article {
    display: flex;
    border-bottom: 1px solid var(--borders);
    padding-bottom: 20px;
    margin-bottom: 20px;
    gap: 1rem;
}




/* Second child takes the remaining 65% */
article:nth-child(2) {
    flex: 0 0 65%;
}


.nexa-single-post {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--borders);
    position: relative;
}




.post-thumbnail {
    max-width: auto;
    height: 400px;
    margin-right: 20px;
    margin-bottom: 10px;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

article h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.post-meta {
    font-size: 0.9em;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.post-meta span {
    margin-right: 10px;
}

.pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}


footer {
    background-color: var(--header-footer-bg-color);
    padding: 2rem 0;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

footer p {
    text-align: center;
    margin: 0;
}

.main_menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main_menu li {
    margin: 0;
    margin-right: 20px;
    padding: 0;
}

.main_menu a {
    display: block;
    padding: 15px 0;
    transition: background-color 0.3s;
}

img {
    width: 100%;
    height: auto;
}

img:not([src]),
img[src=""] {
    display: none;
}

@media screen and (max-width: 480px) {
    .main_menu a {
        padding: 8px 12px;
    }
}

@media screen and (max-width: 768px) {
    .container {
    }
}

.single-post {
    position: relative;
}



.post-title {
    color: var(--primary);
    margin: 0;
    padding: 0;
}

.post-author, .post-date {
    font-size: 0.9em;
    color: var(--secondary);
}

.post-content {
    color: var(--text);
}

.post-thumbnail-article {
    flex: 1 0 35% !important;
}

.post-thumbnail-article img {
    width: 100%;
    height: auto;
}

.author-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.author-meta-box {
    display: flex;
    flex-direction: column;
}

.author-img {
    width: 100px;
    height: 80%;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 20px;
}

.author-title {
    color: var(--text);
    font-size: 1.5em;
}

.author-desc {
    color: var(--text);
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prev-post a, .next-post a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.next-post a {
    flex-direction: row-reverse;
}

.prev-post img, .next-post img {
    width: 60px;
    height: auto;
    margin-right: 10px;
}

.comments-area {
    border-radius: 5px;
    margin-bottom: 40px;
    padding: 2rem 0;
  }
  
  .comments-title {
    font-size: 1.6em;
    margin-bottom: 15px;
  }
  
  .comment-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
  }
  
  .comment-list li {
    border-radius: 5px;
    margin-bottom: 15px;
  }
  
  .comment-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
  }
  
  .no-comments {
    color: var(--text);
  }
  
  .comment-form input[type="text"],
  .comment-form input[type="email"],
  .comment-form input[type="url"],
  .comment-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--borders);
    border-radius: 3px;
    background-color: var(--background);
    color: var(--text);
  }
  
  .comment-form input[type="submit"] {
    background-color: var(--secondary);
    color: var(--background);
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
  }
  
  .comment-form input[type="submit"]:hover {
    background-color: var(--secondary);
  }
  
  .comment.even {
    
    margin-bottom: 20px;
  }
  
  .comment-body {
    flex-grow: 1;
    border-radius: 5px;
  }
  
  .comment-author img {
    border-radius: 50%;
    width: 74px;
    height: 74px;
  }
  
  .comment-author .fn {
    color: var(--primary);
    font-size: 1.2em;
  }
  
  .comment-meta a {
    color: var(--primary);
    font-size: 0.8em;
  }
  
  .comment-reply-link {
    border: 1px solid var(--primary);
    padding: 5px 10px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 0.9em;
    color: var(--text);
  }
  
  .comment-awaiting-moderation {
    color: var(--text);
    font-style: italic;
    font-size: 0.9em;
    margin-top: 5px;
  }
  
  .new-search-form .search-wrapper {
    display: flex;
    border-radius: 4px;
    padding: 4px;
    max-width: 380px;
  }
  
  .new-search-field {
    flex: 1;
    padding: 8px;
    border: none;
    background: transparent;
    border-bottom: 1px solid var(--primary);
    color: var(--text);
  }

  .new-search-field:focus {
        outline: none;
        border-left: none;
        border-right: none;
        border-top: none;
    } 

    .comment-list {
        list-style-type: none;
        padding: 0;
        margin: 0;
    }

    .comment {
        padding: 10px 0;
        margin: 10px 0;
        border-radius: 4px;
    }

    .comment-body {
        position: relative;
    }

    .comment-author, .comment-meta {
        display: flex;
        align-items: center;
    }

    .comment-author img {
        border-radius: 50%;
        margin-right: 10px;
    }

    .children {
        list-style-type: none;
        margin-left: 40px;
        padding-left: 0;
    }

    .reply {
        position: absolute;
        bottom: 10px;
        right: 10px;
    }
  
  .new-search-button {
    background-color: var(--primary);
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    color: var(--text);
    margin-left: 15px;
  }
  

.search-post-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-post-item {
    flex: 1;
    max-width: calc(50% - 20px);
    color: var(--text);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.search-post-thumbnail img {
    max-width: 100%;
}

.search-post-content {
    margin-left: 20px;
}

.search-post-meta {
    font-size: 0.8em;
    color: var(--secondary);
    margin-bottom: 10px;
}

.search-results-wrapper {
    display: block;
    padding: 2rem 0;
}

.content-flex-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.archive-article {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.archive-title {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.archive-excerpt {
    color: var(--text);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--text);
    text-decoration: underline;
}

.footer {
    flex: 1;
}

.error-article {
    margin-top: 2rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.error-title {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.error-excerpt {
    color: var(--text);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--text);
    text-decoration: underline;
    padding: 2rem;
}

.template-spacing {
    padding: 2.5rem 0;
}

.visually-hidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap;
}


.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  
  .skip-link:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
    white-space: normal;
}

header {
    margin-bottom: 60px;
}

footer {
    margin-top: 60px;
}

.demo-theme-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-top: 1px solid var(--borders);
    border-bottom: 1px solid var(--borders);
}

.header-identity {
    padding-top: 20px;
}

.header-identity img {
    max-width: 200px;
    height: auto;
  }

.main-menu {
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    border-top: 1px solid var(--borders);
    border-bottom: 1px solid var(--borders);
}
.main-menu ul {
    padding-left: 0;
}
.main-menu ul li {
    display: inline-block;
    line-height: 55px;
    position: relative;
}

.main-menu ul li:focus-within > .sub-menu {
    display: block;
}

.main-menu .menu-item.focus > .sub-menu {
    display: block;
}


.main-menu ul li.current_page_item > a{
    font-weight: bold;
}
.main-menu ul li a {
    color: var(--text);
    padding: 0 30px;
    text-decoration: none;
    display: block;
}
.main-menu ul li a:hover,
.main-menu ul li a:active
{
    color: var(--secondary);
    transition: .5s all;
}
.main-menu ul li a:focus + ul
{
    display: block;
}
.main-menu li.menu-item-has-children::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: calc( 50% - 6px);
    width: 0px;
    height: 0px;
    border-top: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--borders);
    border-left: 6px solid transparent;
}
.main-menu ul.sub-menu {
    position: absolute;
    padding-left: 0;
    background-color: var(--header-footer-bg-color);
    border: 1px solid var(--borders);
    z-index: 1;
    text-align: left;
    display: none;
}
.main-menu ul .menu-item-has-children:hover>ul,
.main-menu ul .menu-item-has-children:focus+ul {
    display: block
}
.main-menu ul.sub-menu li {
    width: max-content;
}
.main-menu ul.sub-menu a {
    color: var(--text);
}
.menu-icon,
.check-button {
	cursor: pointer;
	display: none;
}
.menu-icon .bar1, 
.menu-icon .bar2, 
.menu-icon .bar3 {
    width: 28px;
    height: 3px;
    background-color: var(--primary);
    margin: 5px 0;
    transition: 0.4s;
}
@media (max-width: 767px){
    .menu-icon,
    .check-button {
		display: block;
	}
    .check-button{
        border: none;
        background: transparent;
        height: 55px;
    }
	.main-menu ul{
		position: absolute;
		width: 100%;
		background: var(--background);
		left: -999px;
		text-align: left;
		transition: all cubic-bezier(.79,.14,.15,.86) .5s;
        padding: 0;
        margin: 0;
        z-index: 1;
	}
    .main-menu ul:not(.sub-menu){
        margin-top: 55px;
    }
	.main-menu ul li{
		display: block;
		margin: 15px 0;
		line-height: 30px;
	}
	.main-menu ul li a {
		color: var(--text);
	}
    .main-menu ul.sub-menu{
        position: relative;
        top: 0;
        margin-left: 30px;
        display: block;
        width: auto;
    }
    .main-menu ul.sub-menu a{
        color: var( --text );
    } 
    .show-dropdown{
        left: 0 !important;
    }  
    .animate-button .bar1 {
        -webkit-transform: rotate(-45deg) translate(-4px, 4px);
        transform: rotate(-45deg) translate(-4px, 4px);
    }
    .animate-button .bar2 {opacity: 0;}
    .animate-button .bar3 {
        -webkit-transform: rotate(45deg) translate(-7px, -7px);
        transform: rotate(45deg) translate(-7px, -7px);
    }
}

.index-meta-boxes {
    display: flex;
    flex-direction: column;
}

.menu {
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: center;
    flex-wrap: wrap;
}

.wp-caption {
    border: 1px solid var(--secondary); 
    padding: 10px;
    background-color: var(--background);
}

.wp-caption-text {
    font-size: 12px;
    color: var(--secondary);
    text-align: center;
    margin-top: 5px;
}

.sticky {
    border-left: 4px solid var(--secondary);
    padding-left: 10px;
    background-color: var(--background);
    color: var(--secondary);
}

.gallery-caption {
    font-size: 12px;
    color: var(--secondary);
    text-align: center;
    margin-top: 5px;
}

.bypostauthor > .comment-body {
    border: 1px solid var(--borders);
    background-color: var(--background);
    padding: 10px;
}

.alignright {
    float: right;
    margin-left: 10px;
}

.alignleft {
    float: left;
    margin-right: 10px;
}

.aligncenter {
    display: block;
    margin: 0 auto;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}
 


.articles-list {
    display: flex;
    flex-direction: column;
}



@media (max-width: 767px) {

    .menu {
        flex-direction: column;
    }
    

    

    .articles-list article {
        display: flex;
        flex-direction: column;
    }

    .search-results-wrapper {
        display: flex;
        flex-direction: column;
    }

    .search-post-list article {
        display: flex;
        flex-direction: column;
    }

    .author-box {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .author-meta-box {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .author-img {
        margin-right: 0;
    }
}
  

@media (max-width: 768px) {
    .comment-author img {
        width: 50px;
        height: 50px;
    }

    .children {
        margin-left: 20px;
    }

    .comment {
        padding: 8px 0;
        margin: 8px 0;
    }

    body {
        font-size: 16px;
    }
}

.nexa-single-post a {
    text-decoration: underline;
}

.footer-column {
    width: 33.33%;
    float: left;
    box-sizing: border-box;
    padding: 2rem 0; 
}

.post-thumbnail-book {
    max-width: 400px;
    height: auto;
}

.post-thumbnail-book img {
    width: 100%;
    height: auto;
}

.menu-setup ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.menu-setup li {
    margin: 0;
    display: inline-block;
    margin: 0 10px;
}

.menu-setup a {
    text-decoration: none;
    color: var(--primary);
    font-weight: bold;
    display: block;
}

.menu-setup a:hover {
    text-decoration: underline;
}

/* footer.php */
.footer-widgets {
    display: flex;
    justify-content: space-between;
}

.footer-col {
    flex: 1;
    margin-right: 20px;
}

.footer-col:last-child {
    margin-right: 0;
}

/* hero-section.css */
.hero-section {
    position: relative;
    width: 100vw;
    min-height: 400px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text);
    margin-top: -60px;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-section h1, .hero-text, .primary-btn, .secondary-btn {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 4rem;
}

.centered-image {
    width: 50%;
    margin-bottom: 20px;
}

.hero-text {
    margin-bottom: 20px;
    font-size: 24px;
}

.primary-btn, .secondary-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    margin: 5px;
}

.primary-btn {
    background-color: var(--primary);
}

.secondary-btn {
    background-color: var(--secondary);
}
/* end: hero-section.css */

