
/*
Theme Name: Citizen Elite Pro
Author: Citizen Technologies
Description: Elite theme with improved sidebar styling, uniform image grid, refined search box, and fixed single post display.
Version: 1.2
*/

:root {
    --elite-accent: #1e73be;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #ffffff;
    color: #222;
    line-height: 1.7;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 40px 20px;
}

.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
}

@media (max-width: 980px) {
    .layout { grid-template-columns: 1fr; }
}

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title a {
    font-size: 22px;
    font-weight: 800;
    text-decoration: none;
    color: var(--elite-accent);
}

/* Elite headings */
h2, h3, h4 {
    margin: 40px 0 20px;
    padding: 14px 18px;
    background: linear-gradient(145deg, #ffffff, #f0f4fa);
    border-left: 6px solid var(--elite-accent);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    font-weight: 700;
}

/* Posts grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 700px) {
    .posts-grid { grid-template-columns: 1fr; }
}

.post-card {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.post-card .thumb {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.post-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card .inner {
    padding: 18px;
}

.post-card .title {
    margin: 0 0 10px;
    font-size: 18px;
}

.post-card .title a {
    text-decoration: none;
    color: #111;
    font-weight: 800;
}

.post-card .meta {
    font-size: 13px;
    opacity: 0.7;
    margin-bottom: 10px;
}

/* Sidebar improvements */
.sidebar .widget {
    margin-bottom: 25px;
    padding: 20px;
    border-radius: 16px;
    background: linear-gradient(145deg, #ffffff, #f0f4fa);
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

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

.sidebar ul li {
    margin-bottom: 12px;
}

.sidebar ul li a {
    text-decoration: none;
    font-weight: 600;
    color: #222;
}

.sidebar ul li a:hover {
    color: var(--elite-accent);
}

/* Better search box */
.search-form {
    display: flex;
    gap: 10px;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #ddd;
    outline: none;
}

.search-form button {
    padding: 12px 16px;
    border-radius: 12px;
    border: none;
    background: var(--elite-accent);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

/* Pagination */
.pagination-wrap {
    margin-top: 30px;
}

.pagination-wrap .page-numbers {
    display: inline-block;
    margin: 6px 6px 0 0;
    padding: 10px 14px;
    border-radius: 12px;
    background: linear-gradient(145deg, #ffffff, #f0f4fa);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    font-weight: 700;
    color: #111;
}

.pagination-wrap .current {
    background: var(--elite-accent);
    color: #fff;
}

.site-footer {
    margin-top: 60px;
    padding: 40px 20px;
    background: #f7f9fc;
    text-align: center;
}
