/*
Theme Name: Flone Child
Theme URI: https://jwbio.co.za
Description: Child theme for Flone
Author: Julia Wright
Template: flone
Version: 1.0.0
Text Domain: flone-child
*/

/* =========================================================
   BLOG LAYOUT CUSTOMISATIONS
   ========================================================= */

/* --- Move sidebar RIGHT on blog archive & single post --- */
.blog .row,
.single-post .row {
    display: flex;
    flex-wrap: wrap;
}
.blog .col-xl-3.col-lg-4,
.single-post .col-xl-3.col-lg-4 {
    order: 2 !important;
}
.blog .col-xl-9.col-lg-8,
.single-post .col-xl-9.col-lg-8 {
    order: 1 !important;
}

/* --- Hide author on single posts --- */
.single-post .author-meta,
.single-post .post-author,
.single-post .entry-author,
.single-post .blog-meta .author,
.single-post .post-meta .author,
.single-post span.post-author,
.single-post .blog-details-author,
.single-post .blog-author-wrap,
.single-post .entry-header .author {
    display: none !important;
}

/* --- Hide comments on single posts --- */
.single-post #comments,
.single-post .comment-respond,
.single-post .comments-area {
    display: none !important;
}

/* --- Single post: full-width featured image with title overlay --- */
.single-post .blog-wrap-2 {
    display: flex;
    flex-direction: column;
}
.single-post .blog-wrap-2 .post-thumbnail {
    order: 1;
    width: 100%;
    margin: 0 0 0 0;
}
.single-post .blog-wrap-2 .post-thumbnail img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}
.single-post .blog-wrap-2 .entry-title {
    order: 2;
    background: linear-gradient(135deg, #1a3c2e 0%, #2d5a3d 100%);
    color: #fff;
    padding: 28px 36px;
    margin: 0;
    font-size: 2rem;
    line-height: 1.3;
    margin-top: -8px;
    position: relative;
    z-index: 2;
}
.single-post .blog-wrap-2 .post-meta {
    order: 3;
    padding: 12px 36px;
    background: #f8f8f8;
    border-bottom: 1px solid #eee;
    font-size: 0.85rem;
}
.single-post .blog-wrap-2 .blog-content-2 {
    order: 4 !important;
}

/* =========================================================
   BLOG ARCHIVE - 3 COLUMN GRID
   ========================================================= */
.blog .col-xl-9.col-lg-8 .col-lg-12 {
    width: 33.333% !important;
    max-width: 33.333% !important;
    flex: 0 0 33.333% !important;
    padding: 0 12px 24px !important;
}
.blog .col-xl-9.col-lg-8 .row {
    margin: 0 -12px;
}

/* --- Archive card styling --- */
.blog-wrap-2 {
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.blog-img-2 {
    overflow: hidden;
}
.blog-img-2 img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}
.blog-img-2:hover img {
    transform: scale(1.04);
}
.blog-content-2 {
    padding: 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* --- Category pill tags on archive cards --- */
.blog-category-pill,
.blog-wrap-2 .blog-meta .category a,
.blog-wrap-2 .post-categories a,
.blog-wrap-2 .cat-links a {
    display: inline-block;
    background: #5cb85c;
    color: #fff !important;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
    text-decoration: none !important;
}

/* --- Archive card title & meta --- */
.blog-content-2 h3 a,
.blog-content-2 h4 a {
    color: #1a1a1a;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.4;
}
.blog-content-2 h3 a:hover,
.blog-content-2 h4 a:hover {
    color: #2d5a3d;
}
.blog-content-2 .blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    font-size: 0.8rem;
    color: #999;
}
.blog-content-2 .blog-meta a {
    color: #1a1a1a;
    font-weight: 600;
    font-size: 0.82rem;
    text-decoration: none;
    letter-spacing: 0.02em;
}
.blog-content-2 .blog-meta a:hover {
    color: #2d5a3d;
}

/* =========================================================
   SIDEBAR STYLING
   ========================================================= */
.widget {
    margin-bottom: 36px;
}
.widget-title,
.widgettitle {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    color: #1a1a1a !important;
    padding-bottom: 10px !important;
    margin-bottom: 16px !important;
    border-bottom: 2px solid #5cb85c !important;
    display: block !important;
}

/* --- Browse by Topic (categories) --- */
.widget_categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.widget_categories ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}
.widget_categories ul li a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
}
.widget_categories ul li a:hover {
    color: #5cb85c;
}
.widget_categories ul li .post-count {
    color: #999;
    font-size: 0.82rem;
}

/* --- Recent Articles sidebar widget --- */
.widget_recent_entries ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.widget_recent_entries ul li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.widget_recent_entries ul li a {
    color: #1a1a1a;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    line-height: 1.4;
}
.widget_recent_entries ul li a:hover {
    color: #5cb85c;
}
.widget_recent_entries ul li .post-date {
    color: #5cb85c;
    font-size: 0.78rem;
    font-weight: 400;
}
/* Category pill before recent articles */
.widget_recent_entries ul li::before {
    content: attr(data-category);
}

/* =========================================================
   BLOG HERO BANNER
   ========================================================= */
.jwbio-blog-hero {
    background: linear-gradient(135deg, #0f2318 0%, #1e4d2b 50%, #2d6e3e 100%);
    padding: 70px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.jwbio-blog-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(255,255,255,0.04) 0%, transparent 70%);
}
.jwbio-blog-hero .hero-inner {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}
.jwbio-blog-hero .hero-tag {
    display: inline-block;
    background: #5cb85c;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 5px 18px;
    border-radius: 20px;
    margin-bottom: 20px;
}
.jwbio-blog-hero h1 {
    color: #fff;
    font-size: 2.8rem;
    font-weight: 800;
    margin: 0 0 16px;
    line-height: 1.15;
}
.jwbio-blog-hero p {
    color: rgba(255,255,255,0.78);
    font-size: 1.05rem;
    margin: 0;
    line-height: 1.7;
}
@media (max-width: 768px) {
    .jwbio-blog-hero h1 { font-size: 1.9rem; }
    .blog .col-xl-9.col-lg-8 .col-lg-12 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
    .single-post .blog-wrap-2 .entry-title { font-size: 1.4rem; padding: 18px 20px; }
    .single-post .blog-wrap-2 .post-thumbnail img { height: 260px; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .blog .col-xl-9.col-lg-8 .col-lg-12 {
        width: 50% !important;
        max-width: 50% !important;
        flex: 0 0 50% !important;
    }
}