/*---------------------------------------------------------------------------------

	Theme Name: Davis
    Text Domain: davis
	Version: 2.1.2
	Description: Davis is a teeny-tiny WordPress theme that can be used a starter theme or a really lightweight blog theme. It consists of three PHP files and weighs in at just 36 KB, excluding screenshot.png. It features the aside post format, Block Editor support, featured images, and a responsive design. Demo: https://andersnoren.se/themes/davis/
	Tags: blog, one-column, custom-menu, featured-images, post-formats, threaded-comments, translation-ready, block-styles, wide-blocks
	Author: Anders Norén
	Author URI: https://andersnoren.se
	License: GNU General Public License version 2.0
	License URI: http://www.gnu.org/licenses/gpl-2.0.html
	Theme URI: https://andersnoren.se/themes/davis-wordpress-theme/
	Requires PHP: 5.4
	Tested up to: 6.3
	
	All files, unless otherwise stated, are released under the GNU General Public License
	version 2.0 (http://www.gnu.org/licenses/gpl-2.0.html)

-----------------------------------------------------------------------------------

	0.	CSS Reset
	1.	Document Setup
	2.  Structure
	3.	Header
	4.	Blog
	5.  Entry Content
	6.	Comments
	7.	Pagination
	8.	Error 404
	9.	Footer
	10. Media Queries

----------------------------------------------------------------------------------- */


/* -------------------------------------------------------------------------------- */
/*	0. CSS Reset
/* -------------------------------------------------------------------------------- */


html, body { 
    margin: 0; 
    padding: 0; 
    height: 100%; 
    min-height: 100%; 
}

h1, h2, h3, h4, h5, h6, p, blockquote, address, cite, img, li, ol, ul, fieldset, form, label, legend, button, table, caption, tr, th, td {
	margin:0;
	padding:0;
	border:0;
	font-weight:normal;
	font-style:normal;
	font-size:100%;
	line-height:1;
	text-align:left;
}

table {
	border-collapse:collapse;
	border-spacing:0;
}

ol, ul { list-style:none; }

blockquote:before, 
blockquote:after { content:""; }

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  display: none;
}

/* Screen Reader Text */

.screen-reader-text {
	clip: rect( 1px, 1px, 1px, 1px );
	height: 1px;
	overflow: hidden;
    position: absolute !important;
    width: 1px;
}

.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;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000; /* Above WP toolbar. */
}


/* -------------------------------------------------------------------------------- */
/*	1. Document Setup
/* -------------------------------------------------------------------------------- */


/* Sonix.ai Color Scheme */
:root {
  --sonix-blue: #1e88e5;
  --sonix-dark-blue: #1565c0;
  --sonix-light-blue: #42a5f5;
  --sonix-text-dark: #212121;
  --sonix-text-gray: #757575;
  --sonix-bg-light: #fafafa;
  --sonix-border-light: #e0e0e0;
  --sonix-blue-footer: #204C75;
  --sonix-blue-footer-hover: #2F70AD;

}

body {
    background-color: #fff;
	border: none;
    color: var(--sonix-text-dark);
    font-size: 16px;
    line-height: 1.6;
}

