/*
Theme Name: Crypto Tax Compass Theme
Theme URI: https://weblish.dev
Description: A professional WordPress theme for Crypto Tax Compass – helping crypto users understand taxes in a clear, practical way.
Author: Weblish
Author URI: https://weblish.dev
Version: 1774867509
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cryptotax
Tags: blog, one-column, two-columns, right-sidebar, custom-menu, featured-images, theme-options, translation-ready, education, finance

Crypto Tax Compass Theme - Clear crypto tax guidance for everyone.
*/

/* 
 * Note: Main styles are loaded from css/syeds-spectacular-site-9e1361.webflow.css
 * This file contains only the WordPress theme header and any WordPress-specific overrides
 */

/* WordPress Specific Overrides */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

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

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

/* Screen Reader Text */
.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;
}

.screen-reader-text:focus {
    background-color: #eee;
    clip: auto !important;
    clip-path: none;
    color: #444;
    display: block;
    font-size: 1em;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Post Navigation */
.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e8e8e8;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    max-width: 45%;
}

.post-navigation .nav-previous a,
.post-navigation .nav-next a {
    color: #10273e;
    text-decoration: none;
}

.post-navigation .nav-previous a:hover,
.post-navigation .nav-next a:hover {
    color: #f2a537;
}

/* Pagination */
.pagination {
    margin-top: 60px;
    text-align: center;
}

.pagination .nav-links {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 20px 30px;
    background-color: #fff;
    border: 1px solid #e8e8e8;
}

.pagination a.page-numbers,
.pagination span.page-numbers {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Poppins, sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a.page-numbers {
    color: #616161;
    border: 1px solid #e8e8e8;
}

.pagination a.page-numbers:hover {
    background-color: #f2a537;
    color: #fff;
    border-color: #f2a537;
}

.pagination span.page-numbers.current {
    background-color: #10273e;
    color: #fff;
    font-weight: 600;
}

.pagination span.page-numbers.dots {
    border: none;
    color: #ccc;
}

.pagination a.prev,
.pagination a.next {
    width: auto;
    padding: 10px 20px;
    border: 2px solid #10273e;
    color: #10273e;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

.pagination a.prev:hover,
.pagination a.next:hover {
    background-color: #10273e;
    color: #fff;
}

/* Comments */
.comments-area {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #e8e8e8;
}

.comments-area h2.comments-title {
    font-size: 24px;
    margin-bottom: 30px;
}

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

.comment-body {
    padding: 20px;
    margin-bottom: 20px;
    background-color: #f8f8f8;
    border-radius: 4px;
}

.comment-author img {
    border-radius: 50%;
    margin-right: 10px;
}

.comment-content p {
    margin-top: 10px;
}

.comment-reply-link {
    color: #10273e;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Comment Form */
.comment-respond {
    margin-top: 40px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e8e8e8;
    font-family: inherit;
    font-size: 14px;
    margin-bottom: 15px;
}

.comment-form input[type="submit"] {
    background-color: #10273e;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

/* Widget Styles */
.widget {
    margin-bottom: 30px;
}

.widget-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8e8e8;
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: #616161;
    text-decoration: none;
}

.widget ul li a:hover {
    color: #f2a537;
}

/* Search Widget */
.search-form {
    display: flex;
}

.search-form .search-field {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #e8e8e8;
    border-right: none;
}

.search-form .search-submit {
    background-color: #10273e;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}

/* Category Widget */
.widget_categories ul li {
    display: flex;
    justify-content: space-between;
}

.widget_categories ul li .count {
    color: #999;
}

/* Sticky Post */
.sticky {
    border: 2px solid #10273e;
}

/* Block Editor Styles */
.wp-block-image {
    margin-bottom: 1.5em;
}

.wp-block-quote {
    border-left: 4px solid #10273e;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
}

.wp-block-quote cite {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: #999;
}

/* Fix for webflow form styles in WordPress */
.w-form-done,
.w-form-fail {
    display: none;
}

/* Related Articles - Equal Height Cards */
.highlighted-articles .w-dyn-items.w-row {
    display: flex;
    flex-wrap: wrap;
}

.highlighted-articles .w-dyn-item.w-col.w-col-4 {
    display: flex;
}

.highlighted-articles .highlighted-wrapper {
    display: flex;
    width: 100%;
    min-height: 280px;
}

.highlighted-articles .highlighted-wrapper .banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* Blog title text overflow fix */
.blog-title,
.highlighted-articles h3 a,
.highlighted-articles h3,
.highlighted-wrapper h3 a,
.highlighted-wrapper h3 {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.highlighted-articles .blog-title-featured {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    display: block;
}

/* Latest Post section responsive */
.latest-post-content {
    overflow: hidden;
}

.latest-post-content h3 {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

/* Responsive blog card grid */
@media screen and (max-width: 767px) {
    .section [style*="flex: 0 0 calc(33.333%"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .highlighted-articles {
        padding: 25px 15px 20px !important;
    }

    .highlighted-articles .w-dyn-items.w-row {
        display: flex;
        flex-direction: column;
    }

    .highlighted-articles .w-dyn-item.w-col.w-col-4 {
        width: 100% !important;
        margin-bottom: 15px;
    }

    .highlighted-articles .w-col.w-col-6 {
        width: 100% !important;
    }

    .latest-post-content {
        padding: 15px 10px !important;
    }

    .latest-post-content .blog-title-featured {
        font-size: 20px !important;
        line-height: 1.4 !important;
    }

    .latest-post-content p {
        font-size: 14px !important;
    }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
    .section [style*="flex: 0 0 calc(33.333%"] {
        flex: 0 0 calc(50% - 10px) !important;
        max-width: calc(50% - 10px) !important;
    }

    .highlighted-articles {
        padding: 30px 20px 25px !important;
    }

    .latest-post-content .blog-title-featured {
        font-size: 22px !important;
        line-height: 1.35 !important;
    }
}

@media screen and (max-width: 479px) {
    .highlighted-articles {
        padding: 20px 12px 15px !important;
    }

    .highlighted-articles .highlighted-title {
        font-size: 18px !important;
    }

    .latest-post-content {
        padding: 12px 8px !important;
    }

    .latest-post-content .blog-title-featured {
        font-size: 18px !important;
        line-height: 1.4 !important;
    }

    .latest-post-content .latest-post-excerpt {
        font-size: 13px !important;
        line-height: 1.6 !important;
    }
}
