/*
Theme Name: Wise
Theme URI: https://toolwise.com
Author: Wise Team
Author URI: https://toolwise.com/
Description: High Performance Affiliate Theme - Built for E-E-A-T and Speed.
Version: 2.1.0
Text Domain: wise
*/
:root {
    --wise-font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --wise-h1: 2.25rem;
    --wise-h2: 1.75rem;
    --wise-h3: 1.375rem;
    --wise-h4: 1.125rem;
    --wise-h5: 1rem;
    --wise-h6: 0.875rem;
    --wise-body: 1rem;
    --wise-small: 0.875rem;
    --wise-bg: #F8FAFC;
    --wise-surface: #FFFFFF;
    --wise-text-main: #0F172A;
    --wise-text-muted: #64748B;
    --wise-primary: #2563EB;
    --wise-border: #E2E8F0;
    --wise-shadow-sm: 0 1px 2px 0 rgb(15 23 42 / 0.05);
    --wise-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --wise-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

body {
    font-family: var(--wise-font-primary) !important;
    color: var(--wise-text-main);
    background-color: var(--wise-bg);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--wise-font-primary) !important;
    line-height: 1.2;
    font-weight: 700;
    margin-top: 0;
}

h1 {
    font-size: var(--wise-h1) !important;
}

h2 {
    font-size: var(--wise-h2) !important;
}

h3 {
    font-size: var(--wise-h3) !important;
}

h4 {
    font-size: var(--wise-h4) !important;
}

h5 {
    font-size: var(--wise-h5) !important;
}

h6 {
    font-size: var(--wise-h6) !important;
}

.orbital-posts-grid,
.archive .post-listing,
.blog .post-listing,
.search .post-listing,
.site-main .entry-item {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)) !important;
    gap: 2rem !important;
}

@media (max-width:768px) {

    .orbital-posts-grid,
    .archive .post-listing,
    .blog .post-listing,
    .search .post-listing,
    .site-main .entry-item {
        grid-template-columns: 1fr !important;
    }
}

.wise-card {
    background: var(--wise-surface);
    border: 1px solid var(--wise-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.wise-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--wise-shadow-lg);
    border-color: var(--wise-primary);
}

.wise-card-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.wise-card-image img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.wise-card:hover .wise-card-image img {
    transform: scale(1.05);
}

.wise-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.wise-card-title {
    font-size: var(--wise-h4) !important;
    margin-bottom: 0.5rem;
}

.wise-card-title a {
    color: var(--wise-text-main);
    text-decoration: none !important;
}

.wise-card a,
.wise-card-title a,
.wise-meta-container a,
.wise-author-link,
.wise-related-link,
.wise-related-card-title {
    text-decoration: none !important;
}

.wise-card-excerpt {
    font-size: var(--wise-body);
    color: var(--wise-text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.wise-meta-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--wise-small);
    color: var(--wise-text-muted);
    margin-bottom: 1rem;
}

.wise-meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.wise-author-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--wise-text-main);
    font-weight: 600;
    text-decoration: none;
}

.wise-author img.avatar {
    border-radius: 50%;
    width: 24px;
    height: 24px;
}

.wise-meta-sep {
    color: var(--wise-border);
}

.wise-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--wise-surface);
    border: 1px solid var(--wise-border);
    border-radius: 6px;
    color: var(--wise-text-main);
    font-weight: 600;
    font-size: var(--wise-small);
    text-decoration: none;
    margin-top: auto;
    align-self: flex-start;
}

.wise-btn:hover {
    background: var(--wise-bg);
    border-color: var(--wise-text-muted);
}

.wise-card-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
}

.wise-card-category-badge a {
    display: inline-block;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--wise-primary);
    box-shadow: var(--wise-shadow-sm);
    transition: all 0.2s ease;
}

.wise-card-category-badge a:hover {
    background: var(--wise-primary);
    color: #fff;
    transform: translateY(-1px);
}

.wise-single-header {
    background: var(--wise-surface);
    border-bottom: 1px solid var(--wise-border);
    padding: 3rem 0;
    margin-bottom: 2rem;
    text-align: center;
}

.wise-header-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.wise-header-meta-top {
    margin-bottom: 1rem;
}

.wise-pill-category a {
    display: inline-block;
    background: var(--wise-bg);
    color: var(--wise-primary);
    padding: 0.25rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.wise-pill-category a:hover {
    background: var(--wise-primary);
    color: #fff;
    transform: translateY(-1px);
}

.wise-h1 {
    font-size: clamp(2rem, 5vw, 3.5rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--wise-text-main);
}

.wise-header-meta-bottom {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.wise-single-header .wise-meta-container {
    justify-content: center;
    margin-bottom: 0;
}

input[type="search"],
input[type="text"],
input[type="email"],
textarea {
    background: var(--wise-surface);
    border: 1px solid var(--wise-border);
    color: var(--wise-text-main);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-family: var(--wise-font-primary);
    transition: all 0.2s ease;
}

input:focus,
textarea:focus {
    border-color: var(--wise-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

button,
.btn,
input[type="submit"] {
    font-family: var(--wise-font-primary);
}

.widget-area .widget {
    background: var(--wise-surface);
    border: 1px solid var(--wise-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--wise-shadow-sm);
}

.widget-title {
    font-size: var(--wise-h4);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--wise-border);
    color: var(--wise-text-main);
}

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

.widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--wise-border);
    display: flex;
    justify-content: space-between;
}

.widget ul li a {
    text-decoration: none;
    color: var(--wise-text-main);
    transition: color 0.2s;
}

.widget ul li a:hover {
    color: var(--wise-primary);
}

.comments-area {
    background: var(--wise-surface);
    border: 1px solid var(--wise-border);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 3rem;
    box-shadow: var(--wise-shadow-sm);
}

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

.comment-body {
    background: var(--wise-bg);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--wise-border);
}

