/*
Theme Name: Ginger Blog
Theme URI: https://ginger.com
Author: Ginger Technologies
Author URI: https://ginger.com
Description: A modern, responsive WordPress theme for Ginger - Africa's largest sourcing platform for beauty and fashion vendors. Features a clean design, blog functionality, and ecommerce integration.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ginger-blog
Tags: blog, e-commerce, fashion, beauty, responsive, modern
*/

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #1a1a1a;
    background-color: #ffffff;
    line-height: 1.6;
}

/* Header Styles */
.header {
    background-color: #fff;
    border-bottom: 1px solid #e8e8e8;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s;
}

.logo a:hover {
    opacity: 0.8;
}

.logo-svg {
    height: 27px;
    width: auto;
    display: block;
}

/* Search bar removed - not needed */

.header-icons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.icon-item {
    position: relative;
    cursor: pointer;
}

.icon {
    color: #555;
    display: block;
    cursor: pointer;
    transition: all 0.3s;
}

.icon:hover {
    color: #e74c3c;
    transform: scale(1.1);
}

.badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: #e74c3c;
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Navigation removed - cleaner header */

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 3rem 0;
    background-color: #fff;
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.blog-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: #1a1a1a;
}

.blog-search {
    position: relative;
}

.blog-search .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.blog-search input {
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    min-width: 350px;
    background-color: #f8f8f8;
    transition: all 0.3s;
}

.blog-search input:focus {
    outline: none;
    border-color: #e74c3c;
    background-color: #fff;
}

/* Featured Post */
.featured-section {
    margin-bottom: 3rem;
}

.featured-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.featured-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 16px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.featured-post:hover .featured-image img {
    transform: scale(1.05);
}

.featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-badges {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.badge-latest {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    background-color: #e74c3c;
    color: #fff;
    border-radius: 4px;
}

.badge-category {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    background-color: transparent;
    color: #1a1a1a;
    border: 1.5px solid #d0d0d0;
    border-radius: 4px;
}

.featured-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.3;
    color: #1a1a1a;
}

.read-article-btn {
    padding: 1rem 2.5rem;
    background-color: #fff;
    color: #1a1a1a;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    width: fit-content;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.read-article-btn:hover {
    background-color: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.blog-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.card-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-card:hover .card-image img {
    transform: scale(1.08);
}

.card-content {
    padding: 1.75rem;
}

.card-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 0.75rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: #1a1a1a;
    line-height: 1.5;
}

.card-title a {
    color: #e74c3c;
    text-decoration: none;
    transition: color 0.3s;
}

.card-title a:hover {
    color: #c0392b;
}

.read-link {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-link:hover {
    color: #e74c3c;
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 3rem 3rem;
    margin-top: 0;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo a {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-logo a:hover {
    opacity: 0.8;
}

.footer-logo-svg {
    height: 27px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.footer-copyright {
    color: #999;
    font-size: 0.9rem;
    margin: 0;
}

/* WordPress Specific Styles */
.wp-block-image img {
    height: auto;
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-decoration: none;
    color: #555;
    transition: all 0.3s;
}

.pagination a:hover,
.pagination .current {
    background-color: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .header-top {
        padding: 1.25rem 2rem;
    }

    .main-content {
        padding: 2.5rem 2rem 0;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer {
        padding: 2.5rem 2rem;
    }
}

@media (max-width: 768px) {
    .header-top {
        padding: 1rem 1.5rem;
    }
    
    .logo-svg {
        height: 22px;
    }

    .header-icons {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .main-content {
        padding: 2rem 1.5rem 0;
    }

    .blog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        margin-bottom: 2.5rem;
    }

    .blog-title {
        font-size: 2rem;
    }

    .blog-search input {
        min-width: 100%;
    }

    .featured-post {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .featured-image {
        height: 300px;
    }

    .featured-title {
        font-size: 1.75rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer {
        padding: 2rem 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    /* Single Post Mobile Styles */
    .article-content {
        padding: 1.5rem 1.5rem 2.5rem;
    }
    
    .breadcrumb {
        margin-bottom: 2rem;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .meta-divider {
        display: none;
    }
    
    .article-hero {
        height: 300px;
        border-radius: 12px;
    }
    
    .article-body {
        font-size: 1rem;
    }
    
    .article-body h2 {
        font-size: 1.5rem;
        margin: 2rem 0 1rem;
    }
    
    .article-body h3 {
        font-size: 1.25rem;
        margin: 1.5rem 0 0.75rem;
    }
    
    .article-image {
        height: 300px;
        margin: 2rem 0;
    }
    
    .related-articles {
        margin-top: 3rem;
        padding-top: 2rem;
    }
    
    .related-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .related-image {
        height: 220px;
    }
}

/* Single Blog Post Styles */
.article-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 3rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
}

.back-link:hover {
    color: #1a1a1a;
}

.back-link svg {
    transition: transform 0.3s;
}

.back-link:hover svg {
    transform: translateX(-4px);
}

/* Article */
.article {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-header {
    text-align: center;
    margin-bottom: 3rem;
}

.article-category {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    background-color: transparent;
    color: #1a1a1a;
    border: 1.5px solid #d0d0d0;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.article-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #999;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.meta-divider {
    color: #d0d0d0;
}

.article-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
}

.social-link:hover {
    background-color: #1a1a1a;
    color: #fff;
    transform: translateY(-2px);
}

/* Hero Image */
.article-hero {
    width: 100%;
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 3rem;
}

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

/* Article Body */
.article-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

.article-body h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 2.5rem 0 1.5rem;
    color: #1a1a1a;
    line-height: 1.3;
}

.article-body h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    color: #1a1a1a;
    line-height: 1.4;
}

.article-body p {
    margin-bottom: 1.5rem;
    color: #444;
}

.article-body a {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.article-body a:hover {
    color: #c0392b;
    text-decoration: underline;
}

.article-body strong {
    font-weight: 700;
    color: #1a1a1a;
}

/* Article Image */
.article-image {
    width: 100%;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    margin: 3rem 0;
}

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

/* Related Articles */
.related-articles {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 2px solid #f0f0f0;
}

.related-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 2.5rem;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.related-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.related-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-card:hover .related-image img {
    transform: scale(1.08);
}

.related-content {
    padding: 1.5rem;
}

.related-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 0.5rem;
}

.related-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a1a1a;
    line-height: 1.5;
}

.related-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.related-card-title a:hover {
    color: #e74c3c;
}

.related-link {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.related-link:hover {
    color: #e74c3c;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card {
    animation: fadeIn 0.5s ease-out;
}

