/*
Theme Name: Easy Writer
Author: Josef Salazar
Author URI: www.josefsalazar.com
Description: Easy Writer is a WordPress theme designed with bloggers in mind. It offers a clean layout that shows your blog articles in a simple manner. It has a range of customizable options, you have the flexibility to tailor Easy Writer to fit your unique style and preferences.
Requires at least: 5.3
Tested up to: 6.3
Requires PHP: 5.6
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: easy-writer
Tags: accessibility-ready, custom-colors, custom-menu, custom-logo, editor-style, featured-images, threaded-comments
*/



@import url('css/design.css');
@import url('css/responsiveness.css');
@import url('css/layout.css');
@import url('assets/font-awesome/css/all.min.css');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Montserrat';
    src: url(assets/Montserrat/static/Montserrat-Regular.ttf);
}

body {
    line-height: 2;
    margin: 0;
    padding: 0;
}


.single-article, .boxed-template-main {
    font-size: 20px;
}

.single-article h1, .boxed-template-main h1 {
    font-size: 32px;
    font-weight: bold;
    margin: 30px 0;
}

.single-article h2, .boxed-template-main h2 {
    font-size: 28px;
    font-weight: bold;
    margin: 30px 0;
}

.single-article h3, .boxed-template-main h3 {
    font-size: 24px;
    font-weight: bold;
    margin: 30px 0;
}

.single-article h4, .boxed-template-main h4 {
    font-size: 22px;
    font-weight: bold;
    margin: 30px 0;
}

.single-article h5, .boxed-template-main h5 {
    font-size: 20px;
    font-weight: bold;
    margin: 30px 0;
}

.single-article h6, .boxed-template-main h6 {
    font-size: 18px;
    font-weight: bold;
    margin: 30px 0;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
}

.navbar, .hero, .main-container, .bottom-footer {
    width: 100%;
}

