/*
Theme Name: kumulate
Author: hunt & Hawk
Author URI:
Theme URI:
Tags: full-site-editing, block-patterns
Text Domain: kumulate
Requires at least: 6.4
Requires PHP: 7.4
Tested up to: 6.4
Version: 100.0

License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* Styles intended only for the front.*/
/*html {*/
/*	scroll-behavior: smooth;*/
/*}*/

@media screen and (prefers-reduced-motion: reduce) {

	html {
		scroll-behavior: auto;
	}
}

body {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}





/* Sinlge POST STYLING 
 * @author: WEBIS
 *  
 */

body,
.body-base, 
.body-base p {
  font-family: TT Norms Pro Variable;
	  font-size: 1.1rem;
}

ul, ol { 
	padding: 1rem;
  list-style: disc;
}

ul.list, ol { 
	padding: 0rem;
  list-style: none;
}


/* Bacgrounds */

.bg-primary-light {
    background-color: #ffeee6;
}
.bg-primary-light h2,
.bg-primary-light h3,
.bg-primary-light h4,
.bg-primary-light h5 {
	color:#000;
}


h2 {
	margin-bottom: 20px;
}


.description-bg-dark-overlay .description {
	padding: 12.5px !important;
	background-color:#00000050;
}

aside .wp-block-heading {
	color:#000;
}

/*--------------------------------------------------------------
# Single Post Layout (Main Content + Sidebar)
--------------------------------------------------------------*/

/* Wrapper section for single post. Can be used for full-width background colors etc. */
.single-post-section {
    /* Example: if you want a subtle background for the entire post area */
    background-color: #f9f9f9;
    padding: 20px 0; /* Add vertical padding for the section */
}

/* Layout container for main content and sidebar */
.container-flex {
    display: flex; /* Enable Flexbox for the main 2-column layout */
    justify-content: space-between; /* Puts space between the main content and sidebar */
    align-items: flex-start; /* Aligns items to the top */
    max-width: 1200px; /* Overall max width for your site content */
    margin: 0 auto;
    padding: 0 20px; /* Horizontal padding, vertical padding is on the section */
    gap: 30px; /* Space between main content and sidebar */
}

/* Main content area for a single post - using the #primary ID from single.php */
#primary.content-area {
    flex: 2; /* Main content takes 2 parts of available space */
    min-width: 0; /* Important for flex items to prevent overflow with long content */
    background-color: #fff; /* Keep the background for the main content */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-radius: 5px;
    padding: 20px;

    /* Make #primary a flex container for its own children, stacking them vertically */
    display: flex;
    flex-direction: column;
}

/* Adjustments for the main element inside #primary */
#main.site-main {
    padding: 0; /* Remove padding here as #primary now has it */
    flex-grow: 1; /* Allow the main content area to grow and fill available vertical space */
}

/* Article container - using the post_class() output */
article.post {
    margin-bottom: 40px; /* Keep margin for spacing below article */
    width: 100%; /* Ensure article takes full width within its flex column */
}


/* Sidebar styling - assuming it's wrapped in an ID of #secondary or a class like .widget-area */
#secondary,
.widget-area {
    flex: 1; /* Sidebar takes 1 part of available space */
    max-width: 300px; /* Optional: A fixed max-width for sidebar, adjust as needed */
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-radius: 5px;
    padding: 20px; /* Padding inside the sidebar box */
    align-self: stretch; /* Makes sidebar stretch to the height of the primary column */
}

/* Optional: Basic styling for sidebar widgets if not already present */
#secondary .widget,
.widget-area .widget {
    margin-bottom: 30px;
    padding: 0;
}

