/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */


/* CSS Variables and Base Styles for Single Post */

/* Hero Section Styles */
.hero-section {
    padding: 60px 0 40px;
    background: #fff;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.category-name {
    color: #2865f3;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.article-title {
    font-size: 42px;
    line-height: 1.2;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.article-excerpt {
    font-size: 18px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 32px;
}

.author-info {
    margin-bottom: 32px;
}

.author-details {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar img {
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

.author-name {
    margin: 0;
    font-size: 16px;
    color: #666;
}

.author-name a {
    color: #2865f3;
    text-decoration: none;
}

.article-meta-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.publish-date {
    font-size: 14px;
    color: #888;
}

.share-section {
    position: relative;
}

.sharing-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    transition: all 0.2s ease;
}

.sharing-btn:hover {
    background: #f8f9fa;
}

.share-icons {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px;
    margin-top: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 10;
}

.share-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0 4px;
    border-radius: 4px;
    color: #666;
    transition: all 0.2s ease;
}

.share-icons a:hover {
    background: #f0f0f0;
    color: #2865f3;
}

.hero-image {
    position: relative;
}

.featured-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Article Section */
.article-section {
    padding: 40px 0 80px;
    background: #fff;
}

.article-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: start;
}

.table-of-contents {
    position: sticky;
    top: 120px;
    height: fit-content;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
}

.toc-wrapper {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 24px;
}

.toc-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 16px;
    color: #333;
    border-bottom: 2px solid #2865f3;
    padding-bottom: 8px;
}

.toc-content {
    max-height: 60vh;
    overflow: visible;
}

.toc-content::-webkit-scrollbar {
    display: none;
}

.toc-content {
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;  /* Firefox */
}

.toc-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-content li {
    margin-bottom: 8px;
}

.toc-content a {
    display: block;
    padding: 6px 12px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    border-radius: 4px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.toc-content a:hover {
    background-color: #e8f0fe;
    color: #2865f3;
    border-left-color: #2865f3;
}

.toc-content a.active {
    background-color: #2865f3;
    color: #fff;
    font-weight: 500;
    border-left-color: #1a4ed8;
}

/* Nested headings */
.toc-content .toc-h3 {
    padding-left: 24px;
    font-size: 13px;
}

.toc-content .toc-h4 {
    padding-left: 36px;
    font-size: 12px;
}

.toc-content .toc-h5,
.toc-content .toc-h6 {
    padding-left: 48px;
    font-size: 11px;
}

.article-inner-content {
    max-width: none;
    font-size: 18px;
    line-height: 1.7;
    color: #333;
}

.article-inner-content h2 {
    font-size: 32px;
    line-height: 1.3;
    margin-top: 48px;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.article-inner-content h3 {
    font-size: 24px;
    line-height: 1.4;
    margin-top: 32px;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.article-inner-content p {
    margin-bottom: 20px;
}

.article-inner-content ul,
.article-inner-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.article-inner-content li {
    margin-bottom: 8px;
}

.article-inner-content a {
    color: #2865f3;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.article-inner-content a:hover {
    border-bottom-color: #2865f3;
}

/* Author Bio */
.author-big-box {
    display: flex;
    gap: 20px;
    align-items: start;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 60px auto 0;
    max-width: 800px;
}

.author-avatar-large img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
}

.author-name {
    margin-bottom: 12px;
    font-size: 24px;
}

.author-name a {
    color: #1a1a1a;
    text-decoration: none;
}

.author-description {
    color: #666;
    line-height: 1.6;
}

/* Related Articles */
.related-articles {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-heading {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #1a1a1a;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.related-post {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.related-post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-post-content {
    padding: 24px;
}

.related-post-category a {
    color: #2865f3;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.related-post-title {
    margin: 12px 0;
    font-size: 20px;
    line-height: 1.3;
}

.related-post-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.related-post-title a:hover {
    color: #2865f3;
}

.related-post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #888;
    margin-bottom: 12px;
}

.related-post-excerpt {
    color: #666;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 250px 1fr;
        gap: 40px;
    }
    
    .table-of-contents {
        top: 100px;
    }
    
    .toc-wrapper {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .article-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .table-of-contents {
        position: static;
        order: -1;
        max-height: none;
    }
    
    .toc-wrapper {
        padding: 16px;
    }
    
    .toc-content {
        max-height: 300px;
    }
    
    .article-title {
        font-size: 32px;
    }
    
    .article-meta-bottom {
        flex-direction: column;
        gap: 16px;
        align-items: start;
    }
    
    .author-big-box {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}
