/*
Theme Name: PropertyOnion Education
Theme URI: https://propertyonion.com
Description: Custom theme for PropertyOnion Education / Articles section. Requires PO Auth Bridge plugin.
Author: Property Onion
Version: 1.1.0
License: Private
Text Domain: po-theme
*/

/* ============================================================
   VARIABLES
============================================================ */
:root {
    --blue:         #178bd1;
    --blue-dark:    #0a5c8a;
    --blue-deeper:  #034da2;
    --blue-light:   #eaf5fb;
    --blue-mid:     #0275d8;
    --green:        #009d00;
    --text:         #1a1a2e;
    --text-mid:     #4a4a5a;
    --text-light:   #8a8a9a;
    --border:       #e4e8f0;
    --bg:           #f0f4f8;
    --white:        #ffffff;
    --card-shadow:  0 1px 4px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.07);
    --card-hover:   0 4px 12px rgba(0,0,0,0.1), 0 16px 40px rgba(0,0,0,0.1);
    --radius:       8px;
    --radius-lg:    12px;
    --radius-xl:    16px;
    --font-body:    'Open Sans', sans-serif;
    --font-head:    'Montserrat', sans-serif;
    --max-w:        1240px;
    --sidebar-w:    310px;
    --transition:   all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   RESET
============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
    margin: 0; padding: 0;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-mid); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--blue-dark); }

h1,h2,h3,h4,h5,h6 {
    font-family: var(--font-head);
    color: var(--text);
    line-height: 1.25;
    margin: 0 0 .6rem;
    font-weight: 700;
}

p { margin: 0 0 1rem; hyphens: none; }
ul,ol { margin: 0 0 1rem; padding-left: 1.5rem; }

::selection { background: #b4d0f0; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #eee; }
::-webkit-scrollbar-thumb { background: #c0c8d8; border-radius: 3px; }

/* ============================================================
   BLUE BAR
============================================================ */
.po-blue-bar {
    background: linear-gradient(90deg, var(--blue) 0%, var(--blue-mid) 100%);
    height: 4px;
}

/* ============================================================
   LAYOUT
============================================================ */
.po-site-wrapper { min-height: 100vh; display: flex; flex-direction: column; }

.po-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.po-main { flex: 1; padding: 32px 0 72px; }

.po-layout {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-w);
    gap: 36px;
    align-items: start;
}

/* ============================================================
   SECTION HEADING (archive title)
============================================================ */
.po-section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.po-section-heading h1 {
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-mid);
    margin: 0;
}

.po-section-heading::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--border);
    border-radius: 2px;
}

/* ============================================================
   ARTICLE CARD
============================================================ */
.po-article-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    margin-bottom: 24px;
    transition: var(--transition);
    border: 1px solid rgba(228, 232, 240, 0.8);
    display: grid;
    grid-template-columns: 1fr;
}

.po-article-card:hover {
    box-shadow: var(--card-hover);
    transform: translateY(-3px);
    border-color: rgba(23, 139, 209, 0.2);
}

/* Featured/first card - big image on top */
.po-article-card.card-featured {
    grid-template-columns: 1fr;
}

.po-article-card.card-featured .card-thumb {
    aspect-ratio: 4/3;
}

/* Regular cards - image left, text right */
.po-article-card.card-regular {
    grid-template-columns: minmax(200px, 320px) 1fr;
    align-items: stretch;
}

.po-article-card.card-regular .card-thumb {
    aspect-ratio: unset;
    height: 100%;
    min-height: 240px;
    border-radius: var(--radius-xl) 0 0 var(--radius-xl);
    overflow: hidden;
}

.po-article-card.card-regular .card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.card-thumb {
    overflow: hidden;
    background: var(--blue-light);
    flex-shrink: 0;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.po-article-card:hover .card-thumb img {
    transform: scale(1.04);
}

.card-body {
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 10px;
}

.card-category::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 12px;
    background: var(--blue);
    border-radius: 2px;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 10px;
    color: var(--text);
}