body * {
        -webkit-box-sizing: border-box; 
        -moz-box-sizing: border-box; 
	box-sizing: border-box; 
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

a {
	text-decoration: none;
}

a {
	color: var(--sonix-blue);
	transition: color 0.2s ease;
}

a:hover {
	color: var(--sonix-dark-blue);
}

body a:hover,
body a:focus { 
	text-decoration: underline; 
}

img {
	display: block;
	height: auto;
    max-width: 100%;
}

iframe {
	display: block;
	width: 100%;
}

.clear { clear: both; }

::selection {
	background: var(--sonix-blue);
	color: #FFF;
}

input::-webkit-input-placeholder { color: var(--sonix-text-gray); }
input:-ms-input-placeholder { color: var(--sonix-text-gray); }
input::-moz-placeholder { color: var(--sonix-text-gray); }


/* -------------------------------------------------------------------------------- */
/*	2.	Structure
/* -------------------------------------------------------------------------------- */


.wrapper {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto;
}


/* -------------------------------------------------------------------------------- */
/*	3.	Site Header
/* -------------------------------------------------------------------------------- */


.site-header { 
    margin: 0 auto 100px auto;
    width: 90%;
}

.toggle-menu {
	background: none;
	border-radius: 0;
	box-shadow: none;
	font-size: 14px;
	letter-spacing: 1px;
	margin: 20px auto 0 auto;
	text-transform: uppercase;
	-moz-appearance: none;
	-webkit-appearance: none;
}

.show-menu .toggle-menu { 
	text-decoration: line-through; 
}

.site-nav { 
	margin: 20px 0 0; 
}

@media ( min-width: 620px ) {

    .toggle-menu { display: none; }

	.menu {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
	}

    .menu li { position: relative; }
    .menu > li { margin: 10px 15px 0 15px; }

    .menu .page_item_has_children > a:after,
    .menu .menu-item-has-children > a:after { 
        content: " ↓"; 
        font-family: 'Helvetica', sans-serif;
    }

    .menu ul {
        margin-left: -100px;
        position: absolute;
            left: -10000px;
            top: 15px;
        width: 200px;
		z-index: 1;
    }
    
    .menu > li > ul {
        font-size: 0.9em;
        padding-top: 20px;
    }

    .menu li ul:before {
        border: 6px solid transparent;
        border-bottom-color: #000;
        content: "";
        display: block;
        margin-left: -6px;
        position: absolute;
            left: 50%;
            top: 8px;
    }
	
    .menu ul a {
        background: #fff;
        border: 1px solid var(--sonix-border-light);
        color: var(--sonix-text-dark);
        display: block;
        padding: 12px 20px;
        text-align: left;
        transition: all 0.3s ease;
    }
    
    .menu ul a:hover {
        background: var(--sonix-bg-light);
        color: var(--sonix-blue);
        border-color: var(--sonix-blue);
    }
	

	.menu > li:hover > ul,
	.menu ul.focusable {
		left: 50%;
    }
    
    .menu ul li ul {
        margin: 0;
        padding-left: 20px;
        top: 0;
        width: 220px;
    }
    
    .menu ul li ul:before {
        border-color: transparent;
        border-right-color: #000;
        left: 14px;
        top: 18px;
    }

	.menu ul li:hover > ul,
	.menu ul ul.focusable {
        left: 200px;
    }

}

.site-header {
	text-align: center;
}

.site-header .site-title {
    font-size: 1.5em;
	font-weight: 700;
	line-height: 1;
    margin-top: 80px;
	text-align: center;
}

.site-header .site-description {
    line-height: 1.5;
	margin: 20px auto 0 auto;
	max-width: 620px;
	text-align: center;
}


/* -------------------------------------------------------------------------------- */
/*	4.	Blog
/* -------------------------------------------------------------------------------- */

.archive-title {
	font-weight: 700;
	line-height: 1.4;
	text-align: inherit;
}

.archive-description {
	margin-top: 30px;
}

.archive-description p {
	text-align: inherit;
}

.entry-title {
    line-height: 1.4;
	text-align: center;
}

.featured-image { 
    display: block;
    margin: 0 auto 30px auto; 
}

.meta {
    color: var(--sonix-text-gray);
	margin-top: 30px;
	margin-bottom: 60px;
}

.post .meta p { 
	line-height: 1.55;
    margin-bottom: 0;
    text-align: center; 
}

span.sep { margin: 0 15px; }

.meta p + p { margin-top: 15px; }

.meta a,
.meta a:hover { color: var(--sonix-text-gray); }

.sticky {}


/* -------------------------------------------------------------------------------- */
/*	5.	Entry Content
/* -------------------------------------------------------------------------------- */


.content * { max-width: 100%; }

.content a { 
	text-decoration: none;
	color: var(--sonix-blue);
	font-weight: 500;
}

.content a:hover { 
	color: var(--sonix-dark-blue);
	text-decoration: underline; 
}

.post p,
.post figure {
	margin-bottom: 30px;
	margin-top: 30px;
}


.post p {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.55;
}

.post h1,
.post h2,
.post h3,
.post h4,
.post h5,
.post h6 {
   font-weight: 700;
	margin-bottom: 30px;
	margin-top: 30px;
}

.post hr {
	border: none;
	margin: 40px 0;
    text-align: center;
}

.post hr:before { content: "***"; }

/* EDIT: Prevents there from being breathing space between .meta and the footer */
/*.post :first-child { margin-top: 0; }*/
/*.post :last-child { margin-bottom: 0; }*/

.content > ol,
.content > ul {
    margin-bottom: 30px;
}

.post ol,
.post ul {
    margin-left: 1.5rem;
}

.post ul { list-style: disc; }
.post ul ul { list-style: circle; }
.post ul ul ul { list-style: square; }

.post ol { list-style: decimal; }
.post ol ol { list-style: lower-alpha; }
.post ol ol ol { list-style: lower-roman; }

.post li {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.55;
  margin-top: 0.5em;
}
.post .post-faq {
  margin-top: 5rem;
  padding: 2.5rem;
  background-color: #d1e7f9;
  border-radius: 1.5rem;
}
.post .post-faq h2 {
  margin-bottom: 2rem;
}
.post .post-faq h3 {
  overflow-wrap: normal;
  margin-bottom: 1.25rem;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
}
.post .post-faq p {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

/* Single Posts ----------------------------- */
/* Adjust heading sizes on single post pages only */

.single h1 {
  font-size: 2.25rem;
  line-height: 1.3;
}

.single h2 {
  font-size: 1.75rem;
  line-height: 1.4;
}

.single h3 {
  font-size: 1.55rem;
  line-height: 1.3;
}

.single h4 {
  font-size: 1.15rem;
  line-height: 1.2;
  text-transform: uppercase;
}



dd,
dt {
	line-height: 1.5;
}

dd + dt { margin-top: 15px; }

pre {
	font-family: Menlo, monospace;
	font-size: 0.9em;
	line-height: 1.5;
	white-space: pre-wrap;       /* css-3 */
	word-wrap: break-word;       /* Internet Explorer 5.5+ */
}

/* Quotes ----------------------------- */

blockquote {
	border-left: 3px solid var(--sonix-blue);
    margin: 0 0 30px 0;
    padding: 0 0 0 20px;
    background-color: var(--sonix-bg-light);
    padding: 20px 20px 20px 30px;
    border-radius: 4px;
}

blockquote p { font-style: italic; }

blockquote cite:before { content: "— "; }

/* Media ------------------------------ */

figure {
	margin: 0;
}

.alignleft,
.alignright {
	margin-bottom: 20px;
    max-width: 50%;
}

.alignleft {
	float: left;
	margin-right: 20px;
}

.alignright {
	float: right;
	margin-left: 30px;
}

.aligncenter,
.alignnone,
.alignwide,
.alignfull { 
	margin: 0 auto 30px auto; 
}

figcaption,
.gallery-caption,
.wp-caption-text {
    font-size: 0.9em;
    font-style: italic;
	margin-top: 10px;
}

.aligncenter .wp-caption-text { text-align: center; }
.alignright .wp-caption-text { text-align: right; }

/* GUTENBERG CLASSES */

.alignfull {
	position: relative;
		left: calc( 50% - 50vw );
	max-width: 100vw;
	width: 100vw;
}

/* Inputs ----------------------------- */

fieldset {
    border: 1px solid #ddd;
	padding: 25px;
}

fieldset legend {
    font-size: 0.9em;
    font-style: italic;
	padding: 0 15px;
}

label {
	font-size: 0.9em;
    font-style: italic;
    margin-bottom: 10px;
}

textarea,
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="text"],
input[type="url"] {
    border: 1px solid var(--sonix-border-light);
    border-radius: 4px;
    color: var(--sonix-text-dark);
	display: block;
	font-size: 1em;
    margin: 0 0 15px 0;
    padding: 12px 16px;
    width: 100%;
    transition: border-color 0.3s ease;
}

textarea:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="text"]:focus,
input[type="url"]:focus {
    border-color: var(--sonix-blue);
    outline: none;
}

