/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/* Related Posts Section - 5 link sections */
.related-posts-section {
    background: linear-gradient(135deg, #fef7f0 0%, #fdeee0 100%);
    border: 2px solid #fc9a37;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    box-shadow: 0 4px 12px rgba(252, 154, 55, 0.15);
    transition: all 0.3s ease;
}

.related-posts-section:hover {
    box-shadow: 0 6px 20px rgba(252, 154, 55, 0.25);
    transform: translateY(-2px);
}

.related-posts-section p strong {
    color: #d87a1a;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    text-decoration-color: #fc9a37;
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
    margin-bottom: 15px;
    display: block;
}

.related-posts-section ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.related-posts-section ul li {
    margin: 12px 0;
    padding: 8px 0;
    border-bottom: 1px solid rgba(252, 154, 55, 0.2);
    position: relative;
    padding-left: 20px;
}

.related-posts-section ul li:last-child {
    border-bottom: none;
}

.related-posts-section ul li:before {
    content: "▶";
    color: #fc9a37;
    font-size: 12px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.related-posts-section ul li a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    line-height: 1.5;
}

.related-posts-section ul li a:hover {
    color: blue;
    text-decoration: underline;
    text-decoration-color: blue;
    text-underline-offset: 2px;
}

/* Tag-based Related Posts - Variant styling */
.related-by-tags {
    background: linear-gradient(135deg, #fff8f3 0%, #fef0e6 100%);
    border-color: #e8873a;
}

.related-by-tags p strong {
    color: #e8873a;
    text-decoration-color: #e8873a;
}

.related-by-tags ul li:before {
    content: "★";
    color: #e8873a;
}

.related-by-tags ul li a:hover {
    color: blue;
    text-decoration-color: blue;
}

.related-by-tags:hover {
    box-shadow: 0 6px 20px rgba(232, 135, 58, 0.25);
}

/* Inline Related Links - Single links at 50% and 75% */
.inline-related-link {
    background: linear-gradient(90deg, #fef9f5 0%, #fcf1e8 100%);
    border: 1px solid #fc9a37;
    border-radius: 6px;
    padding: 15px 20px;
    margin-top: 10px;
	margin-bottom: 10px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.inline-related-link:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #fc9a37, #e8873a);
}

.inline-related-link {
    font-size: 16px;
    font-weight: 500;
    color: #d87a1a;
    text-decoration: none;
    text-decoration-color: blue;
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
}

.inline-related-link a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.inline-related-link a:hover {
    color: blue;
    border-bottom-color: #fc9a37;
    text-shadow: 0 1px 2px rgba(252, 154, 55, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .related-posts-section,
    .inline-related-link {
        padding: 15px;
        margin: 20px 10px;
    }
    
    .related-posts-section p strong {
        font-size: 17px;
    }
    
    .related-posts-section ul li {
        padding-left: 15px;
        margin: 10px 0;
    }
    
    .inline-related-link {
        text-align: left;
        padding: 12px 15px;
    }
}

/* Animation for better UX */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.related-posts-section,
.inline-related-link {
    animation: fadeInUp 0.6s ease-out;
}

/* Optional: Dark mode support */
@media (prefers-color-scheme: dark) {
    .related-posts-section {
        background: linear-gradient(135deg, #2a1f1a 0%, #3a2a1f 100%);
        border-color: #fc9a37;
    }
    
    .related-posts-section ul li a {
        color: #e0e0e0;
    }
    
    .inline-related-link {
        background: linear-gradient(90deg, #2a1f1a 0%, #3a2a1f 100%);
    }
    
    .inline-related-link a {
        color: #e0e0e0;
    }
}


@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}