.po-article-card.card-featured .card-title {
    font-size: 1.55rem;
}

.card-title a { color: inherit; }
.card-title a:hover { color: var(--blue); }

.card-excerpt {
    font-size: 14px;
    color: var(--text-mid);
    line-height: 1.65;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-light);
    margin-top: auto;
}

.card-meta .author { color: var(--blue); font-weight: 600; }
.card-meta .dot { color: var(--border); }

.card-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    font-size: 12px;
    font-weight: 700;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: .05em;
    white-space: nowrap;
}

.card-read-more svg {
    transition: transform 0.2s;
}

.po-article-card:hover .card-read-more svg {
    transform: translateX(3px);
}

/* ============================================================
   PAGINATION
============================================================ */
.po-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
}

.po-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-mid);
    background: var(--white);
    border: 1px solid var(--border);
    transition: var(--transition);
    font-family: var(--font-head);
}

.po-pagination .page-numbers:hover,
.po-pagination .page-numbers.current {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
    box-shadow: 0 4px 12px rgba(23,139,209,.35);
}

.po-pagination .page-numbers.dots {
    background: transparent;
    border: none;
}

/* ============================================================
   NO POSTS
============================================================ */
.po-no-posts {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 72px 40px;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
}

.po-no-posts h2 { font-size: 1.4rem; margin-bottom: 10px; }
.po-no-posts p { color: var(--text-mid); margin-bottom: 24px; }

/* ============================================================
   SINGLE POST
============================================================ */
.po-single-post {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(228,232,240,.8);
}

.po-post-featured-image {
    width: 100%;
    max-height: none;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--blue-light);
}

.po-post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.po-post-header {
    padding: 36px 44px 0;
}

.po-post-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 16px;
    padding: 5px 12px;
    background: var(--blue-light);
    border-radius: 20px;
    border: 1px solid rgba(23,139,209,.15);
}

.po-post-title {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 20px;
    letter-spacing: -.02em;
}

.po-post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-light);
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    font-family: var(--font-head);
}

.po-post-meta .meta-author {
    color: var(--blue);
    font-weight: 700;
}

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

/* Post body typography */
.po-post-body {
    padding: 36px 44px 44px;
}

.po-post-body p {
    font-size: 17px;
    line-height: 1.85;
    color: var(--text);
    margin-bottom: 1.4rem;
}

.po-post-body h2 { font-size: 1.6rem; margin-top: 2.8rem; margin-bottom: .8rem; color: var(--text); border-left: 4px solid var(--blue); padding-left: 14px; }
.po-post-body h3 { font-size: 1.3rem; margin-top: 2.2rem; margin-bottom: .6rem; }
.po-post-body h4 { font-size: 1.1rem; margin-top: 1.8rem; margin-bottom: .5rem; }

.po-post-body a {
    color: var(--blue-mid);
    border-bottom: 1px solid rgba(2,117,216,.25);
    transition: var(--transition);
}
.po-post-body a:hover { color: var(--blue-deeper); border-bottom-color: var(--blue-deeper); }

.po-post-body ul, .po-post-body ol {
    padding-left: 1.75rem;
    margin-bottom: 1.4rem;
}
.po-post-body li {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: .4rem;
}

.po-post-body blockquote {
    border-left: 4px solid var(--blue);
    margin: 2.2rem 0;
    padding: 1.4rem 2rem;
    background: var(--blue-light);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.po-post-body blockquote p {
    font-size: 1.15rem !important;
    font-style: italic;
    color: var(--blue-deeper);
    margin: 0;
    line-height: 1.65;
}

.po-post-body img {
    border-radius: var(--radius);
    margin: 1.8rem auto;
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
}

.po-post-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.8rem;
    font-size: 15px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}