#secondary .widget-title,
.widget-area .widget-title {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

#secondary ul,
.widget-area ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#secondary ul li,
.widget-area ul li {
    margin-bottom: 8px;
}

#secondary ul li a,
.widget-area ul li a {
    text-decoration: none;
    color: #555;
    transition: color 0.2s ease-in-out;
}

#secondary ul li a:hover,
.widget-area ul li a:hover {
    color: #0073aa;
}


/*--------------------------------------------------------------
## Post and Page Grid (Block)
--------------------------------------------------------------*/
.post-bg-white {}

.gb-block-post-grid.post-bg-white header .gb-block-post-grid-title a:hover {
    text-decoration: underline;
    color: #ff5001;
}

/*--------------------------------------------------------------
## Post Header
--------------------------------------------------------------*/

.entry-header {
    margin-bottom: 25px;
    text-align: center;
}

/* Post Title */
.entry-title {
    font-size: 2.8em;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-family: 'Georgia', serif;
}

/* Post Meta Information */
.entry-meta {
    font-size: 0.9em;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.entry-meta span {
    white-space: nowrap;
}

.entry-meta a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.entry-meta a:hover {
    color: #0073aa;
}

.entry-meta .posted-on:after,
.entry-meta .byline:after,
.entry-meta .cat-links:after,
.entry-meta .tags-links:after {
    content: ' / ';
    margin-left: 15px;
    color: #ccc;
}

.entry-meta span:last-child:after {
    content: none;
}

.entry-meta .cat-links a,
.entry-meta .tags-links a {
    color: #555;
}

/* Featured Image */
.post-thumbnail {
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 5px;
}

.post-thumbnail img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    width: 100%;
}

/*--------------------------------------------------------------
## Post Content (the_content())
--------------------------------------------------------------*/

.entry-content {
    font-family: 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 1.1em;
    line-height: 1.8;
    color: #333;
    margin-bottom: 40px;
}

.entry-content p {
    margin-bottom: 1.5em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-family: 'Merriweather', serif;
    margin-top: 2em;
    margin-bottom: 1em;
    color: #333;
}

.entry-content h2 {
    font-size: 2em;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 1.5em;
}

.entry-content h3 {
    font-size: 1.6em;
}

.entry-content h4 {
    font-size: 1.3em;
}

.entry-content a {
    color: #0073aa;
    text-decoration: underline;
    transition: color 0.2s ease-in-out;
}

.entry-content a:hover {
    color: #005187;
}

.entry-content blockquote {
    margin: 2em 0;
    padding: 1.5em 2em;
    border-left: 5px solid #0073aa;
    background-color: #f9f9f9;
    font-style: italic;
    color: #555;
    position: relative;
}

.entry-content blockquote:before {
    content: '“';
    font-size: 4em;
    color: #ccc;
    position: absolute;
    top: 0.2em;
    left: 0.2em;
    line-height: 1;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5em;
    padding-left: 25px;
}

.entry-content ul li,
.entry-content ol li {
    margin-bottom: 0.5em;
}

.entry-content pre {
    background-color: #f4f4f4;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', 'Menlo', 'Courier', monospace;
    font-size: 0.9em;
    line-height: 1.5;
    margin-bottom: 1.5em;
}

.entry-content code {
    background-color: #eee;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', 'Menlo', 'Courier', monospace;
    font-size: 0.9em;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2em auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.wp-caption {
    max-width: 100%;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    padding: 10px;
    margin: 2em auto;
    text-align: center;
}

.wp-caption img {
    margin-bottom: 10px;
}

.wp-caption-text {
    font-size: 0.9em;
    color: #666;
}

.alignleft {
    display: block;
    margin-right: 1.5em;
    margin-bottom: 1em;
    float: left;
}

.alignright {
    display: block;
    margin-left: 1.5em;
    margin-bottom: 1em;
    float: right;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.entry-content:after {
    content: "";
    display: table;
    clear: both;
}

/*
.page-links {
    margin-top: 2em;
    font-size: 1.1em;
    text-align: center;
}

.page-links span {
    margin: 0 5px;
}

.page-links a {
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #555;
    border-radius: 3px;
}

.page-links a:hover {
    background-color: #f0f0f0;
}

.page-links .post-page-numbers.current {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
}
*/

/*--------------------------------------------------------------
## Post Navigation (Previous/Next)
--------------------------------------------------------------*/

.post-navigation {
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%; /* Ensure navigation takes full width within #primary */
}

.post-navigation .nav-links {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex-basis: 48%;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.post-navigation .nav-previous {
    text-align: left;
}

.post-navigation .nav-next {
    text-align: right;
}

.post-navigation .nav-previous:hover,
.post-navigation .nav-next:hover {
    background-color: #f9f9f9;
    border-color: #ddd;
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 0.8em;
    color: #777;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-navigation .nav-title {
    display: block;
    font-size: 1.1em;
    font-weight: bold;
    line-height: 1.3;
    color: #0073aa;
}

.post-navigation .nav-previous .nav-title:before {
    content: '← ';
    font-size: 0.9em;
    margin-right: 5px;
}

.post-navigation .nav-next .nav-title:after {
    content: ' →';
    font-size: 0.9em;
    margin-left: 5px;
}

/*--------------------------------------------------------------
## Author Box
--------------------------------------------------------------*/

.author-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 5px;
    background-color: #fcfcfc;
    flex-wrap: wrap;
    width: 100%; /* Ensure author box takes full width within #primary */
}

.author-avatar img {
    border-radius: 50%;
    width: 96px;
    height: 96px;
    display: block;
}

.author-description {
    flex-grow: 1;
}

.author-description h2 {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.author-description p {
    font-size: 0.95em;
    line-height: 1.6;
    color: #555;
    margin-bottom: 10px;
}

.author-link a {
    display: inline-block;
    font-size: 0.9em;
    color: #0073aa;
    text-decoration: none;
    border-bottom: 1px solid #0073aa;
    transition: all 0.2s ease-in-out;
}

.author-link a:hover {
    color: #005187;
    border-color: #005187;
}

/*--------------------------------------------------------------
## Comments Section
--------------------------------------------------------------*/

#comments {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    width: 100%; /* Ensure comments take full width within #primary */
}

#comments h2 {
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.comments-area ol.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-body {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    background-color: #fff;
    position: relative;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.comment-author .avatar {
    border-radius: 50%;
    width: 48px;
    height: 48px;
}

.comment-metadata {
    font-size: 0.85em;
    color: #777;
    margin-bottom: 10px;
}

.comment-metadata a {
    color: #777;
    text-decoration: none;
}

.comment-content p {
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 10px;
}

.reply {
    font-size: 0.9em;
    text-align: right;
}

.reply a {
    color: #0073aa;
    text-decoration: none;
    padding: 5px 10px;
    background-color: #eaf7ff;
    border-radius: 3px;
    transition: background-color 0.2s ease-in-out;
}

.reply a:hover {
    background-color: #d0e7f7;
}

.children {
    list-style: none;
    margin-left: 30px;
    margin-top: 20px;
    border-left: 3px solid #eee;
    padding-left: 15px;
}

/* Comment form styling */
#respond {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 5px;
    background-color: #f9f9f9;
}

#reply-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    text-align: center;
    color: #333;
}

.comment-form p {
    margin-bottom: 15px;
}

.comment-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: calc(100% - 20px);
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 1em;
    transition: border-color 0.2s ease-in-out;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: #0073aa;
    outline: none;
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.form-submit input[type="submit"] {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-size: 1.1em;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.form-submit input[type="submit"]:hover {
    background-color: #005187;
}

.comment-navigation {
    margin-top: 20px;
    text-align: center;
}

/*--------------------------------------------------------------
# Responsive Adjustments for Layout
--------------------------------------------------------------*/

@media (max-width: 992px) {
    /* Apply flex-direction: column to the .container for stacking */
    .container-flex {
        flex-direction: column; /* Stack columns vertically */
        align-items: center; /* Center items when stacked */
        padding: 0 15px; /* Adjust container padding for smaller screens */
    }

    /* Adjust padding for the section itself */
    .single-post-section {
        padding: 15px 0;
    }

    #primary.content-area {
        width: 100%; /* Take full width when stacked */
        margin-bottom: 30px; /* Space between content and sidebar when stacked */
        padding: 15px; /* Adjust padding for smaller screens */
    }

    #secondary,
    .widget-area {
        width: 100%; /* Take full width when stacked */
        max-width: none; /* Remove max-width restriction when stacked */
        padding: 15px; /* Adjust padding for smaller screens */
    }

    /* Other elements adjusted in previous CSS for smaller screens */
    .entry-title {
        font-size: 2.2em;
    }

    .entry-content {
        font-size: 1em;
    }

    .post-navigation .nav-previous,
    .post-navigation .nav-next {
        flex-basis: 100%;
        margin-bottom: 15px;
    }

    .post-navigation .nav-links {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .entry-title {
        font-size: 1.8em;
    }

    .entry-meta {
        flex-direction: column;
        align-items: flex-start;
        font-size: 0.8em;
        gap: 5px;
    }

    .entry-meta span:after {
        content: none;
    }

    .entry-content blockquote {
        margin: 1.5em 0;
        padding: 1em 1.5em;
    }

    .author-info {
        padding: 15px;
    }

    .comment-form input[type="text"],
    .comment-form input[type="email"],
    .comment-form input[type="url"],
    .comment-form textarea {
        width: 100%;
    }
}

/*--------------------------------------------------------------
## Accessibility and Basic Resets
--------------------------------------------------------------*/

/* Ensure images and media are never larger than their container */
embed,
iframe,
object,
video {
    max-width: 100%;
}

/* Clearfix for post elements that might contain floats */
/*
.clearfix::before,
.clearfix::after {
    content: " ";
    display: table;
}
.clearfix::after {
    clear: both;
}
*/

/* Screen reader text for accessibility */
.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;
    width: 1px;
    word-wrap: normal !important;
}
