/*
Theme Name: Atieno Custom Theme
Theme URI: https://atienokanyangiadvocates.co.ke
Description: Custom theme for Atieno Kanyangi & Co. Advocates
Version: 1.0
Author: Majali
Author URI: https://majalicompany.co.ke
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: atieno-custom-theme
Domain Path: /languages
*/

:root {
    --primary-navy: #1a365d;
    --secondary-blue: #2c5282;
    --accent-gold: #d69e2e;
    --text-dark: #2d3748;
    --text-light: #4a5568;
    --bg-light: #f7fafc;
    --white: #ffffff;
    --border-light: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Futura Std', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.wp-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 20px;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.blog-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary-navy), var(--secondary-blue));
}

.blog-card h2 {
    font-size: 1.3rem;
    margin: 1rem 0 0.5rem;
    color: var(--primary-navy);
}

.blog-card:hover h2 {
    color: var(--accent-gold);
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-category {
    display: inline-block;
    background: var(--accent-gold);
    color: var(--white);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.blog-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.blog-read-more {
    display: inline-block;
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.blog-read-more:hover {
    color: var(--primary-navy);
}

/* Filter Buttons */
.blog-filters {
    text-align: center;
    margin-bottom: 2rem;
}

.filter-btn {
    background: var(--white);
    color: var(--primary-navy);
    border: 2px solid var(--border-light);
    padding: 0.8rem 1.5rem;
    margin: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: var(--accent-gold);
    color: var(--white);
    border-color: var(--accent-gold);
}

.filter-btn:hover {
    border-color: var(--accent-gold);
}

/* Single Post */
.single-post {
    background: var(--white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.post-title {
    font-size: 2rem;
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-light);
}

.post-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content h2 {
    font-size: 1.6rem;
    margin: 2rem 0 1rem;
    color: var(--primary-navy);
}

.post-content h3 {
    font-size: 1.3rem;
    margin: 1.5rem 0 0.8rem;
    color: var(--secondary-blue);
}

.post-content ul,
.post-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-content a:hover {
    color: var(--primary-navy);
    text-decoration: underline;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-light);
    gap: 1rem;
}

.post-nav-link {
    flex: 1;
    color: var(--accent-gold);
    text-decoration: none;
    padding: 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.post-nav-link:hover {
    background: var(--bg-light);
    color: var(--primary-navy);
}

.post-nav-link.prev {
    text-align: left;
}

.post-nav-link.next {
    text-align: right;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .post-navigation {
        flex-direction: column;
    }

    .single-post {
        padding: 1.5rem;
    }
}