.po-post-body table th {
    background: var(--blue);
    color: white;
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    font-family: var(--font-head);
    font-size: 13px;
    letter-spacing: .04em;
}
.po-post-body table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}
.po-post-body table tr:nth-child(even) td { background: var(--blue-light); }

/* Post footer */
.po-post-footer {
    padding: 22px 44px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    background: #fafbfd;
}

.po-post-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.po-post-tags .tags-label {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; color: var(--text-light); margin-right: 4px;
    font-family: var(--font-head);
}
.po-post-tags a {
    display: inline-block;
    padding: 5px 12px;
    background: var(--blue-light);
    color: var(--blue-dark);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(23,139,209,.15);
    transition: var(--transition);
}
.po-post-tags a:hover { background: var(--blue); color: white; border-color: var(--blue); }

/* ============================================================
   ACCESS WALL
============================================================ */
.po-access-wall {
    margin: 44px;
    padding: 48px 40px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e4f0fb 100%);
    border: 1px solid rgba(23,139,209,.2);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: 0 4px 24px rgba(23,139,209,.08);
}
.po-access-wall .wall-icon { font-size: 3rem; margin-bottom: 18px; }
.po-access-wall h3 { font-size: 1.5rem; margin-bottom: 12px; color: var(--blue-deeper); }
.po-access-wall p { color: var(--text-mid); margin-bottom: 28px; font-size: 16px; line-height: 1.65; }

.po-btn {
    display: inline-block;
    padding: 13px 30px;
    border-radius: var(--radius);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border: none;
    letter-spacing: .02em;
}
.po-btn-primary {
    background: var(--blue);
    color: white;
    box-shadow: 0 4px 14px rgba(23,139,209,.35);
}
.po-btn-primary:hover {
    background: var(--blue-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(23,139,209,.45);
}
.po-btn-secondary {
    background: transparent;
    color: var(--blue);
    border: 2px solid var(--blue);
    margin-left: 12px;
}
.po-btn-secondary:hover { background: var(--blue); color: white; }
.po-btn-green {
    background: var(--green);
    color: white;
    box-shadow: 0 4px 14px rgba(0,157,0,.3);
}
.po-btn-green:hover {
    background: #007a00;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,157,0,.4);
}

/* ============================================================
   RELATED POSTS
============================================================ */
.po-related-posts { margin-top: 36px; }
.po-related-posts h3 {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .1em; color: var(--text-light);
    margin-bottom: 20px; padding-bottom: 14px;
    border-bottom: 2px solid var(--border);
}
.po-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.po-related-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    box-shadow: var(--card-shadow);
}
.po-related-item:hover { box-shadow: var(--card-hover); transform: translateY(-3px); }
.po-related-item .ri-thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--blue-light); }
.po-related-item .ri-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.po-related-item:hover .ri-thumb img { transform: scale(1.06); }
.po-related-item .ri-body { padding: 14px 16px; }
.po-related-item .ri-title { font-size: 13px; font-weight: 700; line-height: 1.4; color: var(--text); }
.po-related-item .ri-title a { color: inherit; }
.po-related-item .ri-title a:hover { color: var(--blue); }
.po-related-item .ri-date { font-size: 11px; color: var(--text-light); margin-top: 6px; font-family: var(--font-head); }