.navbar {
    max-width: 70rem;
    margin-inline: auto;
    padding: 1.5rem;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    margin-top: 10px;
    margin-bottom: 10px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.menu li {
    display: inline;
}

.menu a {
    text-decoration: none;
    padding: 0.5rem 1rem;
}

.hero {
    position: relative;
    width: 100%;
}



.header-img-margin {
    width: 100%;
    height: auto;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero img {
    width: 100%;
    height: auto;
}

.main-container {
    display: flex;
    justify-content: space-between;
    max-width: var(--main-width);
    padding-inline: 1rem;
    margin-inline: auto;
}

.featured-posts-container {
    max-width: var(--main-width);
    padding-inline: 1rem;
    margin-inline: auto;
    margin-bottom: 20px;
}

.main-articles-section {
    flex: 2;
    margin-right: 20px;
}

aside {
    flex: 0 1 30%;
}


.main-article {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    
}

.article-title a {
    text-decoration: none;
}

.article-meta span {
    margin-right: 10px;
}

.article-excerpt {
    text-align: center;
}

.article-button {
    text-decoration: none;
    padding: 5px 10px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em 0;
}

.newer, .older {
    
    text-align: center;
    padding: 0.5em;
    transition: background-color 0.3s ease;
}

.newer:hover, .older:hover {
}

.newer {
    text-align: left;
}

.older {
    text-align: right;
}

.bottom-footer {
    padding: 20px 0;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-content {
    text-align: center;
    max-width: 400px;
    border-top: 1px solid white;
    margin: 0 auto;
}

.blog-article-container {
    display: flex;
    justify-content: space-between;
    max-width: var(--main-width);
    padding-inline: 1rem;
    margin-inline: auto;
    margin-top: 40px;
    gap: 2rem;
}

.footer-menu {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    
}

.footer-menu * {
    color: #fff !important;
}


.single-article-section {
    flex: 0 1 75%;
}

.single-article-section:first-child {
    flex-grow: 1 !important;
}

.single-article {
    margin-bottom: 40px;
}

.article-title {
    font-size: 2em;
    margin-bottom: 15px;
    text-align: center;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8em;
    margin-bottom: 20px;
}

.article-content {
    margin-bottom: 40px;
}

.author-box {
    display: flex;
    align-items: center;
    padding-top: 20px;
    margin-top: 40px;
}

.author-avatar {
    flex-shrink: 0; 
    flex-grow: 0;
    width: 20%;
    margin-right: 20px;
}

.author-avatar img {
    width: 100%;
    height: 100%;
}

.author-info h3 {
    margin: 0;
    font-size: 1.2em;
}

.author-info p {
    margin-top: 10px;
    font-size: 0.8em;
    color: #777;
}

.error-404-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
    text-align: center;
    border-radius: 10px;
    padding: 40px;
}

.article-meta-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
    padding: 20px;

}

.error-404-section {
    margin: 40px auto;
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border: 1px solid var(--thir-color);
    border-radius: 5px;
    background-color: var(--primary-color);
}

.error-title {
    font-size: 96px;
    margin-bottom: 10px;
    letter-spacing: -2px;
    line-height: 1;
}

.error-message {
    font-size: 18px;
}

@keyframes bounceIn {
    0% { transform: scale(0.95); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.error-404-container {
    animation: bounceIn 0.5s forwards;
}

.sidebar {
    width: 100%;
    box-sizing: border-box;
    padding: 0 1rem;
}

.main-sidebar {
    display: flex;
    flex-direction: column;
}

.sidebar-widget-gradient {
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    gap: 0.5rem;
}

.new-posts-container{
    flex: 0 0 40%;
    height: auto;
    width: 150px;
}

.post-thumb {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.sidebar-widget ul {
    list-style: none;
    
}

.sidebar-widget ul li {
    margin-bottom: 10px;
}

.sidebar-widget ul li a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

.sidebar-widget ul li a:hover {
    text-decoration: underline;
}

.sidebar-widget form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-widget input[type="email"] {
    padding: 10px;
    border-radius: 5px;
}

.sidebar-widget button {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s ease;
}

.comment-respond {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.comment-reply-title {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: bold;
}

.comment-reply-title small {
    font-size: 14px;
    font-weight: normal;
}

.comment-reply-title a {
    text-decoration: none;
    margin-left: 10px;
}

.logged-in-as {
    font-size: 12px;
    margin-bottom: 10px;
}

.logged-in-as a {
    text-decoration: none;
}

.required-field-message {
    display: block;
    margin-top: 10px;
    font-size: 12px;
}

.required {
    color: red;
}

.comment-form-comment {
    margin-bottom: 15px;
}

.comment-form-comment label {
    display: block;
    margin-bottom: 5px;
}

.comment-form-comment textarea {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    resize: vertical;
}

.form-submit {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.submit {
    padding: 10px 20px;
    cursor: pointer;
    border: none;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
    box-sizing: border-box;
}

.common-template-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 0 1 75%;
}

p {
    margin: 0 0 15px;
    padding: 0;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.searchbox {
    position: relative;
}

.searchbox input[type="text"] {
    background: transparent;
    border: none;
    color: #fff;
    text-align: center;

    outline: none;
    padding: 5px 0;
    width: 100%;
    font-size: 2rem;
}

.searchbox input[type="submit"] {
    background-color: #000;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 5px 10px;
    margin-left: 5px;
    transition: background-color 0.3s;
    display: none;

}

.searchbox input[type="submit"]:hover {
    background-color: #333;
    display: none;
}


#s {
    flex-grow: 1;
    padding: 10px 15px;
    border-radius: 4px;
    margin-right: 10px;
    outline: none;
    transition: border-color 0.3s ease;
}

#searchsubmit {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.related-posts-section {
    margin: 40px 0;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.related-posts-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    place-items: center;
    gap: 20px;
    margin: 0 auto;
}

.related-post-item {
    padding: 10px;
}

.related-post-item img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
}

.related-post-item h4 {
    margin-top: 10px;
    font-size: 18px;
    transition: color 0.3s;
    border-top: 2px solid var(--thir-color);
    border-bottom: 2px solid var(--thir-color);
    text-align: center;
}

.sidebar-widget img {
}

.social-sharing-icons {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    justify-content: center;
    padding: 10px
}

.social-sharing-icons a {
    font-size: 1.5rem;
    color: #fff;
    transition: color 0.3s ease;
    opacity: 0.8;
}

.social-sharing-icons a:hover {
    color: var(--thir-color)
}

.social-sharing-icons-post {
    display: inline-flex;
    flex-direction: row;
    gap: 15px;
    align-items: center;
    justify-content: start;
    padding: 10px;
    border-top: 1px solid #cdcdcd;
}

.social-sharing-icons-post a {
    font-size: 1.2rem;
    color: black;
    transition: color 0.3s ease;
}

.social-sharing-icons-post a:hover {
    color: var(--thir-color)
}

.header-img-margin {
    margin-bottom: 20px;
}

.close-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    font-size: 24px; 
    color: #fff; 
}

.featured-posts-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; 
}

.featured-post {
    flex: 0 0 calc(33.33% - 10px);
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    margin-right: 10px;
}



.post-thumbnail {
    position: relative;
    width: 100%;
    max-height: 400px;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    display: block;
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    transition: all 0.3s;
}

.overlay h2 a {
    color: #fff;
    text-decoration: none;
}

.overlay h2 a:hover {
    color: #eee;
    text-decoration: underline;
}

.custom-logo-link {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.single-container {
    width: 100%;
    height: 400px;
}

.main-header-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-header-container {
    width: 100%;
    height: 400px;
    margin-bottom: 20px;
}

.single-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.commentlist {
    list-style: none;
    padding-left: 0;
}

.comment-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid #c7c7c7;
    padding: 15px;
    margin: 15px 0;
}

.comment-author.vcard {
    display: flex;
    align-items: center; 
}

.avatar {
    border-radius: 50%; 
    margin-right: 10px;
}

.fn {
    margin-right: 5px;
}

.comment-meta.commentmetadata {
    display: flex;
    justify-content: start; 
    gap: 10px; 
    font-size: 0.85em;
    color: #777; 
}

.reply {
    display: flex;
    justify-content: flex-start;
}

.logo-container {
    width: 100%;
}