.comment-meta {
    font-size: var(--wise-small);
    color: var(--wise-text-muted);
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: 700;
    color: var(--wise-text-main);
}

.home .container,
.blog .container,
.archive .container,
.search .container {
    width: 100% !important;
    max-width: 1200px !important;
}

.wise-single-header {
    padding: 0.75rem 0 !important;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--wise-border);
}

.wise-header-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.wise-h1 {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem) !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.2;
}

.wise-header-meta-top {
    margin-bottom: 0.5rem;
}

.wise-header-meta-bottom {
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.single .post-thumbnail {
    display: none !important;
}

.page .post-thumbnail {
    margin-bottom: 2rem !important;
}

.page .post-thumbnail img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--wise-shadow-md);
    max-height: 400px;
    display: block;
}

.site-header {
    background: var(--wise-surface);
    border-bottom: 1px solid var(--wise-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 70px;
}

.site-header .header-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 100% !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
    box-sizing: border-box !important;
}

.site-header .site-logo {
    flex-shrink: 0;
    margin-right: auto;
}

.site-header .site-logo img,
.site-header .custom-logo {
    max-height: 45px;
    width: auto;
    display: block;
}

.site-header .header-navigation-wrapper {
    display: flex;
    align-items: center;
}

.site-header.with-header,
.site-header.center-navbar {
    height: 70px;
}

.site-header.center-navbar .header-inner {
    justify-content: space-between;
}

.site-header.center-navbar .site-logo {
    position: static;
    margin-right: auto;
}

.entry-content a:not(.wp-block-button__link) {
    color: #1d4ed8;
    text-decoration: underline;
}

.entry-content a:not(.wp-block-button__link):hover {
    color: #1e40af;
}

.wp-block-quote,
blockquote {
    color: #374151;
    border-left-color: #2563eb;
}

.wp-block-quote p,
blockquote p,
.wp-block-quote strong,
blockquote strong {
    color: #1f2937;
}

div[style*="background-color:rgb(255,243,224)"],
div[style*="background-color:rgb(240,240,240)"] {
    color: #1f2937 !important;
}

div[style*="background-color:rgb(255,243,224)"] a,
div[style*="background-color:rgb(240,240,240)"] a {
    color: #1e40af !important;
    text-decoration: underline;
}

#cn-accept-cookie,
.cn-button {
    color: #ffffff !important;
    background-color: #047857 !important;
}

.custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.custom-logo-link img,
.custom-logo {
    max-height: 45px;
    width: auto;
    /* Explicit dimensions to prevent CLS */
    height: 36px;
    min-width: 180px;
    aspect-ratio: 5 / 1;
}

.wise-related-posts {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--wise-border);
}

.wise-related-title {
    font-size: var(--wise-h3);
    margin-bottom: 1.5rem;
    color: var(--wise-text-main);
}

.wise-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width:992px) {
    .wise-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:576px) {
    .wise-related-grid {
        grid-template-columns: 1fr;
    }
}

.wise-related-card {
    background: var(--wise-surface);
    border: 1px solid var(--wise-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wise-related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--wise-shadow-lg);
    border-color: var(--wise-primary);
}

.wise-related-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.wise-related-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.wise-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wise-related-card:hover .wise-related-image img {
    transform: scale(1.05);
}

.wise-related-content {
    padding: 1rem;
}

.wise-related-card-title {
    font-size: var(--wise-body);
    font-weight: 500;
    margin: 0;
    color: var(--wise-text-main);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none !important;
}

.entry-related {
    display: none !important;
}

.wise-footer-credits {
    padding: 2rem 0;
    border-top: 1px solid var(--wise-border);
    margin-top: 2rem;
}

.wise-footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.wise-copyright {
    margin: 0;
    color: var(--wise-text-muted);
    font-size: var(--wise-small);
}

.wise-footer-sep {
    color: var(--wise-border);
}

@media (max-width:768px) {
    .wise-footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
}

a.btn[style*="background:#007bff"],
a.btn[style*="background:#007bff"],
a.btn[style*="background:rgb(0,123,255)"],
a.btn[style*="background-color:#007bff"],
a.btn[style*="background-color:rgb(0,123,255)"] {
    background-color: #0056b3 !important;
    background: #0056b3 !important;
    color: #ffffff !important;
}