/* ============================================================
   COMMENTS
============================================================ */
.po-comments-area {
    margin-top: 28px;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 36px 44px;
    border: 1px solid rgba(228,232,240,.8);
    box-shadow: var(--card-shadow);
}
.po-comments-area .comments-title {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .1em; color: var(--text-light);
    padding-bottom: 18px; border-bottom: 2px solid var(--border); margin-bottom: 28px;
}
.comment-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.comment-list .comment { padding: 20px 0; border-bottom: 1px solid var(--border); }
.comment-list .comment:last-child { border-bottom: none; }
.comment-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.comment-meta img { border-radius: 50%; width: 42px; height: 42px; }
.comment-author-name { font-weight: 700; font-size: 14px; color: var(--text); font-family: var(--font-head); }
.comment-date { font-size: 12px; color: var(--text-light); }
.comment-body p { font-size: 15px; color: var(--text); line-height: 1.7; margin: 0; }
.comment-respond { margin-top: 2rem; }
.comment-respond h3 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-light); margin-bottom: 20px; }
.comment-form label { display: block; font-size: 12px; font-weight: 700; color: var(--text-mid); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .05em; font-family: var(--font-head); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%; padding: 11px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius); font-family: var(--font-body);
    font-size: 14px; color: var(--text); background: #fafbfd;
    transition: border-color .2s; margin-bottom: 16px;
}
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form textarea:focus { outline: none; border-color: var(--blue); background: white; }
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form input[type="submit"] {
    background: var(--blue); color: white; border: none;
    padding: 12px 28px; border-radius: var(--radius);
    font-family: var(--font-head); font-weight: 700; font-size: 14px;
    cursor: pointer; transition: var(--transition);
    box-shadow: 0 4px 12px rgba(23,139,209,.3);
}
.comment-form input[type="submit"]:hover { background: var(--blue-dark); transform: translateY(-1px); }

/* ============================================================
   SIDEBAR
============================================================ */
.po-sidebar { position: static; }

.po-sidebar .widget {
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(228,232,240,.8);
    box-shadow: var(--card-shadow);
    margin-bottom: 22px;
    overflow: hidden;
}

.po-sidebar .widget-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-light);
    padding: 16px 20px 14px;
    border-bottom: 1px solid var(--border);
    margin: 0;
    font-family: var(--font-head);
    background: #fafbfd;
}

.po-sidebar .widget-content { padding: 16px 20px; }

/* Search */
.po-sidebar-search { display: flex; }
.po-sidebar-search input[type="search"] {
    flex: 1; padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    font-family: var(--font-body); font-size: 14px;
    color: var(--text); background: #fafbfd;
    transition: border-color .2s;
}
.po-sidebar-search input[type="search"]:focus { outline: none; border-color: var(--blue); background: white; }
.po-sidebar-search button {
    padding: 10px 14px;
    background: var(--blue); color: white; border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer; font-size: 14px; transition: background .2s;
    display: flex; align-items: center;
}
.po-sidebar-search button:hover { background: var(--blue-dark); }

/* Popular posts */
.po-popular-posts .popular-item {
    display: flex; gap: 12px; padding: 12px 0;
    border-bottom: 1px solid var(--border); align-items: flex-start;
}
.po-popular-posts .popular-item:first-child { padding-top: 0; }
.po-popular-posts .popular-item:last-child { border-bottom: none; padding-bottom: 0; }
.po-popular-posts .pi-thumb {
    width: 90px; height: 68px; flex-shrink: 0;
    border-radius: var(--radius); overflow: hidden; background: var(--blue-light);
}
.po-popular-posts .pi-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.po-popular-posts .popular-item:hover .pi-thumb img { transform: scale(1.08); }
.po-popular-posts .pi-title { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--text); flex: 1; }
.po-popular-posts .pi-title a { color: inherit; }
.po-popular-posts .pi-title a:hover { color: var(--blue); }
.po-popular-posts .pi-date { font-size: 11px; color: var(--text-light); margin-top: 5px; font-family: var(--font-head); }

/* Categories */
.po-sidebar .widget_categories ul,
.po-sidebar .widget_archive ul { list-style: none; padding: 0; margin: 0; }
.po-sidebar .widget_categories ul li,
.po-sidebar .widget_archive ul li {
    padding: 9px 0; border-bottom: 1px solid var(--border);
    font-size: 13px; display: flex; justify-content: space-between; align-items: center;
}
.po-sidebar .widget_categories ul li:last-child,
.po-sidebar .widget_archive ul li:last-child { border-bottom: none; }
.po-sidebar .widget_categories ul li a,
.po-sidebar .widget_archive ul li a { color: var(--text-mid); font-weight: 500; transition: color .2s; }
.po-sidebar .widget_categories ul li a:hover,
.po-sidebar .widget_archive ul li a:hover { color: var(--blue); }
.po-sidebar .widget_categories ul li:hover > a { color: var(--blue); }

