/*
Theme Name: Apple Style Blog
Theme URI: https://qinzhouyun.com
Author: ffblog
Author URI: https://qinzhouyun.com
Description: classic two-columns blog theme
Version: 1.0
License URI: https://qinzhouyun.com
Text Domain: apple-style-blog
Tags: blog, two-columns
*/

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global Link Styles */
a {
    color: #0071e3;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
}

/* User List Page Styles */
.user-list-section {
    margin: 40px -30px;
    padding: 20px 30px;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    width: calc(100% + 60px);
    box-sizing: border-box;
}

.user-list-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #1d1d1f;
    text-align: center;
}

.user-grid {
    display: grid;
    grid-template-columns: repeat(6, calc((100% - 100px) / 6));
    gap: 20px;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
}

.user-item {
    background-color: #f5f5f7;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e3e3e3;
}

.user-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #0071e3;
}

.user-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.user-avatar-container {
    margin-bottom: 15px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-avatar-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1d1d1f;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.user-posts-count {
    font-size: 12px;
    color: #6e6e73;
    font-weight: 500;
}

/* Responsive User Grid */
@media (max-width: 1024px) {
    .user-grid {
        grid-template-columns: repeat(5, calc((100% - 60px) / 5));
        gap: 15px;
    }
    
    .user-list-section {
        margin: 40px -20px;
        padding: 20px;
        width: calc(100% + 40px);
    }
}

@media (max-width: 768px) {
    .user-grid {
        grid-template-columns: repeat(4, calc((100% - 45px) / 4));
        gap: 15px;
    }
}

@media (max-width: 640px) {
    .user-grid {
        grid-template-columns: repeat(3, calc((100% - 24px) / 3));
        gap: 12px;
    }
    
    .user-item {
        padding: 12px;
    }
    
    .user-avatar-container {
        width: 70px;
        height: 70px;
    }
    
    .user-name {
        font-size: 14px;
    }
    
    .user-list-section {
        margin: 30px -15px;
        padding: 15px;
        width: calc(100% + 30px);
    }
}

@media (max-width: 480px) {
    .user-grid {
        grid-template-columns: repeat(2, calc((100% - 10px) / 2));
        gap: 10px;
    }
}

@media (max-width: 320px) {
    .user-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f7;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Container */
.container {
    max-width: 1020px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    width: 100%;
    box-sizing: border-box;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e3e3e3;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 0;
    position: relative;
}

.logo {
    font-size: 24px;
    font-weight: 600;
    color: #1d1d1f;
    text-decoration: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #1d1d1f;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.menu li {
    margin: 0;
    position: relative;
}

.menu a {
    text-decoration: none;
    color: #1d1d1f;
    font-weight: 400;
    transition: color 0.3s ease;
    padding: 8px 0;
    display: block;
}

/* Submenu styles */
.menu ul {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 180px;
    z-index: 1000;
    list-style: none;
}

.menu li:hover > ul {
    display: block;
    animation: fadeIn 0.3s ease;
}

.menu ul li {
    margin: 0;
}

.menu ul a {
    padding: 8px 20px;
    font-size: 14px;
    border-radius: 0;
}

.menu ul a:hover {
    background-color: #f5f5f7;
    color: #1d1d1f;
}

/* Submenu arrow indicator */
.menu li.menu-item-has-children > a::after {
    content: '▾';
    font-size: 12px;
    margin-left: 8px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.menu li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.menu a:hover {
    color: #0071e3;
}

/* Main Content */
.main-content {
    display: flex;
    gap: 25px;
    margin: 90px 0 30px;
}

/* Single post page specific styling */
body.single .main-content {
    margin: 90px 0 30px;
}

/* Left Column */
.left-column {
    width: 720px;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Add padding to left-column when it contains single-post */
.left-column:has(.single-post) {
    padding: 30px;
}

/* Slider */
.slider {
    position: relative;
    height: 288px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 30px 20px 20px;
}

.slide-content h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.slide-content .excerpt {
    font-size: 14px;
    opacity: 0.9;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slide:hover + .slider-nav,
.slider-nav:hover {
    opacity: 1;
}

.slider-nav button {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slider-nav button:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

/* Tabs */
.tabs {
    padding: 20px;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid #e3e3e3;
    margin-bottom: 20px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    color: #6e6e73;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: #0071e3;
    border-bottom-color: #0071e3;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Post List */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-item {
    display: flex;
    gap: 20px;
    padding: 15px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.post-item:hover {
    background-color: #f9f9f9;
}

.post-thumbnail {
    width: 120px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 500ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
}

.post-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    transition: all 500ms ease;
}

.post-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    overflow: hidden;
}

.post-info {
    flex: 1;
}

.post-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1d1d1f;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}

.post-title:hover {
    color: #0071e3;
}

.post-meta {
    font-size: 13px;
    color: #86868b;
    display: flex;
    gap: 12px;
}

/* Right Column */
.right-column {
    width: 290px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.widget {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.widget h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1d1d1f;
    padding-bottom: 10px;
    border-bottom: 1px solid #e3e3e3;
}

.widget h3 .category-count {
    font-size: 14px;
    font-weight: 400;
    color: #86868b;
    margin-left: 8px;
    vertical-align: middle;
}

/* Recent Posts Widget */
.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recent-post-item {
    display: flex;
    gap: 12px;
}

.recent-post-thumbnail {
    width: 60px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 500ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
}

.recent-post-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.recent-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    transition: all 500ms ease;
}

.recent-post-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    overflow: hidden;
}

.recent-post-title {
    font-size: 14px;
    color: #1d1d1f;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    line-height: 1.4;
}

.recent-post-title:hover {
    color: #0071e3;
}

/* Comments Widget */
.comment-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-author {
    font-size: 13px;
    font-weight: 500;
    color: #1d1d1f;
    margin-bottom: 4px;
}

.comment-link {
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 2px 0;
    border-radius: 4px;
}

.comment-link:hover {
    background-color: rgba(0, 113, 227, 0.05);
    padding: 2px 8px;
    margin: 0 -8px;
}

.comment-content {
    font-size: 12px;
    color: #6e6e73;
    line-height: 1.4;
}

/* Stats Widget */
.stats-list {
    list-style: none;
}

.stats-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: #6e6e73;
}

.stats-list li span:first-child {
    color: #1d1d1f;
}

/* Footer */
footer {
    background-color: white;
    border-top: 1px solid #e3e3e3;
    margin-top: 40px;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1d1d1f;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #6e6e73;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #0071e3;
}

/* Copyright */
.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e3e3e3;
    color: #86868b;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 980px) {
    .main-content {
        flex-direction: column;
    }
    
    .left-column,
    .right-column {
        width: 100%;
    }
    
    .right-column {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .widget {
        flex: 1;
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .post-item {
        flex-direction: column;
    }
    
    .post-thumbnail {
        width: 100%;
        height: 200px;
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    }
    
    .post-thumbnail:hover {
        transform: scale(1.02);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    }
    
    .slider {
        height: 300px;
    }
    
    /* Mobile Menu */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .menu {
        position: fixed;
        top: 70px;
        right: 20px;
        left: 20px;
        flex-direction: column;
        background-color: white;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        border-radius: 12px;
        padding: 15px 20px;
        gap: 10px;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        opacity: 0;
        transition: all 0.3s ease;
        display: none;
        z-index: 9999;
    }

    .menu.show {
        display: flex;
        opacity: 1;
    }

    .menu li {
        border-bottom: 1px solid #f0f0f0;
        position: relative;
    }

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

    .menu a {
        padding: 12px 0;
        font-size: 16px;
    }
    
    /* Mobile submenu styles */
    .menu ul {
        position: static;
        box-shadow: none;
        padding: 0 0 0 20px;
        min-width: auto;
        display: none;
    }
    
    .menu ul li {
        border-bottom: none;
    }
    
    .menu ul a {
        padding: 8px 0;
        font-size: 14px;
    }
    
    /* Show submenu indicator on mobile */
    .menu li.menu-item-has-children > a::after {
        content: '▸';
        font-size: 12px;
        margin-left: 8px;
        vertical-align: middle;
        transition: transform 0.3s ease;
    }
    
    /* Change arrow direction when submenu is open */
    .menu li.menu-item-has-children.submenu-open > a::after {
        transform: rotate(90deg);
    }
    
    /* Mobile Menu Toggle Animation */
    .mobile-menu-toggle.active span:first-child {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:last-child {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* Apple Style UI Placeholder */
.apple-placeholder {
    background-image: linear-gradient(to bottom right, #eff6ff 0%, #f3e8ff 100%);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #cbd5e1;
    position: relative;
    overflow: hidden;
}

/* Dark mode support for placeholder */
@media (prefers-color-scheme: dark) {
    .apple-placeholder {
        background-image: linear-gradient(to bottom right, #374151 0%, #4b5563 100%);
        color: #6b7280;
    }
}

.apple-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    animation: apple-shine 3s infinite;
}

@keyframes apple-shine {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid #e3e3e3;
}

.pagination ul {
    list-style: none;
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.pagination li {
    margin: 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    text-decoration: none;
    color: #6e6e73;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease;
    background-color: #f5f5f7;
    border: 1px solid transparent;
}

.pagination a:hover {
    background-color: #e3e3e3;
    color: #1d1d1f;
}

.pagination .current {
    background-color: #0071e3;
    color: white;
    border-color: #0071e3;
}

.pagination .prev,
.pagination .next {
    background-color: transparent;
    color: #6e6e73;
}

.pagination .prev:hover,
.pagination .next:hover {
    background-color: #f5f5f7;
    color: #1d1d1f;
}

.pagination .dots {
    background-color: transparent;
    color: #6e6e73;
    cursor: default;
}

/* Single Post Styling */
.single-post {
    /* padding: 30px; */
    padding: 0;
}

.single-post .post-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e3e3e3;
}

.single-post .post-title {
    font-size: 30px;
    font-weight: 600;
    color: #1d1d1f;
    line-height: 1.2;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.single-post .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
    color: #86868b;
}

.single-post .post-meta .category {
    background-color: #f0f0f0;
    color: #6e6e73;
    padding: 1px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.single-post .post-thumbnail {
    width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 500ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
}

.single-post .post-thumbnail:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.single-post .post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    transition: all 500ms ease;
}

.single-post .post-content {
    font-size: 16px;
    line-height: 1.7;
    color: #1d1d1f;
    margin-bottom: 40px;
}

.single-post .post-content p {
    margin-bottom: 20px;
}

.single-post .post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
}

.single-post .post-content h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 30px 0 15px;
    letter-spacing: -0.3px;
}

.single-post .post-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 25px 0 12px;
    letter-spacing: -0.2px;
}

.single-post .post-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 20px 0 10px;
}

.single-post .post-content ul,
.single-post .post-content ol {
    margin: 20px 0;
    padding-left: 25px;
}

.single-post .post-content li {
    margin-bottom: 10px;
}

.single-post .post-content a {
    color: #0071e3;
    text-decoration: none;
    transition: color 0.2s ease;
}

.single-post .post-content a:hover {
    color: #005bb5;
    text-decoration: underline;
}

.single-post .post-content blockquote {
    border-left: 4px solid #0071e3;
    padding-left: 20px;
    margin: 25px 0;
    font-style: italic;
    color: #6e6e73;
}

.single-post .post-content code {
    background-color: #f5f5f7;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, Inconsolata, monospace;
    font-size: 14px;
    color: #d73a49;
}

.single-post .post-content pre {
    background-color: #f5f5f7;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 25px 0;
    font-family: 'SF Mono', Monaco, Inconsolata, monospace;
    font-size: 13px;
    line-height: 1.5;
}

.single-post .post-footer {
    padding: 25px 0;
    border-top: 1px solid #e3e3e3;
    border-bottom: 1px solid #e3e3e3;
    margin-bottom: 30px;
}

.single-post .post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.single-post .post-tags:before {
    content: '标签: ';
    font-size: 14px;
    color: #6e6e73;
    font-weight: 500;
}

.single-post .post-tags a {
    background-color: #f0f0f0;
    color: #6e6e73;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.single-post .post-tags a:hover {
        background-color: #0071e3;
        color: white;
    }

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin: 30px 0 0;
    border-top: 1px solid #e3e3e3;
}

.post-navigation a {
    text-decoration: none;
    color: #6e6e73;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    background-color: #f5f5f7;
}

.post-navigation a:hover {
    color: #0071e3;
    background-color: rgba(0, 113, 227, 0.1);
    transform: translateY(-1px);
}

.prev-post {
    margin-right: auto;
}

.next-post {
    margin-left: auto;
}

.nav-arrow {
        font-size: 16px;
        font-weight: 600;
    }

/* Responsive Post Navigation */
@media (max-width: 768px) {
    .post-navigation {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .prev-post,
    .next-post {
        margin: 0;
        text-align: center;
    }
    
    .post-navigation a {
        justify-content: center;
        padding: 12px 20px;
        font-size: 15px;
    }
}

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

.comment-reply-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 15px;
    display: inline-block;
    vertical-align: middle;
}

.comment-notes {
    font-size: 12px;
    color: #86868b;
    margin-bottom: 15px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 15px;
}

.comment-list,
.comment-list ol,
.comment-list ul,
.comment-list li {
    list-style: none;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

/* Remove any default WordPress comment list styling */
ol.comment-list,
ol.comment-list ol,
ul.children {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Custom comment styles */
.comments-area {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e3e3e3;
}

.comments-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 15px;
    line-height: 1.2;
}

.comment-list-wrapper {
    margin-bottom: 30px;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment {
    background-color: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.comment-body {
    display: flex;
    gap: 15px;
}

.comment-author-avatar {
    flex-shrink: 0;
}

.comment-author-avatar .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-content-wrapper {
    flex: 1;
    min-width: 0;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.comment-author-name {
    font-weight: 600;
    color: #1d1d1f;
    font-size: 14px;
}

.comment-metadata {
    font-size: 12px;
    color: #86868b;
}

.comment-metadata a {
    color: #86868b;
    text-decoration: none;
}

.comment-content {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 12px;
    word-wrap: break-word;
}

.comment-awaiting-moderation {
    font-size: 13px;
    color: #ff9500;
    margin-bottom: 12px;
    font-style: italic;
}

.comment-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.comment-actions a {
    font-size: 12px;
    color: #0071e3;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 6px;
    background-color: rgba(0, 113, 227, 0.05);
}

/* Pingback styles */
.pingback-entry {
    padding: 15px;
    background-color: #fafafa;
    border-radius: 8px;
    border-left: 3px solid #0071e3;
}

.pingback-title {
    font-size: 13px;
    font-weight: 500;
    color: #6e6e73;
    margin-bottom: 5px;
}

.pingback-bullet {
    color: #0071e3;
    margin-right: 6px;
}

.pingback-url {
    font-size: 12px;
    color: #0071e3;
    word-break: break-all;
}

/* Comment form styles */
.comment-form {
    background-color: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.comment-form .comment-form-comment {
    margin-bottom: 15px;
}

.comment-form textarea {
    min-height: 100px;
    padding: 15px;
    font-size: 14px;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    background-color: #ffffff;
    resize: vertical;
}

.comment-form textarea:focus {
    border-color: #0071e3;
    box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.1);
    outline: none;
}

.comment-form .comment-form-author,
.comment-form .comment-form-email {
    width: 100%;
    margin-bottom: 15px;
}

@media (min-width: 768px) {
    .comment-form .comment-form-author,
    .comment-form .comment-form-email {
        width: 48%;
        display: inline-block;
        vertical-align: top;
    }
    
    .comment-form .comment-form-author {
        margin-right: 4%;
    }
}

.comment-form input {
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    background-color: #ffffff;
}

.comment-form input:focus {
    border-color: #0071e3;
    box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.1);
    outline: none;
}

.comment-form input::placeholder,
.comment-form textarea::placeholder {
    color: #86868b;
    font-style: italic;
}

.comment-form .form-submit {
    margin-top: 15px;
    text-align: right;
}

.comment-form #submit {
    background-color: #0071e3;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

/* Logged in message */
.logged-in-as {
    font-size: 13px;
    color: #6e6e73;
    margin-bottom: 20px;
    padding: 12px;
    background-color: #f5f5f7;
    border-radius: 8px;
}

.logged-in-as a {
    color: #0071e3;
    text-decoration: none;
}

/* Comment pagination */
.comments-pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid #e3e3e3;
}

.comments-pagination .nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.comments-pagination a,
.comments-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    text-decoration: none;
    color: #6e6e73;
    font-size: 14px;
    font-weight: 400;
    background-color: #f5f5f7;
    border: 1px solid transparent;
}

.comments-pagination .current {
    background-color: #0071e3;
    color: white;
    font-weight: 500;
}

.comments-pagination .prev,
.comments-pagination .next {
    width: auto;
    padding: 0 15px;
}

.comments-pagination .nav-arrow {
    font-size: 16px;
    font-weight: 600;
}

.comment {
    margin-bottom: 20px;
    padding: 20px;
    background-color: #fafafa;
    border-radius: 8px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.comment-author .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.comment-author .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.comment-author .fn {
    font-weight: 600;
    color: #1d1d1f;
    font-size: 14px;
}

.comment-metadata {
    font-size: 12px;
    color: #86868b;
}

.comment-content {
    font-size: 15px;
    line-height: 1.6;
    color: #1d1d1f;
    margin-bottom: 15px;
}

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

.reply {
    font-size: 13px;
}

.reply a {
    color: #0071e3;
    text-decoration: none;
    font-weight: 500;
}

.reply a:hover {
    text-decoration: underline;
}

.comment-respond {
    margin-top: 30px;
    padding: 25px;
    background-color: #fafafa;
    border-radius: 8px;
}

/* Optimize comment form layout */
.comment-form {
    display: flex;
    flex-direction: column;
}

/* Name and email in two columns */
.comment-form .comment-form-author,
.comment-form .comment-form-email {
    width: 48%;
    display: inline-block;
    vertical-align: top;
}

.comment-form .comment-form-author {
    margin-right: 4%;
}

/* Stack on mobile */
@media (max-width: 768px) {
    .comment-form .comment-form-author,
    .comment-form .comment-form-email {
        width: 100%;
        margin-right: 0;
    }
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1f;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e3e3e3;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 15px;
    transition: all 0.2s ease;
    background-color: white;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #0071e3;
    box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.1);
}

/* Reduce comment box height */
.comment-form textarea {
    resize: vertical;
    min-height: 80px;
}

.comment-form .form-submit {
    margin-top: 10px;
}

/* Make submit button smaller */
.comment-form #submit {
    background-color: #0071e3;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.comment-form #submit:hover {
    background-color: #005bb5;
    transform: translateY(-1px);
    box-shadow: 0 1px 4px rgba(0, 113, 227, 0.2);
}

/* Full Width Page Styles */
.main-content.full-width {
    justify-content: center;
}

.left-column.full-width {
    width: 100%;
    max-width: 980px;
}

/* Image styling */
img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Author Profile Styles */
.author-profile-section {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.author-profile-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.author-left-column {
    flex: 3;
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.author-right-column {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.author-info {
    flex: 1;
    min-width: 0;
}

.author-name {
    font-size: 28px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 10px;
    line-height: 1.2;
}

.author-description {
    font-size: 15px;
    color: #6e6e73;
    line-height: 1.6;
    margin-bottom: 20px;
}

.author-basic-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.author-actions-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: transparent;
    padding: 0;
    min-width: auto;
    box-shadow: none;
}





.action-text {
    font-weight: 400;
}

.action-count {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    margin-left: 4px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.stat-label {
    font-size: 13px;
    color: #86868b;
    margin-bottom: 5px;
    font-weight: 500;
}

.stat-value {
    font-size: 12px;
    font-weight: 400;
    color: #1d1d1f;
}

/* Author Tab Navigation */
.author-tabs {
    display: flex;
    border-bottom: 1px solid #e3e3e3;
    margin-bottom: 25px;
}

.author-tabs .tab-btn {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    color: #6e6e73;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.author-tabs .tab-btn:hover {
    color: #0071e3;
}

.author-tabs .tab-btn.active {
    color: #0071e3;
    border-bottom-color: #0071e3;
}

/* Author Tab Content */
.author-tab-content {
    min-height: 300px;
}

.author-tab-content .tab-content {
    display: none;
}

.author-tab-content .tab-content.active {
    display: block;
}

/* Author Comments List */
.author-comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.author-comment-item {
    background-color: #fafafa;
    border-radius: 8px;
    padding: 18px;
    border: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.author-comment-item:hover {
    background-color: #f5f5f5;
    border-color: #e3e3e3;
}

.author-comment-item .comment-content {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 12px;
    word-wrap: break-word;
}

.author-comment-item .comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #86868b;
    flex-wrap: wrap;
    gap: 10px;
}

.author-comment-item .comment-post-title {
    color: #0071e3;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.author-comment-item .comment-post-title:hover {
    color: #005bb5;
    text-decoration: underline;
}

.author-comment-item .comment-date {
    color: #a1a1a6;
}

/* Responsive Author Profile */
@media (max-width: 768px) {
    .author-profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    
    .author-name {
        font-size: 24px;
    }
    
    .author-stats {
        justify-content: center;
        gap: 20px;
    }
    
    .author-tabs {
        justify-content: center;
    }
    
    .author-tabs .tab-btn {
        padding: 10px 18px;
        font-size: 14px;
    }
}


/* Category Page Styles */
.category-header {
    padding: 32px 20px;
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.05) 0%, rgba(0, 113, 227, 0.1) 100%);
    border-bottom: 1px solid rgba(0, 113, 227, 0.1);
}

.category-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    color: #1d1d1f;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.category-title .category-count {
    font-size: 18px;
    font-weight: 400;
    color: #86868b;
    background: rgba(134, 134, 139, 0.1);
    padding: 4px 12px;
    border-radius: 16px;
}

.category-description {
    font-size: 16px;
    line-height: 1.6;
    color: #6e6e73;
    margin: 0;
    padding: 0 20px;
    margin-bottom: 20px;
}

/* Category Links */
.category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
    margin-bottom: 25px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e3e3e3;
}

/* Category Post List */
.left-column .post-list {
    padding: 0 20px 20px;
}

/* Category Pagination */
.left-column .pagination {
    margin: 0 20px 30px;
    padding: 20px 0 0;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    background-color: white;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.category-link:hover {
    color: #0071e3;
    border-color: #0071e3;
    background-color: white;
    box-shadow: 0 2px 6px rgba(0, 113, 227, 0.15);
    transform: translateY(-1px);
}

.category-link.active {
    color: white;
    border-color: #0071e3;
    background-color: #0071e3;
    box-shadow: 0 2px 6px rgba(0, 113, 227, 0.25);
    font-weight: 600;
}

.category-link.active:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-1px);
}