textarea {
    line-height: 1.5;
	height: 200px;
}

input.button,
input[type="button"],
input[type="submit"] {
	background: var(--sonix-blue);
    border: none;
    border-radius: 4px;
    color: #fff;
    display: inline-block;
	font-size: 14px;
	font-weight: 500;
    padding: 12px 24px;
    transition: all 0.3s ease;
    cursor: pointer;
	-moz-appearance: none;
	-webkit-appearance: none;
}

input[type="button"]:hover,
input.button:hover,
input[type="submit"]:hover {
	background: var(--sonix-dark-blue);
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Tables ----------------------------- */

table {
	border-collapse: collapse;
    border-spacing: 0;
    empty-cells: show;
    font-size: 0.9em;
    margin-bottom: 30px;
    max-width: 100%;
    overflow: hidden;
    width: 100%;
}

th,
td {
    line-height: 1.4;
	margin: 0;
	overflow: visible;
    padding: 2.5%;
}

caption {
    border-bottom: 1px solid #ddd;
	font-size: 13px;
	font-weight: 700;
    padding-bottom: 2.5%;
	text-align: center;
	text-transform: uppercase;
}

thead {
	vertical-align: bottom;
	white-space: nowrap;
}

th { 
	border-bottom: 1px solid #ddd;
	font-weight: 700; 
}

tbody > tr:nth-child(even) { background-color: #f6f6f6; }

/* Block Editor Accent Colors ---------------- */

.has-background { background-color: var(--sonix-blue); }

.has-black-color { color: var(--sonix-text-dark); }
.has-black-background-color { background-color: var(--sonix-text-dark); }

.has-white-color { color: #fff; }
.has-white-background-color { background-color: #fff; }

/* Block: Image ------------------------------ */

.wp-block-image .aligncenter > figcaption, 
.wp-block-image .alignleft > figcaption, 
.wp-block-image .alignright > figcaption, 
.wp-block-image.is-resized > figcaption {
	display: block;
	width: 100%;
}

/* Block: File --------------------------------------- */

.wp-block-file {
	align-items: center;
	display: flex;
	justify-content: space-between;
	margin: 30px 0;
}

.wp-block-file a:not(.wp-block-file__button) {
	text-decoration: none;
}

.wp-block-file__button:hover,
.wp-block-button__link:hover {
	opacity: .85;
	text-decoration: none;
}

/* Block: Quote --------------------------------------- */

.wp-block-quote.is-large {
	margin-bottom: 30px;
}

.wp-block-quote.is-large p, 
.wp-block-quote.is-style-large p {
	font-size: 1.33em;
	line-height: 1.5;
}

/* Block: Pullquote --------------------------------------- */

.wp-block-pullquote {
	padding: 0;
}

/* Block: Gallery --------------------------------------- */

.wp-block-gallery .blocks-gallery-image figcaption, 
.wp-block-gallery .blocks-gallery-item figcaption {
	margin: 0;
	padding-bottom: 10px;
}

.wp-block-gallery.alignfull {
	padding: 0 8px;
}

ul.wp-block-gallery:not(.alignright) {
	margin-left: 0;
}

/* Block: Cover Image --------------------------------------- */

.wp-block-cover-image.alignfull {
	min-height: 75vh;
}

/* Block: Column --------------------------------------- */

.wp-block-column {
	padding: 0 5px;
}

/* Block: Audio --------------------------------------- */

.wp-block-audio audio {
	width: 100%;
}


/* -------------------------------------------------------------------------------- */
/*	6.	Comments
/* -------------------------------------------------------------------------------- */


.comments-closed { text-align: center; }

.comment { margin-top: 40px; }

.comment a { text-decoration: underline; }

.commentlist > .comment:first-child { margin-top: 0; }

.comment .comment { margin: 40px 0 0 30px; }

.comment-author a,
.comment-meta a,
.comment .reply a {
    text-decoration: none;
}

.comment-author {
    padding-left: 50px;
    position: relative;
}

.bypostauthor .comment-author cite { font-weight: 700; }

.comment-author .says { display: none; }

.comment-author .avatar {
    position: absolute;
        left: 0;
        top: 1px;
    width: 40px;
}

.comment-awaiting-moderation {
    font-size: 14px;
    font-style: italic;
    padding-left: 50px;
}

.comment-meta { 
    font-size: 14px;
    margin: 2px 0 20px 0;
    padding-left: 50px;
}

.comment-meta a,
.comment-meta a:hover { color: var(--sonix-text-gray); }

.comment .reply {
    font-size: 14px;
    font-style: italic;
    margin-top: 15px;
    text-align: right;
}

.comment .reply a { color: var(--sonix-text-gray); }
.comment .reply a:hover { text-decoration: underline; }

/* Respond ---------------------------- */

.comment-respond p + p { margin-top: 20px; }

.post .comment-reply-title { text-align: center; }

.logged-in-as { 
    margin: -10px 0 30px; 
    text-align: center;
}

.comment-respond label { display: block; }


/* -------------------------------------------------------------------------------- */
/*	7.	Pagination
/* -------------------------------------------------------------------------------- */


.pagination { 
    text-align: center;
    margin: 60px 0;
    padding: 40px 0;
    /*border-top: 1px solid var(--sonix-border-light);*/
}

.pagination a {
    display: inline-block;
    padding: 12px 24px;
    margin: 0 10px;
    background-color: var(--sonix-text-gray);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.pagination a:hover {
    background-color: var(--sonix-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    color: #fff;
    text-decoration: none;
}

.pagination a:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Mobile responsive pagination */
@media (max-width: 620px) {
    .pagination {
        margin: 40px 0;
        padding: 30px 0;
    }
    
    .pagination a {
        padding: 10px 18px;
        margin: 0 5px;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .pagination {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .pagination a {
        margin: 0;
        flex: 0 1 auto;
    }
}


/* -------------------------------------------------------------------------------- */
/*	8.	Error 404
/* -------------------------------------------------------------------------------- */


.error404 .post p {
	text-align: center;
}


/* -------------------------------------------------------------------------------- */
/*	9.	Footer
/* -------------------------------------------------------------------------------- */


.site-footer { 
	padding: 0 0 80px;
	text-align: center;
}

.site-footer p { 
    line-height: 1;
	text-align: center; 
}

.site-footer p + p { 
    font-style: italic;
    margin-top: 15px; 
}


/* -------------------------------------------------------------------------------- */
/*	10.	Media Queries
/* -------------------------------------------------------------------------------- */


@media ( max-width: 620px ) {

    body { font-size: 16px; }
    
    .toggle-menu {
		display: block;
	}
    
    .site-nav { 
        display: none;
        margin: 20px 0 0;
    }
    
    .menu li {
        line-height: 1.5;
        text-align: center;
    }
    
    .menu li li { font-style: italic; }
    
    .show-menu .site-nav { display: block; }
    
    .site-header { margin-bottom: 40px; }
    
    .site-header .site-title { margin-top: 40px; }
    
    .post:before,
    .comments:before,
    .comment-respond:before,
    .comments .comment-respond:after,
    .pagination:before,
    .site-footer:before {
        margin: 50px auto;
    }
    
    .featured-image {
        margin-left: -50vw;
        position: relative;
            left: 50%;
        width: 100vw;
    }
    
    span.sep { margin: 0 10px; }
    
    .pagination a + a { margin-left: 20px; }
    
    .site-footer { padding-bottom: 50px; }

}

@media ( max-width: 500px ) {

    .post:before, 
    .comments:before, 
    .comment-respond:before, 
    .comments .comment-respond:after, 
    .pagination:before, 
    .site-footer:before {
        margin: 30px auto;
    }

}


/* -------------------------------------------------------------------------------- */
/*	11.	Beehiiv Archive / Feed Style
/* -------------------------------------------------------------------------------- */

.archive-container {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.archive-header {
    margin-bottom: 40px;
    text-align: center;
}

.archive-title {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 15px;
}

.archive-description {
    color: var(--sonix-text-gray);
    margin: 0 auto;
    max-width: 600px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}

.grid-post {
    background: #fff;
    border-radius: 4px;
    border: 1px solid var(--sonix-border-light);
    overflow: hidden;
    transition: all 0.3s ease;
}

.grid-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: var(--sonix-blue);
}

.grid-post-thumbnail {
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.grid-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.grid-post:hover .grid-post-thumbnail img {
    transform: scale(1.05);
}

.grid-post-content {
    padding: 25px;
}

.grid-post-title {
    font-size: 1.3em;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 15px;
}

.grid-post-title a {
    color: var(--sonix-text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.grid-post-title a:hover {
    color: var(--sonix-blue);
}

.grid-post-meta {
    color: var(--sonix-text-gray);
    font-size: 0.875em;
    margin-bottom: 15px;
}

.grid-post-meta span:not(:last-child)::after {
    content: "•";
    margin: 0 5px;
}

.grid-post-excerpt {
    color: var(--sonix-text-gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.grid-post-excerpt p {
    margin: 0;
}

.read-more {
    background-color: var(--sonix-blue);
    border-radius: 4px;
    color: #fff;
    display: inline-block;
    font-size: 0.875em;
    font-weight: 500;
    padding: 10px 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more:hover {
    background-color: var(--sonix-dark-blue);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 500px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .grid-post-thumbnail {
        height: 180px;
    }
}

/* -------------------------------------------------------------------------------- */
/*	12.	Sonix Footer Style
/* -------------------------------------------------------------------------------- */

.footer-sonix {
    background-color: #1a2332;
    padding: 2rem 0 2rem;
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #ffffff;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.footer-cta {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	padding: 4rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	margin-bottom: 2rem;
}
.footer-cta h2 {
	color: rgba(61, 146, 224, 0.4);
	font-size: 3rem;
	font-weight: 800;
	line-height: 1.1;
	text-transform: uppercase;
}


.footer-cta .btn-outline {
  border: 2px solid var(--sonix-blue-footer);
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 500;
  background-color: transparent;
  color: var(--sonix-blue);
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-cta .btn-outline:hover {
  background-color: var(--sonix-blue-footer-hover);
  color: #fff;
  text-decoration: none;
}

.footer-cta .btn-filled {
  background-color: var(--sonix-blue-footer);
  border: 2px solid var(--sonix-blue-footer);
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-cta .btn-filled:hover {
  background-color: var(--sonix-blue-footer-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-decoration: none;
}




.footer-content {
    margin-bottom: 3rem;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-column h3 {
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #b8c5d6;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
}


.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-logo-bottom {
    width: 80px;
    height: 24px;
}

.footer-logo-link {
    display: inline-block;
    line-height: 0;
}

.footer-logo-link:hover {
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.footer-copyright {
    color: #b8c5d6;
    font-size: 0.813rem;
    margin: 0;
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
}

.footer-legal-links a {
    color: #b8c5d6;
    font-size: 0.813rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal-links a:hover {
    color: #ffffff;
}

/* Responsive Footer Styles */
@media (max-width: 768px) {
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-logo-section {
        align-items: center;
    }
    
    .footer-legal-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-column {
        text-align: center;
    }
}


/* Masonry Grid Styles */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.masonry-grid .grid-post {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.masonry-grid .grid-post-thumbnail {
    height: 220px;
}

.masonry-grid .grid-post-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.masonry-grid .grid-post-title {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.masonry-grid .grid-post-meta {
    margin-top: auto;
    font-size: 0.8em;
}

/* Responsive masonry grid */
@media (max-width: 1024px) {
    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .masonry-grid {
        grid-template-columns: 1fr;
    }
    
    .masonry-grid .grid-post-thumbnail {
        height: 200px;
    }
}

/* Force .wrapper to allow full-width grid */
.wrapper {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto;
}

/* Restrict width on single post pages */
.single .wrapper {
  max-width: 620px !important;
}

/* Import Google Fonts - Matching Sonix.ai */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Roboto+Mono:wght@400;700&display=swap');

/* Apply Lato to all text - matching Sonix.ai */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-weight: 700;
}

/* Apply Lato to body text */
body, p, li, blockquote, figcaption, input, textarea {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-weight: 400;
}

/* Use Lato for nav and utility text */
nav, .site-header, .site-footer, .button, .btn, input[type="submit"] {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Ensure font styling for any form elements */
input, select, textarea {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Layout container */
.custom-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 5%;
  border-bottom: 1px solid var(--sonix-border-light);
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Left section: Logo + Name */
.header-left {
  display: flex;
  align-items: center;
}

.site-logo {
  width: 121px;
  height: 36px;
  margin-right: 10px;
}

.site-name {
  font-weight: bold;
  font-size: 1rem;
}

.site-name-link {
  text-decoration: none;
  color: var(--sonix-text-dark);
  transition: color 0.3s ease;
}

.site-name-link:hover {
  color: var(--sonix-blue);
  text-decoration: none;
}

.logo-link {
  display: inline-flex;
  align-items: center;
}

.logo-link:hover {
  text-decoration: none;
}

/* Center nav links */
.header-nav .main-menu {
  display: flex;
  gap: 25px;
  list-style: none;
}

.header-nav .main-menu li a {
  color: var(--sonix-text-dark);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.header-nav .main-menu li a:hover {
  color: var(--sonix-blue);
  text-decoration: none;
}

/* Right buttons */
.header-right {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-outline {
  border: 2px solid var(--sonix-blue);
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 500;
  background-color: transparent;
  color: var(--sonix-blue);
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-outline:hover {
  background-color: var(--sonix-blue);
  color: #fff;
  text-decoration: none;
}

.btn-filled {
  background-color: var(--sonix-blue);
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.9rem;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-filled:hover {
  background-color: var(--sonix-dark-blue);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-decoration: none;
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .header-nav {
    display: none; /* collapse nav on small screens */
  }
}

