/*
Theme Name: Whitmore Elementary
Theme URI: https://whitmoreelementary.org
Description: Custom theme for Whitmore Union Elementary School - education review site with school heritage design.
Version: 2.0
Author: Whitmore Elementary
License: GNU General Public License v2 or later
Text Domain: whitmore-elementary
*/

/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    color: #333;
}

/* ===== TOP HEADER BAR ===== */
.site-top-bar {
    background: #003366;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}
.site-top-bar a { color: #a8d8ff; text-decoration: none; }
.site-top-bar a:hover { text-decoration: underline; }

/* ===== MAIN LAYOUT ===== */
.site-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - 50px);
}

/* ===== SIDEBAR ===== */
.site-sidebar {
    width: 280px;
    background: linear-gradient(180deg, #1a3a5c 0%, #0d2137 100%);
    color: white;
    flex-shrink: 0;
}
.sidebar-image {
    height: 180px;
    background: #2d5a27;
    background-image: url('images/school-header.jpg');
    background-size: cover;
    background-position: center;
}
.sidebar-image.no-image {
    background: linear-gradient(180deg, #87CEEB 0% 33%, #228B22 33% 78%, #2d5016 78%);
}
.sidebar-title {
    padding: 20px;
    text-align: center;
}
.sidebar-title .site-name {
    font-size: 22px;
    font-weight: bold;
    line-height: 1.3;
}
.sidebar-title .site-name a { color: white; text-decoration: none; }
.sidebar-title p {
    font-size: 13px;
    margin-top: 5px;
    opacity: 0.8;
}

/* ===== NAVIGATION ===== */
.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-nav ul li a {
    display: block;
    padding: 12px 20px;
    color: #a8d8ff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    transition: background 0.2s;
}
.sidebar-nav ul li a:hover,
.sidebar-nav ul li.current-menu-item > a,
.sidebar-nav ul li.current_page_item > a,
.sidebar-nav ul li.current-menu-ancestor > a {
    background: rgba(255,255,255,0.15);
    color: white;
}
.sidebar-nav ul ul li a {
    padding-left: 40px;
    font-size: 13px;
}

/* ===== MAIN CONTENT ===== */
.site-main {
    flex: 1;
    background: white;
}
.content-body {
    padding: 30px;
}
.content-body .page-title,
.content-body h1.entry-title {
    font-size: 28px;
    color: #003366;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #003366;
}
.content-body .entry-content p {
    line-height: 1.7;
    margin-bottom: 15px;
}
.content-body .entry-content ul,
.content-body .entry-content ol {
    margin: 15px 0;
    padding-left: 25px;
}
.content-body .entry-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}
.content-body .entry-content a {
    color: #0066cc;
    text-decoration: none;
}
.content-body .entry-content a:hover { text-decoration: underline; }
.content-body .entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}
.content-body .entry-content table th {
    background: #003366;
    color: white;
    padding: 10px;
    text-align: left;
}
.content-body .entry-content table td {
    padding: 8px 10px;
    border-bottom: 1px solid #ddd;
}
.content-body .entry-content img {
    max-width: 100%;
    height: auto;
}

/* ===== BLOG STYLES ===== */
.blog-post-list article {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}
.blog-post-list article h2 {
    font-size: 22px;
    margin-bottom: 8px;
}
.blog-post-list article h2 a {
    color: #003366;
    text-decoration: none;
}
.blog-post-list article h2 a:hover { color: #0066cc; }
.post-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
}
.post-meta a { color: #666; text-decoration: none; }
.post-meta a:hover { text-decoration: underline; }
.read-more {
    display: inline-block;
    margin-top: 8px;
    color: #0066cc;
    font-weight: 600;
    text-decoration: none;
}
.read-more:hover { text-decoration: underline; }

/* Single post */
.single-post .entry-content { margin-top: 15px; }
.single-post .post-meta { margin-bottom: 20px; }
.post-navigation {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}
.post-navigation a {
    color: #0066cc;
    text-decoration: none;
}

/* ===== PAGINATION ===== */
.pagination {
    margin-top: 30px;
    text-align: center;
}
.pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    border: 1px solid #ddd;
    color: #003366;
    text-decoration: none;
    border-radius: 3px;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: #003366;
    color: white;
    border-color: #003366;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #003366;
    color: white;
    padding: 20px 30px;
    text-align: center;
    font-size: 13px;
}
.site-footer a { color: #a8d8ff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ===== AUTHOR BOX ===== */
.author-box {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    padding: 25px;
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 8px;
}
.author-box .author-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
}
.author-box .author-info { flex: 1; }
.author-box .author-name {
    font-size: 16px;
    color: #003366;
    margin-bottom: 8px;
}
.author-box .author-bio {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

/* ===== FEATURED IMAGE ===== */
.post-thumbnail {
    margin-bottom: 20px;
}
.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

/* ===== BREADCRUMBS (Rank Math) ===== */
.rank-math-breadcrumb {
    font-size: 13px;
    color: #888;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.rank-math-breadcrumb a {
    color: #0066cc;
    text-decoration: none;
}
.rank-math-breadcrumb a:hover { text-decoration: underline; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .site-container { flex-direction: column; }
    .site-sidebar { width: 100%; }
    .sidebar-image { height: 120px; }
    .content-body { padding: 20px; }
}
