/**
Theme Name: wellux.org
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wellux.org
Template: astra
*/

/* Import Parent Theme Styles */
@import url("../astra/style.css");

/* ========================================
   Custom 3-Column Blog Layout 
   ======================================== */

.custom-blog-layout {
    display: flex;
    gap: 25px;
    max-width: 100%;
    margin: 20px auto;
    padding: 0 10px;
    align-items: flex-start;
}

/* ========================================
   Left Sidebar - Table of Contents
   ======================================== */

.toc-sidebar {
    flex: 0 0 240px;
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.toc-container {
    background: #ffffff;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.toc-container h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 8px;
    text-align: center;
}

#toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

#toc-list a {
    display: block;
    padding: 8px 1px;
    color: #555;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.4;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f5f5f5;
    border-radius: 4px;
    margin-bottom: 2px;
}

#toc-list a:hover {
    background: #f8f9fa;
    border-left-color: #0073aa;
    color: #0073aa;
    transform: translateX(5px);
}

/* ========================================
   Main Content Area
   ======================================== */

.main-content-area {
    flex: 1;
    min-width: 0;
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.entry-header {
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.entry-header h1 {
    font-size: 28px;
    line-height: 1.3;
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-weight: 700;
}

.entry-meta {
    color: #7f8c8d;
    font-size: 14px;
    font-style: italic;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.entry-content {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
}

.entry-content h2 {
    font-size: 24px;
    margin: 30px 0 15px 0;
    color: #2c3e50;
    border-left: 4px solid #0073aa;
    padding-left: 15px;
    position: relative;
}

.entry-content h3 {
    font-size: 20px;
    margin: 25px 0 12px 0;
    color: #34495e;
}

.entry-content h4 {
    font-size: 18px;
    margin: 20px 0 10px 0;
    color: #555;
}

.entry-content p {
    margin: 0 0 18px 0;
    text-align: justify;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.entry-content ul, .entry-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.entry-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* ========================================
   Right Sidebar - Recent Posts
   ======================================== */

.recent-posts-sidebar {
    flex: 0 0 240px;
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.recent-posts-container {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.recent-posts-container h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 8px;
    text-align: center;
}

.recent-post-item {
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.3s ease;
}

.recent-post-item:last-child {
    border-bottom: none;
}

.recent-post-item:hover {
    background: #f8f9fa;
    padding: 12px 8px;
    border-radius: 5px;
    margin: 0 -8px;
}

.recent-post-item a {
    color: #555;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    display: block;
    transition: color 0.3s ease;
}

.recent-post-item a:hover {
    color: #0073aa;
}

/* ========================================
   Additional Styling
   ======================================== */

/* Custom Scrollbar for Sidebars */
.toc-sidebar::-webkit-scrollbar,
.recent-posts-sidebar::-webkit-scrollbar {
    width: 4px;
}

.toc-sidebar::-webkit-scrollbar-track,
.recent-posts-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.toc-sidebar::-webkit-scrollbar-thumb,
.recent-posts-sidebar::-webkit-scrollbar-thumb {
    background: #0073aa;
    border-radius: 2px;
}

/* ========================================
   Responsive Design - Updated Order
   ======================================== */

/* Large Desktop */
@media (min-width: 1400px) {
    .custom-blog-layout {
        max-width: 1400px;
        gap: 30px;
    }
    
    .toc-sidebar, .recent-posts-sidebar {
        flex: 0 0 280px;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .custom-blog-layout {
        max-width: 1000px;
        gap: 20px;
    }
    
    .toc-sidebar, .recent-posts-sidebar {
        flex: 0 0 220px;
    }
    
    .main-content-area {
        padding: 25px;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .custom-blog-layout {
        flex-direction: column;
        gap: 20px;
        max-width: 100%; /* Full width */
        padding: 0 15px;
    }
    
    .toc-sidebar {
        position: static;
        flex: none;
        width: 100%;
        max-height: none;
        order: 1; /* First - Top */
    }
    
    .main-content-area {
        order: 2; /* Second - Middle */
        padding: 25px;
        width: 100%;
    }
    
    .recent-posts-sidebar {
        position: static;
        flex: none;
        width: 100%;
        max-height: none;
        order: 3; /* Third - Bottom */
    }
}

/* Mobile */
@media (max-width: 768px) {
    .custom-blog-layout {
        padding: 0 10px;
        gap: 15px;
        max-width: 100%; /* Full width */
    }
    
    .toc-sidebar {
        order: 1; /* TOC at top */
    }
    
    .main-content-area {
        padding: 20px;
        order: 2; /* Content in middle */
    }
    
    .recent-posts-sidebar {
        order: 3; /* Recent posts at bottom */
    }
    
    .entry-header h1 {
        font-size: 24px;
    }
    
    .entry-content {
        font-size: 15px;
    }
    
    .toc-container, .recent-posts-container {
        padding: 15px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .custom-blog-layout {
        padding: 0 5px;
        max-width: 100%; /* Full width */
    }
    
    .toc-sidebar {
        order: 1; /* TOC first */
    }
    
    .main-content-area {
        padding: 15px;
        order: 2; /* Content second */
    }
    
    .recent-posts-sidebar {
        order: 3; /* Recent posts last */
    }
    
    .entry-header h1 {
        font-size: 20px;
    }
    
    .entry-content h2 {
        font-size: 18px;
    }
}

/* Additional Mobile Improvements */
@media (max-width: 768px) {
    /* TOC Mobile Styling */
    .toc-container {
        background: #f8f9fa;
        border: 1px solid #dee2e6;
        margin-bottom: 0;
    }
    
    .toc-container h3 {
        font-size: 14px;
        color: #495057;
    }
    
    #toc-list a {
        font-size: 12px;
        padding: 6px 8px;
    }
    
    /* Content Mobile Optimization */
    .main-content-area {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
    
    /* Recent Posts Mobile Styling */
    .recent-posts-container {
        background: #f8f9fa;
        border: 1px solid #dee2e6;
    }
    
    .recent-posts-container h3 {
        font-size: 14px;
    }
    
    .recent-post-item a {
        font-size: 13px;
    }
}

/* header elated changes */
/* ========================================
   Sticky Header with White Background on Scroll
   ======================================== */

/* Initial header state - keep current transparent look */
.ast-main-header-wrap {
    background-color: transparent !important;
    transition: all 0.3s ease-in-out;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 999 !important;
    width: 100% !important;
}

.ast-primary-header-bar {
    background-color: transparent !important;
    transition: all 0.3s ease-in-out;
}

/* Scrolled state - white background */
.ast-main-header-wrap.wellux-scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.ast-main-header-wrap.wellux-scrolled .ast-primary-header-bar {
    background-color: transparent !important;
}

/* Menu text color adjustment on scroll - if needed */
.ast-main-header-wrap.wellux-scrolled .ast-builder-menu-1 .menu-item > .menu-link {
    color: #333 !important;
}

.ast-main-header-wrap.wellux-scrolled .site-title a {
    color: #333 !important;
}

/* Mobile menu button color on scroll */
.ast-main-header-wrap.wellux-scrolled .ast-mobile-menu-trigger-fill {
    fill: #333 !important;
}

/* Add body padding to prevent content jumping */
body {
    padding-top: 0px !important;
}

/* Responsive body padding */
@media (max-width: 768px) {
    body {
        padding-top: 0px !important;
    }
}

/* Smooth transitions for all header elements */
.ast-main-header-wrap * {
    transition: color 0.3s ease-in-out, fill 0.3s ease-in-out;
}

/* ========================================
   Conditional Header Styling
   ======================================== */

/* Initial header state - transparent */
.ast-main-header-wrap {
    background-color: transparent !important;
    transition: all 0.3s ease-in-out;
}

/* White background when scrolled OR no banner */
.ast-main-header-wrap.wellux-scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Menu text color adjustment for white background */
.ast-main-header-wrap.wellux-scrolled .menu-item a {
    color: #333 !important;
}


/* body changes on the shop page */
/* ========================================
   Fix for Pages Without Banner
   ======================================== */

/* Ensure proper spacing for pages without banners */
body:not(.has-banner) {
    padding-top: 30p% !important; /* Fallback padding */
}

/* Header positioning */
.ast-main-header-wrap {
    background-color: transparent !important;
    transition: all 0.3s ease-in-out;
}

/* White background when scrolled OR no banner */
.ast-main-header-wrap.wellux-scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Menu text color adjustment for white background */
.ast-main-header-wrap.wellux-scrolled .menu-item a {
    color: #333 !important;
}