/* Category count badge */
.po-sidebar .widget_categories ul li .cat-count {
    background: var(--blue-light);
    color: var(--blue-dark);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    font-family: var(--font-head);
}

/* Tags */
.po-sidebar .tagcloud { display: flex; flex-wrap: wrap; gap: 7px; }
.po-sidebar .tagcloud a {
    display: inline-block; padding: 5px 12px;
    background: var(--blue-light); color: var(--blue-dark);
    border-radius: 20px; font-size: 12px !important; font-weight: 600;
    border: 1px solid rgba(23,139,209,.15); transition: var(--transition);
}
.po-sidebar .tagcloud a:hover { background: var(--blue); color: white; border-color: var(--blue); transform: translateY(-1px); }

/* ============================================================
   FOOTER
============================================================ */
.po-footer {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 22px 0;
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
    font-family: var(--font-head);
}
.po-footer a { color: var(--blue); }

/* ============================================================
   WORDPRESS HELPERS
============================================================ */
.alignleft { float: left; margin: .5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .5rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1rem auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--text-light); text-align: center; margin-top: 8px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
    :root { --sidebar-w: 270px; }
}

@media (max-width: 820px) {
    :root { --sidebar-w: 270px; }
    .po-layout { grid-template-columns: 1fr; }
    .po-sidebar { position: static; }
    .po-article-card.card-regular { grid-template-columns: 1fr; }
    .po-article-card.card-regular .card-thumb { aspect-ratio: 16/9; height: auto; min-height: unset; border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
    .po-post-header { padding: 24px 24px 0; }
    .po-post-body { padding: 24px; }
    .po-post-footer { padding: 20px 24px; }
    .po-post-title { font-size: 1.65rem; }
    .po-related-grid { grid-template-columns: repeat(2,1fr); }
    .po-comments-area { padding: 28px 24px; }
}

@media (max-width: 680px) {
    .po-post-header { padding: 20px 18px 0; }
    .po-post-body { padding: 20px 18px; }
    .po-post-footer { padding: 16px 18px; }
    .po-post-title { font-size: 1.35rem; }
    .po-related-grid { grid-template-columns: 1fr; }
    .po-comments-area { padding: 20px 18px; }
}

/* ============================================================
   SIDEBAR CATEGORY FIX - wp_list_categories output
============================================================ */

/* Remove default list styling from WP category/archive lists */
.po-sidebar .widget_categories ul,
.po-sidebar .widget_categories ul li,
.po-sidebar .widget_archive ul,
.po-sidebar .widget_archive ul li {
    list-style: none !important;
    list-style-type: none !important;
    background-image: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* Each category row */
.po-sidebar .widget_categories ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    font-family: var(--font-body);
}

.po-sidebar .widget_categories ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.po-sidebar .widget_categories ul li:first-child {
    padding-top: 0;
}

.po-sidebar .widget_categories ul li a {
    color: var(--text-mid);
    font-weight: 500;
    font-size: 13px;
    flex: 1;
    transition: color .2s;
}

.po-sidebar .widget_categories ul li a:hover {
    color: var(--blue);
}

/* WP wraps count in <span class="count"> like "(442)" */
.po-sidebar .widget_categories ul li .count,
.po-sidebar .widget_categories ul li span.count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-light);
    color: var(--blue-dark);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    font-family: var(--font-head);
    margin-left: 8px;
    flex-shrink: 0;
    /* Strip the WP parentheses from count display */
}

/* Hide child category lists (sub-categories) */
.po-sidebar .widget_categories ul ul {
    display: none;
}

