/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/
/* ---------------------------
   Modern Post Card With Glow Hover
------------------------------ */

.home .post {
    display: flex;
    align-items: flex-start;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 14px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    transition: 0.3s ease;
    min-height: 140px;
    border-left: 4px solid #2e7d32;
}

/* Glow Effect on Hover – No Outline */
.home .post:hover {
    box-shadow: 0 0 15px rgba(56, 193, 114, 0.4); /* glowing green */
    transform: translateY(-3px);
}

/* Thumbnail Image */
.home .post .post-thumbnail {
    flex-shrink: 0;
    width: 150px;
    height: 100px;
    overflow: hidden;
    border-radius: 6px;
    margin-right: 15px;
}

.home .post .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 6px;
}

/* Content Area */
.home .post .inside-article {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    padding: 0;
}

/* Meta + Category */
.home .post .entry-meta {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 5px;
}

.home .post .cat-links {
    color: #2e7d32;
    font-weight: 600;
    margin-right: 8px;
    text-transform: uppercase;
    font-size: 0.75rem;
}

/* Post Title */
.home .post .entry-title {
    font-size: 1.1rem;
    margin: 0 0 6px;
    line-height: 1.35;
    font-weight: 700;
    color: #1b1b1b;
}

.home .post .entry-title a {
    color: inherit;
    text-decoration: none;
}

.home .post .entry-title a:hover {
    color: #006400;
    text-shadow: 0 0 2px rgba(0, 100, 0, 0.2);
}

/* Post Excerpt */
.home .post .entry-content {
    font-size: 0.88rem;
    color: #444;
    margin: 4px 0 25px;
    line-height: 1.45;
}

/* Read More Button */
.home .post .read-more {
    position: absolute;
    bottom: 12px;
    right: 14px;
    background-color: #410445;
    color: #fff !important;
    padding: 6px 14px;
    font-size: 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
    transition: all 0.25s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.home .post .read-more:hover {
    background-color: #F6DC43;
    box-shadow: 0 0 8px rgba(183, 28, 28, 0.5);
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
    .home .post {
        flex-direction: column;
    }

    .home .post .post-thumbnail {
        width: 100%;
        height: 160px;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .home .post .read-more {
        bottom: 10px;
        right: 10px;
    }
}
/* Share Box Styling */
.custom-share-box {
    margin-top: 40px;
    padding: 20px;
    background: #f0fdf4;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,128,0,0.08);
    border-left: 4px solid #27ae60;
}

.custom-share-box .share-text {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 10px;
    color: #2e7d32;
}

.custom-share-box .share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.share-btn {
    padding: 8px 14px;
    font-size: 0.85rem;
    border-radius: 5px;
    text-decoration: none;
    color: #ffffff !important; /* ✅ Always white */
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

/* Button background colors */
.share-btn.fb { background: #3b5998; }
.share-btn.tw { background: #1da1f2; }
.share-btn.wa { background: #25d366; }
.share-btn.cp { background: #555; }

/* On hover: background changes slightly, text stays white */
.share-btn:hover {
    opacity: 0.95;
    color: #ffffff !important; /* ✅ Force white on hover too */
}

/* Responsive */
@media (max-width: 600px) {
    .custom-share-box .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        width: 100%;
        text-align: center;
    }
}
/* Two-Column Meta Box Layout */
.custom-meta-box {
    margin-top: 40px;
    padding: 20px;
    border-radius: 10px;
    background: #f9f9f9;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #2e7d32;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.custom-meta-box .meta-col {
    flex: 1;
    min-width: 240px;
}

.custom-meta-box .meta-title {
    font-weight: bold;
    color: #2e7d32;
    margin-bottom: 10px;
    font-size: 1rem;
    border-bottom: 2px solid #c8e6c9;
    padding-bottom: 4px;
}

.custom-meta-box .category-list a,
.custom-meta-box .tag-list .tag {
    display: inline-block;
    margin: 5px 6px 0 0;
    padding: 6px 12px;
    font-size: 0.85rem;
    background-color: #e8f5e9;
    color: #2e7d32;
    border-radius: 20px;
    text-decoration: none;
    transition: 0.3s;
}

.custom-meta-box .category-list a:hover,
.custom-meta-box .tag-list .tag:hover {
    background-color: #c8e6c9;
    box-shadow: 0 0 6px rgba(46,125,50,0.3);
}

/* Responsive Fix */
@media (max-width: 600px) {
    .custom-meta-box {
        flex-direction: column;
    }
}
/* Modern Author Box */
.custom-author-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 40px;
    padding: 20px;
    border-radius: 10px;
    background: #f5f5f5;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    border-left: 4px solid #2e7d32;
}

.custom-author-box .author-avatar img {
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(0,0,0,0.08);
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.custom-author-box .author-info {
    flex: 1;
}

.custom-author-box .author-name {
    margin: 0 0 6px;
    font-size: 1.1rem;
    color: #2e7d32;
    font-weight: 600;
}

.custom-author-box .author-name a {
    color: inherit;
    text-decoration: none;
}

.custom-author-box .author-name a:hover {
    text-decoration: underline;
    color: #1b5e20;
}

.custom-author-box .author-bio {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 600px) {
    .custom-author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .custom-author-box .author-info {
        margin-top: 12px;
    }

    .custom-author-box .author-name {
        font-size: 1rem;
    }
}
