/*
Theme Name: Petsblog Theme
Version: 4.2
*/

/* ========== v2: 导航栏字体改为纯白，轮播图片用WP原生函数，侧边栏两列布局正确 ========== */
 *{box-sizing:border-box;margin:0;padding:0}
 html{scroll-behavior:smooth}
 body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;background:#f5f5f5;color:#1a1a1a;line-height:1.6;-webkit-font-smoothing:antialiased;overflow-x:hidden}
 a{color:inherit;text-decoration:none}
 img{max-width:100%;height:auto;display:block}
 ul{list-style:none}
 .container{max-width:1200px;margin:0 auto;padding:0 20px;overflow-x:hidden}
 .site-header{background:#2d2d2d;box-shadow:0 2px 10px rgba(0,0,0,0.15)}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:43px}
 .site-logo{font-size:1.6rem;font-weight:800;letter-spacing:-1px}
 .logo-pets{color:#0ea5e9}
 .logo-blog{color:#f472b6}
 .main-nav{display:flex;align-items:center;gap:2px}
 .nav-link{padding:8px 12px;font-size:0.85rem;font-weight:500;color:#ffffff!important;border-radius:4px;transition:background 0.2s;white-space:nowrap}
 .nav-link:hover{color:#ffffff!important;background:rgba(255,255,255,0.15)!important}
 .nav-link.active{color:#ffffff!important;text-decoration:underline;text-underline-offset:4px}
 .main-nav a{color:#ffffff!important}
 .main-nav a:hover{color:#ffffff!important;background:rgba(255,255,255,0.15)}
 .menu-toggle{display:none;flex-direction:column;justify-content:center;gap:5px;width:40px;height:40px;padding:8px;border:none;background:transparent;cursor:pointer;border-radius:4px}
 .menu-toggle span{display:block;width:22px;height:2px;background:#fff;border-radius:2px;transition:all 0.3s}
 .menu-toggle.active span:nth-child(1){transform:rotate(45deg) translate(5px,5px)}
 .menu-toggle.active span:nth-child(2){opacity:0}
 .menu-toggle.active span:nth-child(3){transform:rotate(-45deg) translate(5px,-5px)}
 .main-content{padding:30px 0 50px}
 .two-column-layout{display:grid;grid-template-columns:2fr 1fr;gap:30px;align-items:start;overflow-x:hidden}
 .left-column{display:flex;flex-direction:column;gap:24px;overflow-x:hidden}
 .featured-focus-row{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:stretch;overflow-x:hidden}
 .featured-carousel{position:relative;border-radius:8px;overflow:hidden;background:#fff;display:flex;flex-direction:column;height:100%}
 .carousel-slides{position:relative;width:100%;flex:1;height:100%}
 .carousel-slide{display:none;position:relative;width:100%;height:100%}
 .carousel-slide.active{display:block}
 .carousel-slide a{display:block;width:100%;height:100%;position:relative}
 .carousel-slide img{width:100%;height:100%;object-fit:cover;display:block}
 .carousel-title-overlay{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(transparent,rgba(0,0,0,0.7));padding:60px 16px 16px;box-sizing:border-box}
 .carousel-title-overlay .cat{display:inline-block;background:#e85d04;color:#fff;font-size:0.65rem;font-weight:700;text-transform:uppercase;letter-spacing:0.5px;padding:3px 8px;border-radius:3px;margin-bottom:6px}
 .carousel-title-overlay h3{font-family:Georgia,serif;font-size:1rem;font-weight:700;line-height:1.35;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .carousel-dots{position:absolute;bottom:12px;right:12px;display:flex;gap:6px;z-index:5}
 .carousel-dot{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,0.6);cursor:pointer;transition:background 0.3s}
 .carousel-dot.active{background:#fff}
 .carousel-dot:hover{background:#fff}
 .focus-section{background:#fff;border-radius:8px;padding:18px}
 .focus-header{display:flex;align-items:center;gap:10px;margin-bottom:14px;padding-bottom:10px;border-bottom:2px solid #e85d04}
 .focus-title{font-family:Georgia,serif;font-size:1rem;font-weight:700;color:#1a1a1a}
 .focus-list{display:flex;flex-direction:column}
 .focus-item{padding:11px 0;border-bottom:1px solid #eaeaea}
 .focus-item:last-child{border-bottom:none}
 .focus-item-title{font-size:0.88rem;font-weight:600;line-height:1.4;margin-bottom:4px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .focus-item-title a:hover{color:#e85d04}
 .focus-item-excerpt{font-size:0.75rem;color:#888;line-height:1.5}
 .articles-section{background:#fff;border-radius:8px;padding:18px}
 .articles-header{display:flex;align-items:center;gap:10px;margin-bottom:14px;padding-bottom:10px;border-bottom:2px solid #e85d04}
 .articles-title{font-family:Georgia,serif;font-size:1rem;font-weight:700;color:#1a1a1a}
 .articles-list{display:flex;flex-direction:column}
 .article-card{display:flex;gap:14px;padding:12px 0;border-bottom:1px solid #eaeaea}
 .article-card:last-child{border-bottom:none}
 .article-thumb{flex-shrink:0;width:100px;height:80px;border-radius:6px;overflow:hidden;cursor:pointer}
 .article-thumb img{width:100%;height:100%;object-fit:cover}
 .article-body{flex:1;display:flex;flex-direction:column}
 .article-title{font-family:Georgia,serif;font-size:0.88rem !important;font-weight:700;line-height:1.4;margin-bottom:4px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
h3.article-title {
    font-size: 0.88rem !important;
}
 .article-title a:hover{color:#e85d04}
 .article-meta{display:flex;align-items:center;gap:4px;font-size:0.72rem;color:#999;margin-bottom:4px}
 .article-meta svg{width:12px;height:12px;fill:#999}
 .article-excerpt{font-size:0.78rem;color:#666;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .pagination-nav{display:flex;justify-content:center;align-items:center;margin-top:24px;gap:6px}
 /* 分页样式 - 匹配 WordPress 默认类名 */
.pagination-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
}
.pagination-nav .page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #666;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
}
.pagination-nav .page-num.active {
    background: #e85d04;
    color: #fff;
    border-color: #e85d04;
}
.pagination-nav .page-prev, .pagination-nav .page-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    height: 34px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #666;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
}
 .pagination-nav .page-prev:hover,.pagination-nav .page-next:hover{background:#2d2d2d;color:#fff;border-color:#2d2d2d}
 .right-column{display:flex;flex-direction:column;gap:20px;overflow-x:hidden}
 .sidebar-widget{background:#fff;border-radius:8px;padding:18px}
 .widget-title{font-family:Georgia,serif;font-size:1rem;font-weight:700;color:#1a1a1a;margin-bottom:14px;padding-bottom:10px;border-bottom:2px solid #e85d04}
 .search-form{display:flex;gap:0}
 .search-input{flex:1;padding:10px 14px;font-size:0.9rem;border:1px solid #ddd;border-right:none;border-radius:6px 0 0 6px;background:#fafafa;transition:all 0.2s}
 .search-input:focus{outline:none;background:#fff;border-color:#e85d04}
 .search-btn{padding:10px 14px;background:#e85d04;color:#fff;border:1px solid #e85d04;border-radius:0 6px 6px 0;cursor:pointer;font-size:0.85rem;font-weight:600;transition:background 0.2s}
 .search-btn:hover{background:#d44e00}
 .hot-list{counter-reset:hot-counter}
 .hot-item{display:flex;gap:10px;padding:9px 0;border-bottom:1px solid #f0f0f0;align-items:flex-start}
 .hot-item:last-child{border-bottom:none;padding-bottom:0}
 .hot-num{flex-shrink:0;width:22px;height:22px;display:flex;align-items:center;justify-content:center;font-size:0.65rem;font-weight:700;color:#fff;border-radius:3px;counter-increment:hot-counter}
 .hot-num::before{content:counter(hot-counter)}
 .hot-item:nth-child(1) .hot-num{background:#dc2626}
 .hot-item:nth-child(2) .hot-num{background:#e85d04}
 .hot-item:nth-child(3) .hot-num{background:#2563eb}
 .hot-item:nth-child(n+4) .hot-num{background:#ccc;color:#666}
 .hot-title{font-size:0.82rem;font-weight:600;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;max-width:100%}
 .hot-title a:hover{color:#e85d04}
 .news-list{display:flex;flex-direction:column;gap:8px}
 .news-item{position:relative;display:flex;gap:8px;align-items:flex-start;padding:6px 0;border-bottom:1px solid #f0f0f0}
 .news-item:last-child{border-bottom:none;padding-bottom:0}
 .news-icon{flex-shrink:0;width:16px;height:16px;background:#f0f0f0;border-radius:3px;display:flex;align-items:center;justify-content:center}
 .news-icon::before{content:'>';font-size:0.6rem;font-weight:700;color:#999}
 .news-title {
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
 .news-title a:hover{color:#e85d04}
 .news-item .news-thumb{position:absolute;right:0;top:50%;transform:translateY(-50%) translateX(10px);width:80px;height:60px;border-radius:6px;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,0.15);opacity:0;pointer-events:none;transition:opacity 0.2s,transform 0.2s;z-index:10}
 .news-item .news-thumb img{width:100%;height:100%;object-fit:cover}
 .news-item:hover .news-thumb{opacity:1;transform:translateY(-50%) translateX(0)}
 .site-footer{background:#2d2d2d;color:rgba(255,255,255,0.7);padding:30px 0;margin-top:40px}
 .footer-inner{text-align:center}
 .footer-copyright{font-size:0.8rem}
 .footer-copyright a:hover{color:#fff}
 .scroll-top{position:fixed;bottom:30px;right:30px;width:44px;height:44px;background:#e85d04;color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 4px 12px rgba(0,0,0,0.2);transition:all 0.3s;z-index:999;opacity:1;visibility:visible}
 .scroll-top.visible{opacity:1;visibility:visible}
 .scroll-top:hover{background:#d44e00;transform:translateY(-3px)}
 .scroll-top svg{width:20px;height:20px;fill:currentColor}
 @media(max-width:1024px){.article-thumb{width:90px;height:72px}}
 @media(max-width:900px){.two-column-layout{grid-template-columns:1fr}.right-column{flex-direction:row;flex-wrap:wrap}.right-column .sidebar-widget{flex:1;min-width:280px}}
 @media(max-width:768px){body{overflow-x:hidden}.container{max-width:100%;overflow-x:hidden;padding:0 16px}.header-inner{flex-wrap:wrap;height:auto;padding:12px 0;gap:10px}.main-nav{display:none;width:100%;flex-direction:column;background:#2d2d2d;padding:8px 0}.main-nav.active{display:flex}.nav-link{padding:12px 16px;width:100%;text-align:left;color:#ffffff!important}.nav-link:hover{color:#ffffff!important;background:rgba(255,255,255,0.1)!important}.nav-link.active{color:#ffffff!important;background:rgba(255,255,255,0.1)}.menu-toggle{display:flex}.left-column{gap:20px;max-width:100%;overflow-x:hidden}.featured-focus-row{grid-template-columns:1fr;gap:20px;max-width:100%;overflow-x:hidden}.featured-carousel{max-width:100%;overflow-x:hidden}.carousel-slide{max-width:100%}.article-card{flex-direction:row;gap:12px;padding:12px 0}.article-thumb{width:100px;height:80px}.right-column{flex-direction:column;gap:20px;max-width:100%;overflow-x:hidden}.right-column .sidebar-widget{min-width:100%;max-width:100%;overflow-x:hidden}.news-item .news-thumb{display:none}.scroll-top{display:none!important}}
 @media(max-width:480px){.container{padding:0 12px}.carousel-title-overlay h3{font-size:0.85rem}.carousel-dots{bottom:8px;right:8px}.carousel-dot{width:6px;height:6px}.article-thumb{width:90px;height:72px}}

/*** Article Page Styles ***/
.article-header{margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid #eaeaea}
.article-title{font-family:Georgia,serif;font-size:1.25rem;font-weight:700;line-height:1.4;color:#1a1a1a;margin:0 0 6px}
.article-meta{display:flex;align-items:center;gap:8px;font-size:0.82rem;color:#999}
.article-meta svg{width:14px;height:14px;fill:#999}
.article-featured-img{margin:0 0 12px;border-radius:8px;overflow:hidden}
.article-featured-img img{width:100%;height:auto;display:block}
.article-content{font-size:0.95rem;line-height:1.8;color:#333}
.article-content p{margin-bottom:18px}
.article-content h3{font-family:Georgia,serif;font-size:1.15rem;font-weight:700;color:#1a1a1a;margin:30px 0 12px;padding-bottom:6px;border-bottom:1px solid #eaeaea}
.article-content h4{font-size:0.97rem;font-weight:700;color:#333;margin:22px 0 8px}
.article-content ul,.article-content ol{margin:0 0 16px 22px}
.article-content ul{list-style:disc}
.article-content ol{list-style:decimal}
.article-content li{margin-bottom:7px;line-height:1.7}
.article-content table{width:100%;border-collapse:collapse;margin:22px 0;font-size:0.85rem;border:1px solid #ddd;border-radius:6px;overflow:hidden}
.article-content th{background:#f5f5f5;padding:10px 14px;text-align:left;font-weight:700;color:#1a1a1a;border-bottom:2px solid #ddd}
.article-content td{padding:9px 14px;border-bottom:1px solid #eee;color:#444}
.article-content tr:last-child td{border-bottom:none}
.article-content blockquote{background:#f8f8f8;border-left:4px solid #e85d04;padding:14px 18px;margin:22px 0;font-style:italic;color:#555;border-radius:0 4px 4px 0}

/*** Comment Section ***/
.comment-section{background:#fff;border-radius:8px;padding:28px 30px;margin-top:32px}
.comment-section-title{font-family:Georgia,serif;font-size:1rem;font-weight:700;color:#1a1a1a;margin-bottom:20px;padding-bottom:10px;border-bottom:2px solid #e85d04}
.comment-item{display:flex;gap:14px;padding:16px 0;border-bottom:1px solid #eaeaea}
.comment-item:last-child{border-bottom:none}
.comment-avatar{flex-shrink:0;width:44px;height:44px;border-radius:50%;overflow:hidden;background:#f0f0f0;border:2px solid #eaeaea}
.comment-avatar img{width:100%;height:100%;object-fit:cover}
.comment-body{flex:1}
.comment-meta{font-size:0.78rem;color:#999;margin-bottom:4px;display:flex;align-items:center;gap:0}
.comment-name{font-weight:700;color:#1a1a1a;font-size:0.85rem}
.comment-date{margin-left:8px}
.comment-text{font-size:0.88rem;color:#444;line-height:1.6}
.comment-form{display:flex;flex-direction:column;gap:12px;margin-top:20px}
.comment-form-row{display:flex;gap:12px}
.comment-form-col{display:flex;flex-direction:column;gap:8px;flex:1}
.comment-label{font-size:0.8rem;font-weight:600;color:#333}
.comment-input,.comment-textarea{padding:10px 14px;font-size:0.88rem;border:1px solid #ddd;border-radius:6px;background:#fafafa;transition:border-color 0.2s;width:100%;font-family:inherit;box-sizing:border-box}
.comment-input:focus,.comment-textarea:focus{outline:none;border-color:#e85d04;background:#fff}
.comment-textarea{min-height:120px;resize:vertical;line-height:1.6}
.comment-form-actions{display:flex;gap:10px;margin-top:4px}
.comment-btn{padding:10px 22px;font-size:0.85rem;font-weight:600;border-radius:6px;cursor:pointer;transition:background 0.2s;border:none}
.comment-btn-preview{background:#f0f0f0;color:#333;border:1px solid #ddd}
.comment-btn-preview:hover{background:#e0e0e0}
.comment-btn-submit{background:#e85d04;color:#fff}
.comment-btn-submit:hover{background:#d35400}

/*** Prev/Next Navigation ***/
.post-nav{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:24px;padding:24px 0;border-top:1px solid #eaeaea;border-bottom:1px solid #eaeaea}
.post-nav-item{display:flex;flex-direction:column;gap:4px;padding:14px 16px;background:#fafafa;border-radius:8px;border:1px solid #eaeaea;text-decoration:none;transition:border-color 0.2s,background 0.2s}
.post-nav-item:hover{border-color:#e85d04;background:#fff8f4}
.post-nav-item.disabled{opacity:0.45;cursor:not-allowed;pointer-events:none}
.post-nav-label{font-size:0.72rem;font-weight:700;color:#999;text-transform:uppercase;letter-spacing:0.4px}
.post-nav-title{font-size:0.88rem;font-weight:600;color:#1a1a1a;line-height:1.4}
.post-nav-item.disabled .post-nav-title{color:#999}
.post-nav-prev{text-align:left}
.post-nav-next{text-align:right}

/*** Recommended Posts ***/
.recommended-section{margin-top:28px;padding-top:24px;border-top:1px solid #eaeaea}
.recommended-title{font-family:Georgia,serif;font-size:1rem;font-weight:700;color:#1a1a1a;margin-bottom:16px;padding-bottom:10px;border-bottom:2px solid #e85d04}
.recommended-list{display:flex;flex-direction:column;gap:0}
.recommended-item{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid #eaeaea;text-decoration:none;transition:background 0.2s;border-radius:4px}
.recommended-item:last-child{border-bottom:none}
.recommended-item:hover{background:#fafafa}
.recommended-thumb{flex-shrink:0;width:90px;height:68px;border-radius:6px;overflow:hidden}
.recommended-thumb img{width:100%;height:100%;object-fit:cover}
.recommended-body{flex:1;display:flex;flex-direction:column;justify-content:center}
.recommended-item-title{font-size:0.85rem;font-weight:700;line-height:1.4;color:#1a1a1a;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:4px}
.recommended-item-title:hover{color:#e85d04}
.recommended-item-meta{font-size:0.72rem;color:#999}
@media(max-width:768px){
.post-nav{grid-template-columns:1fr}
.post-nav-next{text-align:left}
.comment-form-row{flex-direction:column}
.comment-form-col{width:100%}
}

.article-content img{width:100%;height:auto;border-radius:8px;margin:20px 0;display:block}

.article-not-found-inner{text-align:center;padding:60px 20px}
.article-not-found-inner h2{font-size:1.4rem;margin-bottom:12px;color:#333}
.article-not-found-inner p{color:#888;margin-bottom:20px}
.article-not-found-inner a{display:inline-flex;align-items:center;gap:8px;padding:10px 24px;background:#e85d04;color:#fff;border-radius:6px;font-size:0.85rem;font-weight:600}
.article-not-found-inner a:hover{background:#d35400}

/* Customizer settings and narrow-screen safeguards */
html{font-size:var(--petsblog-body-size,16px)}
body{font-size:1rem;color:var(--petsblog-text,#1a1a1a)}
.article-header .article-title{font-size:min(var(--petsblog-single-title-size,20px),36px)!important;line-height:1.4;margin:0 0 6px;display:block;overflow:visible;text-overflow:clip;white-space:normal;-webkit-line-clamp:unset;-webkit-box-orient:initial;overflow-wrap:anywhere}
.article-content h1,.article-content h2,.article-content h3,.article-content h4,.article-content h5{font-size:1.1rem;line-height:1.55;font-weight:700;margin:1.4em 0 .65em}
.article-content{color:var(--petsblog-text,#1a1a1a)}
.article-content > :first-child{margin-top:0}
.article-meta,.article-excerpt,.focus-item-excerpt,.recommended-item-meta{color:var(--petsblog-muted,#777)}
.focus-item-title a:hover,.article-title a:hover,.recommended-item-title:hover,.hot-title a:hover,.news-title a:hover{color:var(--petsblog-accent,#e85d04)}
.pagination-nav .page-num.active{background:var(--petsblog-accent,#e85d04);border-color:var(--petsblog-accent,#e85d04)}
.article-thumb{width:var(--petsblog-image-width,100px);height:var(--petsblog-image-height,80px)}
.article-thumb img,.recommended-thumb img{object-fit:var(--petsblog-image-fit,cover)}
@media(max-width:768px){
    .pagination-nav{flex-wrap:wrap;max-width:100%;gap:5px;padding:0 2px}
    .pagination .nav-links{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:5px;max-width:100%}
    .pagination-nav .page-prev,.pagination-nav .page-next{padding:0 9px}
    .pagination-nav .page-num{min-width:30px;padding:0 6px}
    .article-thumb{width:min(var(--petsblog-image-width,100px),30vw);height:min(var(--petsblog-image-height,80px),24vw)}
}
.featured-focus-row.focus-only{grid-template-columns:1fr}
.site-header{position:relative;z-index:20}
.site-header .container{overflow:visible}
.header-inner{position:relative}
.main-menu{display:flex;align-items:center;gap:2px;list-style:none}
.main-menu>li{list-style:none}
.main-menu li{position:relative}
.main-menu>li>a{display:block;padding:5px 12px;font-size:.85rem;font-weight:500;color:#fff!important;border-radius:4px;white-space:nowrap}
.main-menu>li>a:hover{background:rgba(255,255,255,.15)!important}
.main-menu .menu-item-has-children>a:after{content:' ▾';font-size:.72em;opacity:.8}
.main-menu .sub-menu{display:none;position:absolute;top:100%;left:0;z-index:1000;min-width:220px;max-width: min(320px,80vw);padding:6px 0;background:#2d2d2d;border:1px solid rgba(255,255,255,.12);border-radius:0 0 6px 6px;box-shadow:0 8px 18px rgba(0,0,0,.22)}
.main-menu li:hover>.sub-menu,.main-menu li:focus-within>.sub-menu{display:block}
.main-menu .sub-menu li{display:block;width:100%;list-style:none}
.main-menu .sub-menu a{display:block;padding:9px 14px;color:#fff!important;font-size:.84rem;line-height:1.35;white-space:normal}
.main-menu .sub-menu a:hover,.main-menu .sub-menu .current-menu-item>a{background:rgba(255,255,255,.13)!important;color:#fff!important}
.main-menu .sub-menu .sub-menu{top:0;left:100%}
.main-menu .current-menu-item>a,.main-menu .current-menu-ancestor>a{ text-decoration:underline;text-underline-offset:4px }
.menu-list{display:flex;flex-direction:column;gap:8px}
.menu-list li{padding:0}
.menu-list a{display:block;color:#555;font-size:.88rem;line-height:1.5;padding:5px 0}
.menu-list a:hover{color:var(--petsblog-accent,#e85d04)}
.pagination-nav .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:34px;padding:0 8px;font-size:.82rem;font-weight:500;color:#666;background:#fff;border:1px solid #ddd;border-radius:5px;text-decoration:none}
.pagination-nav .page-numbers.current{background:var(--petsblog-accent,#e85d04);color:#fff;border-color:var(--petsblog-accent,#e85d04)}
.pagination-nav .page-numbers.prev,.pagination-nav .page-numbers.next{padding:0 12px;font-weight:600}
.pagination-nav .page-numbers.dots{background:transparent;border-color:transparent;min-width:22px;padding:0}
.pagination-nav a.page-numbers:hover{background:#2d2d2d;color:#fff;border-color:#2d2d2d}
@media(max-width:768px){
    .pagination-nav .page-numbers{min-width:30px;padding:0 6px}
    .pagination-nav .page-numbers.prev,.pagination-nav .page-numbers.next{padding:0 8px}
    .main-menu{width:100%;flex-direction:column;align-items:stretch}
    .main-menu>li,.main-menu>li>a{width:100%}
    .main-menu>li>a{padding:12px 16px;text-align:left}
    .main-menu .sub-menu,.main-menu .sub-menu .sub-menu{display:block;position:static;min-width:0;max-width:100%;padding:0 0 6px 14px;background:#252525;border:0;border-radius:0;box-shadow:none}
    .main-menu .sub-menu a{padding:9px 16px;font-size:.84rem}
    .main-menu .menu-item-has-children>a:after{content:' ↓'}
}

/* Tighter spacing on single article pages only. */
body.single-post .main-content{padding-top:var(--petsblog-single-top-spacing,10px)}
body.single-post .left-column{gap:var(--petsblog-single-block-spacing,8px)}
body.single-post .article-featured-img{margin:0}
body.single-post .article-header{margin:0;padding:0 0 4px;border-bottom:0}
body.single-post .article-header .article-title{margin:0 0 2px}
body.single-post .article-content > :first-child{margin-top:0}
@media(max-width:480px){.site-logo-image{max-width:min(var(--petsblog-logo-width,220px),180px);max-height:min(var(--petsblog-logo-height,48px),42px)}}

/* v3.1: tighten the homepage start and present editable footer links in one row. */
body.home .main-content,body.front-page .main-content{padding-top:16px}
.footer-links{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:24px;margin:0 0 8px}
.footer-links .footer-menu{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;column-gap:24px;row-gap:6px;margin:0;padding:0;list-style:none}
.footer-links .footer-menu li{list-style:none;margin:0;padding:0}
.footer-links a{color:inherit;text-decoration:none;font-size:.85rem}
.footer-links a:hover{color:#fff;text-decoration:underline}
.footer-copyright{margin:0}

/* Keep the reduced homepage gap explicit on phones as well as desktop. */
@media(max-width:768px){body.home .main-content,body.front-page .main-content{padding-top:10px!important}}
/* Identify the homepage by its unique carousel/focus row, independent of WP front-page settings. */
@supports selector(.main-content:has(.featured-focus-row)){
    .main-content:has(.featured-focus-row){padding-top:10px!important}
}

.site-logo-image{display:block;width:auto;height:auto;max-width:var(--petsblog-logo-width,220px);max-height:min(var(--petsblog-logo-height,48px),40px);object-fit:contain}
@media(max-width:480px){.site-logo-image{max-width:min(var(--petsblog-logo-width,220px),180px);max-height:min(var(--petsblog-logo-height,48px),42px)}}

/* Typography sizes controlled from Appearance > Theme Settings. */
.carousel-title-overlay h3{font-size:calc(var(--petsblog-heading-size,22px)*.75)}
.focus-title,.articles-title,.widget-title,.recommended-title{font-size:calc(var(--petsblog-heading-size,22px)*.73)}
.focus-item-title,.article-title,.hot-title,.news-title,.recommended-item-title{font-size:calc(var(--petsblog-heading-size,22px)*.65)}
.article-content h1,.article-content h2,.article-content h3,.article-content h4,.article-content h5{font-size:calc(var(--petsblog-heading-size,22px)*.78)}

/* v3.3: reduce the collapsed mobile header height while keeping menu rows easy to tap. */
@media(max-width:768px){
    .header-inner{padding:4px 0!important;gap:6px!important}
    .site-logo{font-size:1.25rem;line-height:1.3}
    .site-logo-image{max-height:min(var(--petsblog-logo-height,48px),30px)!important}
    .menu-toggle{width:38px;height:34px;padding:6px}
}