/* ============================================================
   BLUE BAR - make it more visible
============================================================ */
.po-blue-bar {
    background: linear-gradient(90deg, #178bd1 0%, #0275d8 100%);
    height: 6px;
    width: 100%;
    display: block;
}

/* ============================================================
   GLOBAL body/base font fixes
============================================================ */
.po-sidebar .widget-content {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-mid);
}

/* Fix any stray bullet points anywhere in sidebar */
.po-sidebar ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

/* Fix category children indenting */
.po-sidebar .children {
    display: none;
}


/* ============================================================
   MODERN TAG CLOUD
============================================================ */
.po-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 2px 0;
}

.po-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 20px;
    font-weight: 600;
    transition: var(--transition);
    border: 1.5px solid transparent;
    white-space: nowrap;
    line-height: 1;
}

.po-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(23,139,209,.25);
}

/* Size variants */
.po-tag.tag-xl {
    font-size: 14px;
    padding: 7px 14px;
    background: var(--blue);
    color: white;
    border-color: var(--blue);
}
.po-tag.tag-xl:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    color: white;
}

.po-tag.tag-lg {
    font-size: 13px;
    padding: 6px 12px;
    background: rgba(23,139,209,.12);
    color: #034da2;
    border-color: rgba(23,139,209,.25);
}
.po-tag.tag-lg:hover {
    background: var(--blue);
    color: white;
    border-color: var(--blue);
}

.po-tag.tag-md {
    font-size: 12px;
    padding: 5px 11px;
    background: var(--blue-light);
    color: #034da2;
    border-color: rgba(23,139,209,.15);
}
.po-tag.tag-md:hover {
    background: var(--blue);
    color: white;
    border-color: var(--blue);
}

.po-tag.tag-sm {
    font-size: 11px;
    padding: 4px 10px;
    background: #f0f4f8;
    color: #1a4a70;
    border-color: var(--border);
}
.po-tag.tag-sm:hover {
    background: var(--blue-light);
    color: #034da2;
    border-color: rgba(23,139,209,.2);
}

.po-tag .tag-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    min-width: 20px;
    font-family: var(--font-head);
}

