/* 
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 */


/* Article */
.blog-container {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.blog-content {
    flex: 3;
}

.blog-sidebar {
    flex: 1;
}

.toc-box {
    position: sticky;
    top: 100px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.toc-list {
    list-style: none;
    padding-left: 0;
}

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

.toc-level-3 {
    padding-left: 15px;
}

.toc-list a {
    text-decoration: none;
    color: #333;
}

.toc-list a:hover {
    color: #0073aa;
}

.post-title {
    margin-bottom: 20px;
}

.post-body h2,
.post-body h3 {
    margin-top: 40px;
}
.toc-box {
    max-height: 90vh;
    margin-top: 5vh;
    margin-bottom: 5vh;
    overflow: scroll;
}
/* ===== TOC Container ===== */
.toc-box {
    background: #ffffff;
    border: 1px solid #AD00001F;
    border-left: 5px solid #ad0000;
    padding: 25px 25px 20px;
    margin: 0px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* TOC Title */
.toc-box h3 {
    margin: 0 0 18px;
    font-size: 20px;
    font-weight: 600;
    color: #000000;
    padding-bottom: 8px;
    border-bottom: 2px solid #AD00001F;
}

/* Remove default list style */
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Base TOC Links */
.toc-list li {
    margin-bottom: 10px;
}

.toc-list a {
    text-decoration: none;
    color: #000000;
    font-size: 15px;
    display: inline-block;
    padding: 6px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* Hover Effect */
.toc-list a:hover {
    background: #AD00001F;
    color: #ad0000;
    padding-left: 14px;
}

/* ===== Level Styling ===== */

/* Level 2 (Main Sections) */
.toc-level-2 > a {
    font-weight: 600;
}

/* Level 3 (Subsections) */
.toc-level-3 {
    margin-left: 18px;
}

.toc-level-3 > a {
    font-size: 14px;
    color: #444;
}

/* Small left indicator */
.toc-level-3 > a::before {
    content: "– ";
    color: #ad0000;
}

/* ===== Blog Wrapper ===== */
.blog-content {
    max-width: 880px;
    margin: 0px auto 80px;
    padding: 0 24px;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.75;
    color: #000000;
    background: #ffffff;
}

/* ===== Main Post Title ===== */
.post-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 15px;
    color: #000000;
}

/* ===== Meta Info ===== */
.post-meta {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 50px;
    letter-spacing: 0.5px;
}

/* ===== Inner Content ===== */
.post-body {
    font-size: 17px;
}

/* H1 inside content */
.post-body h1 {
    font-size: 32px;
    margin-bottom: 25px;
    line-height: 1.3;
}

/* H2 */
.post-body h2 {
    font-size: 26px;
    margin: 60px 0 20px;
}

/* H3 */
.post-body h3 {
    font-size: 20px;
    margin: 30px 0 15px;
    color: #ad0000;
}

/* Paragraphs */
.post-body p {
    margin-bottom: 22px;
    color: #222;
}

/* Lists */
.post-body ul,
.post-body ol {
    margin: 20px 0 25px 28px;
}

.post-body li {
    margin-bottom: 12px;
}

/* Strong Text */
.post-body strong {
    color: #ad0000;
    font-weight: 600;
}

/* Horizontal Rule */
.post-body hr {
    border: none;
    border-top: 2px solid #AD00001F;
    margin: 70px 0;
}

/* ===== Table Styling ===== */
.post-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 40px 0;
    font-size: 15px;
    border: 1px solid #AD00001F;
}

.post-body table th,
.post-body table td {
    padding: 14px 16px;
    text-align: left;
}

.post-body table th {
    background: #AD00001F;
    font-weight: 600;
}

.post-body table tr {
    border-bottom: 1px solid #AD00001F;
}

/* ===== Link Styling ===== */
.post-body a {
    color: #ad0000;
    text-decoration: none;
    border-bottom: 1px solid #ad0000;
    transition: 0.3s ease;
}

.post-body a:hover {
    color: #000000;
    border-bottom: 1px solid #000000;
}

/* ===== Blockquote (if you add later) ===== */
.post-body blockquote {
    margin: 30px 0;
    padding: 20px 25px;
    background: #AD00001F;
    border-left: 5px solid #ad0000;
    font-style: italic;
}
.post-thumbnail img {
    border-radius: 10px;
}
/* ===== Responsive ===== */
@media (max-width: 768px) {
    .blog-content {
        margin: 40px auto;
        padding: 0 16px;
    }

    .post-title {
        font-size: 30px;
    }

    .post-body h1 {
        font-size: 24px;
    }

    .post-body h2 {
        font-size: 22px;
        padding: 12px 14px;
    }

    .post-body h3 {
        font-size: 18px;
    }

    .post-body p {
        font-size: 16px;
    }
}

/* ===== Sticky Option (Optional) ===== */
/* If you want sticky TOC on desktop */
@media (min-width: 1024px) {
    .toc-box {
        position: sticky;
        top: 100px;
    }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .toc-box {
        padding: 18px;
    }

    .toc-box h3 {
        font-size: 18px;
    }

    .toc-list a {
        font-size: 14px;
    }
}