.category-link .count {
    font-size: 12px;
    font-weight: 400;
    color: rgba(85, 85, 85, 0.7);
}

.category-link.active .count {
    color: rgba(255, 255, 255, 0.9);
}

/* Category Widget Styles */
.widget_categories {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.widget_categories h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1d1d1f;
    padding-bottom: 10px;
    border-bottom: 1px solid #e3e3e3;
}

.widget_categories ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.widget_categories li {
    margin: 0;
    position: relative;
}

.widget_categories a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: #6e6e73;
    font-size: 14px;
    font-weight: 400;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background-color: transparent;
    border: 1px solid transparent;
}

.widget_categories a:hover {
    color: #0071e3;
    background-color: rgba(0, 113, 227, 0.05);
    border-color: rgba(0, 113, 227, 0.1);
    transform: translateX(4px);
}

.widget_categories a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background-color: #0071e3;
    border-radius: 0 3px 3px 0;
    transition: height 0.3s ease;
}

.widget_categories a:hover::before {
    height: 70%;
}

.widget_categories .count {
    font-size: 12px;
    font-weight: 500;
    color: #86868b;
    background-color: rgba(134, 134, 139, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.widget_categories a:hover .count {
    color: #0071e3;
    background-color: rgba(0, 113, 227, 0.1);
}

/* Footer Category Styles */
.footer-links .cat-item {
    margin-bottom: 8px;
}

.footer-links .cat-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    text-decoration: none;
    color: #6e6e73;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 16px;
}

.footer-links .cat-item a::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #0071e3;
    font-size: 12px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links .cat-item a:hover {
    color: #0071e3;
    padding-left: 24px;
}

.footer-links .cat-item a:hover::before {
    opacity: 1;
    left: 8px;
}

.footer-links .cat-item .count {
    font-size: 12px;
    color: #86868b;
    background-color: rgba(134, 134, 139, 0.1);
    padding: 2px 6px;
    border-radius: 10px;
}

/* Responsive Category Styles */
@media (max-width: 768px) {
    .category-header {
        padding: 24px 16px;
    }
    
    .category-title {
        font-size: 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .category-title .category-count {
        font-size: 16px;
    }
    
    .category-description {
        padding: 0 16px;
        font-size: 15px;
    }
    
    .category-links {
        padding: 16px;
        gap: 8px;
    }
    
    .category-link {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .widget_categories {
        padding: 16px;
    }
    
    .widget_categories a {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* Mobile Optimization Enhancements */
@media (max-width: 768px) {
    /* Base Styles Optimization */
    body {
        font-size: 15px;
        line-height: 1.65;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* Container Optimization */
    .container {
        padding: 0 12px;
    }
    
    /* Main Content Spacing */
    .main-content {
        margin: 80px 0 20px;
    }
    
    /* Post Item Mobile Enhancements */
    .post-item {
        padding: 12px;
        gap: 15px;
    }
    
    .post-title {
        font-size: 17px;
        line-height: 1.4;
    }
    
    .post-meta {
        font-size: 12px;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    /* Single Post Mobile Optimizations */
    .left-column:has(.single-post) {
        padding: 20px;
    }
    
    .single-post .post-title {
        font-size: 24px;
        line-height: 1.3;
        margin-bottom: 12px;
    }
    
    .single-post .post-meta {
        font-size: 13px;
        gap: 12px;
    }
    
    .single-post .post-content {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .single-post .post-content h2 {
        font-size: 22px;
        margin: 25px 0 12px;
    }
    
    .single-post .post-content h3 {
        font-size: 19px;
        margin: 20px 0 10px;
    }
    
    .single-post .post-content h4 {
        font-size: 17px;
    }
    
    /* Improve readability for lists on mobile */
    .single-post .post-content ul,
    .single-post .post-content ol {
        padding-left: 20px;
        margin: 15px 0;
    }
    
    .single-post .post-content li {
        margin-bottom: 8px;
    }
    
    /* Blockquote styling for mobile */
    .single-post .post-content blockquote {
        padding-left: 15px;
        margin: 20px 0;
    }
    
    /* Code styling for mobile */
    .single-post .post-content pre {
        padding: 15px;
        font-size: 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Header and Navigation */
    nav .container {
        padding: 12px 15px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    /* Mobile Menu Enhancements */
    .menu {
        top: 65px;
        left: 15px;
        right: 15px;
        padding: 12px 15px;
    }
    
    .menu a {
        padding: 10px 0;
        font-size: 15px;
    }
    
    /* Submenu styling for mobile */
    .menu ul {
        padding: 0 0 0 15px;
    }
    
    .menu ul a {
        padding: 8px 0;
        font-size: 14px;
    }
    
    /* Widget Optimizations */
    .widget {
        padding: 16px;
    }
    
    .widget h3 {
        font-size: 17px;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }
    
    /* Recent Posts Widget */
    .recent-posts-list {
        gap: 12px;
    }
    
    .recent-post-item {
        gap: 10px;
    }
    
    .recent-post-thumbnail {
        width: 55px;
        height: 35px;
    }
    
    .recent-post-title {
        font-size: 13px;
        line-height: 1.3;
    }
    
    /* Comment Form Optimizations */
    .comment-form textarea {
        min-height: 120px;
        padding: 12px;
        font-size: 15px;
    }
    
    .comment-form input {
        padding: 12px;
        font-size: 15px;
    }
    
    .comment-form label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .comment-form #submit {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
    }
    
    /* Comment List Optimizations */
    .comment {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .comment-body {
        gap: 12px;
    }
    
    .comment-author-avatar .avatar {
        width: 32px;
        height: 32px;
    }
    
    .comment-author-name {
        font-size: 13px;
    }
    
    .comment-content {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .comment-actions {
        gap: 8px;
    }
    
    .comment-actions a {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    /* Footer Optimizations */
    footer {
        padding: 30px 0 20px;
    }
    
    .footer-content {
        gap: 20px;
        margin-bottom: 20px;
    }
    
    .footer-column {
        min-width: 100%;
    }
    
    .footer-column h4 {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .footer-links li {
        margin-bottom: 8px;
    }
    
    .footer-links a {
        font-size: 13px;
    }
    
    .copyright {
        font-size: 12px;
        padding: 0 15px;
    }
    
    /* Slider Optimizations */
    .slider {
        height: 250px;
    }
    
    .slide-content {
        padding: 25px 15px 15px;
    }
    
    .slide-content h2 {
        font-size: 20px;
        margin-bottom: 6px;
    }
    
    .slide-content .excerpt {
        font-size: 13px;
    }
    
    /* Tab Navigation for Mobile */
    .tabs {
        padding: 15px;
    }
    
    .tab-buttons {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        margin-bottom: 15px;
        padding-bottom: 5px;
    }
    
    .tab-btn {
        padding: 10px 18px;
        font-size: 14px;
        display: inline-block;
    }
    
    /* Pagination Optimizations */
    .pagination {
        margin: 20px 0 0;
        padding: 15px 0 0;
    }
    
    .pagination a,
    .pagination span {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }
    
    /* Author Profile Optimizations */
    .author-profile-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .author-profile-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .author-left-column {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    
    .author-right-column {
        justify-content: center;
    }
    
    .author-avatar img {
        width: 100px;
        height: 100px;
    }
    
    .author-name {
        font-size: 22px;
        margin-bottom: 8px;
    }
    
    .author-description {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .author-basic-stats {
        gap: 20px;
        justify-content: center;
    }
    
    /* Improve touch targets */
    .toolbar-item,
    .author-action-btn,
    .comment-form #submit,
    .post-navigation a,
    .pagination a,
    .mobile-menu-toggle {
        -webkit-tap-highlight-color: rgba(0, 113, 227, 0.2);
        touch-action: manipulation;
    }
    
    /* Prevent text zoom on focus (iOS) */
    input,
    textarea,
    select {
        font-size: 16px !important;
    }
    
    /* Smooth scrolling for mobile */
    html {
        scroll-behavior: smooth;
    }
    
    /* Optimize images for mobile */
    img {
        max-width: 100%;
        height: auto;
        display: block;
    }
    
    /* Improve share dropdown for mobile */
    .share-dropdown {
        left: 50px;
        min-width: 140px;
    }
    
    /* QR Code Modal for mobile */
    .qr-code-modal-content {
        margin: 20px;
        padding: 15px;
    }
    
    /* Return to top button adjustments */
    .return-top-btn {
        opacity: 1;
        visibility: visible;
    }
}

/* Mobile Landscape Optimization */
@media (max-width: 1024px) and (orientation: landscape) {
    .slider {
        height: 200px;
    }
    
    .post-item {
        flex-direction: row;
        gap: 15px;
    }
    
    .post-thumbnail {
        width: 100px;
        height: 70px;
    }
    
    .right-column {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .widget {
        flex: 1;
        min-width: 200px;
    }
}

/* Small Screen Mobile Optimization */
@media (max-width: 375px) {
    .container {
        padding: 0 10px;
    }
    
    .single-post .post-title {
        font-size: 22px;
    }
    
    .left-column:has(.single-post) {
        padding: 15px;
    }
    
    .post-item {
        padding: 10px;
    }
    
    .widget {
        padding: 14px;
    }
}

/* Members List Styles - Modern Design */
.members-section {
    padding: 30px 0;
}

.members-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.members-header .page-title {
    margin: 0 0 10px;
    font-size: 32px;
    color: #2c3e50;
    font-weight: 700;
}

.members-description {
    margin: 0;
    color: #7f8c8d;
    font-size: 16px;
    line-height: 1.6;
}

.members-list-wrapper {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.members-list {
    display: flex;
    flex-direction: column;
}

.member-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    background: #ffffff;
}

.member-item:last-child {
    border-bottom: none;
}

.member-item:hover {
    background: linear-gradient(90deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateX(5px);
    box-shadow: inset 4px 0 0 #0071e3;
}

.member-rank {
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background: #0071e3;
    color: #ffffff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.member-avatar {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 3px solid #ffffff;
}

.member-item:hover .member-avatar {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 113, 227, 0.3);
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info {
    flex: 1;
    min-width: 0;
}

.member-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.member-name {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.member-name a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.member-name a:hover {
    color: #0071e3;
}

.member-role {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

.member-description {
    margin: 0 0 12px;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-meta {
    display: flex;
    align-items: center;
}

.member-stats {
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #868e96;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.stat-item i {
    color: #adb5bd;
    font-size: 15px;
    transition: color 0.3s ease;
}

.member-item:hover .stat-item {
    color: #495057;
}

.member-item:hover .stat-item i {
    color: #0071e3;
}

.stat-item strong {
    color: #2c3e50;
    font-weight: 600;
}

.no-members {
    text-align: center;
    padding: 80px 20px;
    color: #adb5bd;
    background: #ffffff;
}

.no-members i {
    display: block;
    font-size: 60px;
    margin-bottom: 20px;
    color: #dee2e6;
}

.no-members p {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

/* Responsive design for members list */
@media (max-width: 768px) {
    .members-header {
        padding: 15px;
    }
    
    .members-header .page-title {
        font-size: 24px;
    }
    
    .member-item {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }
    
    .member-rank {
        order: 1;
        margin-bottom: 15px;
    }
    
    .member-avatar {
        order: 2;
        margin-bottom: 15px;
        width: 100px;
        height: 100px;
    }
    
    .member-info {
        order: 3;
    }
    
    .member-name-row {
        justify-content: center;
    }
    
    .member-meta {
        justify-content: center;
    }
    
    .member-stats {
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .stat-item {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .members-description {
        font-size: 14px;
    }
    
    .member-item {
        padding: 20px 15px;
    }
    
    .member-name {
        font-size: 18px;
    }
    
    .member-role {
        font-size: 11px;
        padding: 3px 10px;
    }
    
    .member-stats {
        gap: 12px;
    }
}

/* Readers Wall Styles */
.readers-wall {
    margin-top: 40px;
    margin-left: -30px;
    margin-right: -30px;
    padding: 30px 0;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.readers-wall .readers-title,
.readers-wall .readers-desc {
    max-width: 1020px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.readers-list {
    max-width: 1020px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.readers-title {
    font-size: 24px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 10px;
    text-align: center;
}

.readers-desc {
    font-size: 16px;
    color: #666;
    text-align: center;
    margin-bottom: 30px;
}

.reader-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.reader-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.reader-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.reader-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reader-info {
    flex: 1;
}

.reader-rank {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.reader-name {
    font-size: 16px;
    font-weight: 500;
    color: #1d1d1f;
    margin-bottom: 5px;
}

.reader-level {
    display: inline-block;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 5px;
    font-weight: 500;
}

.gold-reader {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.silver-reader {
    background-color: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

.bronze-reader {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.reader-count {
    font-size: 14px;
    color: #666;
}

@media (max-width: 768px) {
    .readers-wall {
        margin-left: -20px;
        margin-right: -20px;
        padding: 20px 0;
    }
    
    .readers-wall .readers-title,
    .readers-wall .readers-desc,
    .readers-list {
        padding: 0 15px;
    }
    
    .readers-list {
        grid-template-columns: 1fr;
    }
    
    .reader-item {
        padding: 12px;
    }
    
    .reader-avatar {
        width: 50px;
        height: 50px;
        margin-right: 12px;
    }
    
    .reader-name {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .readers-title {
        font-size: 20px;
    }
    
    .readers-desc {
        font-size: 14px;
    }
    
    .readers-wall {
        margin-left: -12px;
        margin-right: -12px;
    }
    
    .readers-wall .readers-title,
    .readers-wall .readers-desc,
    .readers-list {
        padding: 0 12px;
    }
    
    .reader-item {
        flex-direction: column;
        text-align: center;
    }
    
    .reader-avatar {
        margin-right: 0;
        margin-bottom: 10px;
    }
}