.po-tag.tag-xl .tag-count { background: rgba(255,255,255,.25); color: white; }
.po-tag.tag-lg .tag-count { background: rgba(3,77,162,.12); color: #034da2; }
.po-tag.tag-md .tag-count { background: rgba(3,77,162,.1); color: #034da2; }
.po-tag.tag-sm .tag-count { background: rgba(23,139,209,.12); color: #1a4a70; }

.po-tag:hover .tag-count { background: rgba(255,255,255,.3); color: white; }


/* ============================================================
   FOOTER STYLES (ported from minimag-child autoptimize bundle)
   ============================================================ */

.blueBar { background-color: #178bd1; height: 25px; }

.footerContainer { margin: 50px 0; font-family: Open Sans; }
.footerContainer .container { max-width: 1420px; }
.footerContainer .row { margin-right: -.5rem; margin-left: -.5rem; margin-top: -.5rem; }
.footerContainer .footerBlueBar { background-repeat: no-repeat; background-position: center; background-size: cover; height: 140px; margin-bottom: 7px; overflow: hidden; }
.footerContainer .blueBar { background-color: #178bd1; height: 25px; }
.footerContainer h4 { font-size: 18px; color: #034da2; font-weight: 500; margin: 24px 0; padding: 2px 0; }
.footerContainer h4.beSocial { max-width: 180px; }
.footerContainer .textContainer ul { list-style-type: none; margin: 0; padding: 0; }
.footerContainer .textContainer ul li { padding: 10px 0; max-width: 200px; color: #034da2; }
.footerContainer .textContainer ul li a { font-size: 14px; color: #034da2; line-height: 20px; display: block; }
.footerContainer .textContainer ul li a:hover:not(.normal) { text-decoration: underline; color: #00adef; }

.footerBlueBar { background-repeat: no-repeat; background-position: center; background-size: cover; height: 140px; margin-bottom: 7px; overflow: hidden; }
.footerLogoWrap { text-align: center; }
.footerLogoWrap a { display: inline-block; }
.footerLogoWrap img { max-width: 160px; display: block; margin: 0 auto; }
.socialContainer .social-icons li a img { max-width: 30px; width: 30px; height: 30px; display: inline-block; }
.socialContainer .socialImg { text-align: right; margin-top: -10px; }
.socialContainer .socialImg img { max-width: 80px; width: 80px; display: block; margin: 0 0 0 auto; height: auto; }

.textContainer ul { list-style-type: none; margin: 0; padding: 0; }
.textContainer ul li { padding: 10px 0; max-width: 200px; color: #034da2; }
.textContainer ul li a { font-size: 14px; color: #034da2; line-height: 20px; display: block; }
.textContainer ul li a:hover:not(.normal) { text-decoration: underline; color: #00adef; }

.socialContainer { max-width: 180px; }
.socialContainer .socialImg { text-align: right; margin-top: -18px; }
.socialContainer .socialImg img { max-width: 115px; }
.socialContainer .social-icons { list-style-type: none; padding: 0; margin: 18px 0 0; }
.socialContainer .social-icons li { display: inline-block; }
.socialContainer .social-icons li + li { margin-left: 9px; }
.socialContainer .social-icons li a img { max-width: 30px; }
.socialContainer .social-icons li a img:hover { box-shadow: rgb(136 165 191 / 35%) 0 0 12px 2px; }

.bottomFooterBar { padding: 15px; background-color: #034da2; }
.bottomFooterBar p { font-size: 14px; color: #fff; margin: 14px 0 0; line-height: normal; }

.our-affiliate { font-size: 14px; font-weight: 700; color: #49a638; padding-top: 15px; display: block; text-align: center; }
.our-affiliate:hover { text-decoration: underline; color: #04781c; }

@media (max-width: 1199px) {
    .footerContainer { margin: 30px 0; }
    .footerContainer .footerBlueBar { height: 100px; }
    .footerContainer .blueBar { height: 15px; }
    .footerBlueBar { height: 100px; }
    .blueBar { height: 15px; }
    .footerLogoWrap img { max-width: 140px; }
    .socialContainer .socialImg { margin-top: 0; }
    .socialContainer { margin: auto; }
    .textContainer ul li { padding: 2px 0; max-width: 100%; }
    .socialContainer { max-width: 220px; }
    .socialContainer .socialImg { text-align: center; margin-top: -20px; }
    .socialContainer .social-icons { text-align: center; }
    .bottomFooterBar p { font-size: 12px; }
    .our-affiliate { font-size: 13px; letter-spacing: -.5px; }
    .footerContainer h4.beSocial { max-width: none; margin-left: auto; margin-right: auto; }
    .footerContainer h4 { margin: 5px 0 15px; }
    .footerContainer .textContainer ul li { padding: 6px 0; max-width: 100%; }
}

@media (max-width: 767px) {
    .bottomFooterBar { height: auto; padding: 10px 15px; }
    .bottomFooterBar p { margin: 10px 0; }
}

@media print {
    .noPrint { display: none; }
}

/* ============================================================
   SUB-FOOTER / CTA BAR STYLES (ported from minimag-child)
   ============================================================ */

.p-container { max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 15px; padding-right: 15px; }

.subFooterBar .grid { display: flex; flex-wrap: wrap; margin-right: -.5rem; margin-left: -.5rem; margin-top: -.5rem; }
.subFooterBar .col-12 { flex: 0 0 auto; padding: .5rem; width: 100%; }
.subFooterBar .flex { display: flex !important; }
.subFooterBar .flex-column { flex-direction: column !important; }
.subFooterBar .align-items-center { align-items: center !important; }
.subFooterBar .align-items-end { align-items: flex-end !important; }
.subFooterBar .justify-content-center { justify-content: center !important; }
.subFooterBar .justify-content-end { justify-content: flex-end !important; }
.subFooterBar .justify-content-between { justify-content: space-between !important; }
.subFooterBar .flex-grow-1 { flex-grow: 1 !important; }
.subFooterBar .m-0 { margin: 0 !important; }
.subFooterBar .mb-3 { margin-bottom: 1rem !important; }
.subFooterBar .mt-0 { margin-top: 0 !important; }
.subFooterBar .mr-4 { margin-right: 1.5rem !important; }
.subFooterBar .mt-5 { margin-top: 2rem !important; }
.subFooterBar .my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.subFooterBar .py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }

.homeBuyersContainer {
    background-image: url('https://propertyonion.com/assets/images/dark-overlay-started.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    min-height: 400px;
}
.homeBuyersContainer h1 {
    font-family: 'Libre Franklin', sans-serif;
    color: white;
    font-size: 3rem;
    line-height: 54px;
    font-weight: 700;
    max-width: 1200px;
    margin: 20px auto 5px;
    text-align: center;
    text-shadow: 2px 2px #0573cb, -2px -2px #0573cb, -2px 2px #0573cb, 2px -2px #0573cb;
}
.homeBuyersContainer .reviewSection p {
    max-width: 370px;
    font-size: 1.25rem;
    color: white;
    text-align: right;
    line-height: normal;
}
.homeBuyersContainer .reviewSection img { max-width: 160px; max-height: 160px; }
.homeBuyersContainer .large-btn {
    margin: 0;
    cursor: pointer;
    text-align: center;
    overflow: hidden;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    text-decoration: none;
    padding: 10px 15px 2px;
    height: auto;
    line-height: 22px;
    font-weight: 700;
    font-size: 1.25rem;
    font-family: 'Libre Franklin', sans-serif;
    border-radius: 10px;
    border: 3px solid white;
    box-shadow: #00000059 0 1px 10px;
    background-color: #009d00;
    border-color: #009d00;
    color: white;
}
.homeBuyersContainer .large-btn:hover { background-color: #04781c !important; border-color: #04781c !important; }
.homeBuyersContainer .large-btn span {
    display: block;
    font-size: .813rem;
    text-align: right;
    line-height: 18px;
    font-weight: 500;
    text-transform: initial;
    position: relative;
    top: -2px;
}

@media (min-width: 1200px) {
    .subFooterBar .xl\:mt-0 { margin-top: 0 !important; }
    .subFooterBar .xl\:flex-row { flex-direction: row !important; }
    .subFooterBar .xl\:my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
}
@media (max-width: 1440px) { .homeBuyersContainer .reviewSection p { font-size: 1.125rem; } }
@media (max-width: 1199px) {
    .homeBuyersContainer h1 { font-size: 2.5rem; line-height: 48px; max-width: 860px; }
    .homeBuyersContainer .large-btn { font-size: 1.125rem; }
}
@media (max-width: 767px) { .homeBuyersContainer h1 { font-size: 1.875rem; line-height: 38px; } }
@media (max-width: 575px) { .homeBuyersContainer h1 { font-size: 1.75rem; line-height: 32px; } }
@media (max-width: 475px) {
    .homeBuyersContainer .reviewSection p { font-size: .875rem; }
    .homeBuyersContainer .reviewSection img { max-width: 100px; }
}
@media (max-width: 375px) {
    .homeBuyersContainer h1 { font-size: 1.5rem; line-height: 30px; }
    .homeBuyersContainer .reviewSection .flexMedia { flex-direction: column-reverse !important; text-align: center; }
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.po-breadcrumb {
    font-size: 13px;
    color: #888;
    margin-bottom: 16px;
    padding: 8px 0 8px 4px;
}
.po-breadcrumb a {
    color: var(--blue);
    text-decoration: none;
}
.po-breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { margin: 0 6px; color: #bbb; }
.breadcrumb-current { color: #666; }