/*
 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
*/
/* Target only the home page main content posts */
.home .main-content .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 #1D5401; /* Green border */
}

/* Glow Effect on Hover */
.home .main-content .post:hover {
    box-shadow: 0 0 15px rgba(29, 84, 1, 0.3); /* Green glow */
    transform: translateY(-3px);
}

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

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

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

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

.home .main-content .post .cat-links {
    color: #1D5401; /* Green category links */
    font-weight: 600;
    margin-right: 8px;
    text-transform: uppercase;
    font-size: 0.75rem;
}

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

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

.home .main-content .post .entry-title a:hover {
    color: #1D5401; /* Green title on hover */
    text-shadow: 0 0 2px rgba(29, 84, 1, 0.1);
}

/* Post Excerpt */
.home .main-content .post .entry-content {
    font-size: 0.88rem;
    color: #444;
    margin: 4px 0 25px;
    line-height: 1.45;
}
/* Read More Button - DEFAULT STATE (GREEN) */
.home .main-content .post a.read-more {
    position: absolute;
    bottom: 12px;
    right: 14px;
    background-color: #1D5401 !important; /* Green background */
    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);
    text-decoration: none;
    border: none;
    cursor: pointer;
}

/* Read More Button - HOVER STATE (YELLOW) */
.home .main-content .post a.read-more:hover {
    background-color: #FFD230 !important; /* Yellow background */
    color: #1D5401 !important; /* Green text */
    box-shadow: 0 0 8px rgba(255, 210, 48, 0.5); /* Yellow glow */
    transform: translateY(-1px);
}

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

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

    .home .main-content .post .read-more {
        bottom: 10px;
        right: 10px;
    }
}
/* ================
   Share Card Section
   ================ */
.graceful-share-container {
    margin-bottom: 2.5rem;
}

.graceful-share-card {
    background: white;
    border-radius: 12px;
    padding: 1.8rem;
	margin-top: 10px;
    box-shadow: 0 5px 15px rgba(29, 84, 1, 0.08);
    border: 1px solid rgba(29, 84, 1, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.graceful-share-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(29, 84, 1, 0.15);
}

.share-title {
    margin: 0 0 1.2rem 0;
    color: #1D5401;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-title i {
    color: #FFD230;
}

.graceful-share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    color: white !important;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.share-btn span {
    display: inline-block;
    transform: translateY(1px);
}

.share-btn i {
    font-size: 0.9rem;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.2);
}

/* Share Button Colors */
.facebook { background: linear-gradient(135deg, #3b5998, #4c70ba); }
.twitter { background: linear-gradient(135deg, #1da1f2, #3bb1f4); }
.whatsapp { background: linear-gradient(135deg, #25d366, #2fe878); }
.pinterest { background: linear-gradient(135deg, #bd081c, #e03a52); }
.link { background: linear-gradient(135deg, #1D5401, #3a7a0e); }

/* ===================
   Categories & Tags
   =================== */
.graceful-taxonomy-container {
    margin-bottom: 2.5rem;
}

.graceful-taxonomy-card {
    background: white;
    border-radius: 12px;
    padding: 1.8rem;
    box-shadow: 0 5px 15px rgba(29, 84, 1, 0.08);
    border: 1px solid rgba(29, 84, 1, 0.1);
}

.taxonomy-section {
    margin-bottom: 1.5rem;
}

.taxonomy-section:last-child {
    margin-bottom: 0;
}

.taxonomy-title {
    margin: 0 0 1rem 0;
    color: #1D5401;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.taxonomy-title i {
    color: #FFD230;
}

.graceful-categories,
.graceful-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.graceful-categories a,
.graceful-tags a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(29, 84, 1, 0.1);
    color: #1D5401;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(29, 84, 1, 0.2);
}

.graceful-categories a:hover,
.graceful-tags a:hover {
    background-color: #1D5401;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(29, 84, 1, 0.3);
}

/* =============
   Author Section
   ============= */
.graceful-author-card {
    display: flex;
    gap: 25px;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(29, 84, 1, 0.08);
    border: 1px solid rgba(29, 84, 1, 0.1);
    position: relative;
    overflow: hidden;
}

.graceful-author-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #1D5401, #3a7a0e);
}

.author-image img {
    border-radius: 50%;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 3px solid rgba(29, 84, 1, 0.2);
    box-shadow: 0 3px 10px rgba(29, 84, 1, 0.1);
}

.author-content {
    flex: 1;
}

.author-title {
    margin: 0.5rem 0 1rem 0;
    color: #1D5401;
    font-size: 1.3rem;
    font-weight: 700;
}

.author-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #1D5401, #FFD230);
    margin: 0 0 1.2rem 0;
    border-radius: 3px;
}

.author-bio {
    margin: 0 0 1.5rem 0;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 400;
}

.author-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.7rem 1.5rem;
    background: linear-gradient(to right, #1D5401, #3a7a0e);
    color: white !important;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(29, 84, 1, 0.3);
}

.author-button:hover {
    background: linear-gradient(to right, #FFD230, #f8e076);
    color: #1D5401 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 210, 48, 0.4);
}

/* Premium Enhancements */
.graceful-share-card,
.graceful-taxonomy-card,
.graceful-author-card {
    position: relative;
    overflow: hidden;
}

.graceful-share-card::after,
.graceful-taxonomy-card::after,
.graceful-author-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, rgba(255, 210, 48, 0.2), transparent);
    border-bottom-left-radius: 100%;
    z-index: 0;
}
