/*
Theme Name: GHLExpert Custom Theme
Theme URI: https://ghlexpert.co
Author: GHLExpert
Description: A lightweight, custom theme for GHLExpert blog based on Bootstrap 5.
Version: 1.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ghlexpert
*/

body {
    background-color: #f8f9fa;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

/* Base Styles Inherited */
.navbar-brand img { max-width: 200px; }
.white-card {
    background-color: #fff !important;
    border-radius: 10px;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075) !important;
    padding: 1.5rem !important;
    height: 100%;
}

.blog-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #dc3545;
    display: inline-block;
}

/* Post Card Styles */
.post-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}
.post-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.post-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.post-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #212529;
    text-decoration: none;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}
.post-title:hover {
    color: #0d6efd;
}
.post-meta {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 1rem;
}
.post-meta a {
    color: #0d6efd;
    text-decoration: none;
}
.post-excerpt {
    color: #4a4a4a;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}
.post-tag {
    background-color: #f8f9fa;
    color: #495057;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: lowercase;
    display: inline-block;
    align-self: flex-start;
    text-decoration: none;
}

/* Sidebar Styles */
.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    margin-bottom: 2rem;
}
.sidebar-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #212529;
}
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.category-list li {
    margin-bottom: 0.5rem;
}
.category-list a {
    display: block;
    padding: 0.8rem 1rem;
    background-color: #f8f9fa;
    color: #495057;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.2s;
}
.category-list a:hover {
    background-color: #e9ecef;
    color: #212529;
}

/* Single Post */
.single-post-header {
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
}
.single-post-image {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 3rem;
    border-radius: 12px;
    display: block;
}
.single-post-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    padding-bottom: 4rem;
}

/* Footer / CTA inherited */
.cta {background:#212529;color:white;padding:80px 0;}

/* Pagination Styles */
nav.pagination { display: flex; justify-content: center; width: 100%; margin-top: 3rem; }
nav.pagination .nav-links { display: flex; gap: 0.5rem; }
nav.pagination .page-numbers { padding: 0.5rem 1rem; border-radius: 6px; background: #fff; color: #0d6efd; text-decoration: none; border: 1px solid #dee2e6; font-weight: 500; transition: all 0.2s; }
nav.pagination .page-numbers.current, nav.pagination .page-numbers:hover { background: #0d6efd; color: #fff; border-color: #0d6efd; }
