/* 
Theme Name: Brainmine Elementor Child
Description: Brainmine Elementor Child is a child theme of Hello Elementor
Author: Brainmine
Author URI: brainminetech.com
Template: hello-elementor
Version: 1.0.0
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 */

/* Single Post Layout (70/30) */
.single-post-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.main-content-area {
    flex: 1 1 65%;
    /* Adjusted to account for gap */
}

.sidebar-area {
    flex: 0 0 30%;
}

@media (max-width: 991px) {

    .main-content-area,
    .sidebar-area {
        flex: 0 0 100%;
    }
}

/* 404 Page Styles */
.elementor-404-section {
    padding: 100px 20px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.elementor-404-section h1 {
    font-size: 100px;
    font-weight: 700;
    margin: 0;
    color: #222;
}

.elementor-404-section h2 {
    font-size: 30px;
    margin: 10px 0 20px;
}

.elementor-404-section p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.search-form-container {
    margin-bottom: 40px;
}

.back-home-btn {
    display: inline-block;
    background: #000;
    color: #fff !important;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.back-home-btn:hover {
    background: #333;
}

/* Footer Layout */
.site-footer-content {
    background-color: #f9f9f9;
    padding: 60px 0;
    border-top: 1px solid #eee;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-logo-section {
    margin-bottom: 25px;
}

.footer-logo {
    max-width: 200px;
    height: auto;
    display: block;
}

.footer-widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #222;
}

.footer-widget {
    margin-bottom: 20px;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    text-decoration: none;
    color: #666;
    transition: color 0.3s ease;
}

.footer-widget ul li a:hover {
    color: #000;
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}


.footer-bottom-widget {
    display: inline-block;
    width: 100%;
}

.footer-bottom-widget p, 
.footer-bottom-widget div {
    margin: 0;
    text-align: center;
}






/* ==========================================================================
   COMPLETE SINGLE POST & SIDEBAR STYLES (Brainmine Child Theme)
   ========================================================================== */

/* 1. Main Container & Flex Layout */
.single-post-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.single-post-container .main-content-area {
    flex: 1;
    min-width: 0;
}

.single-post-container .sidebar-area {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 90px;
}

/* 2. H1 Post Title */
.single-post-container .page-header {
    margin-bottom: 24px;
}

.single-post-container .entry-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}

/* 3. Featured Image */
.single-post-container .post-featured-image {
    margin-bottom: 32px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.single-post-container .post-featured-image img.featured-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.single-post-container .post-featured-image:hover img.featured-img {
    transform: scale(1.02);
}

/* 4. Sidebar Wrapper & Widgets */
.sidebar-area {
    padding: 10px;
}

.sidebar-area .widget-area {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-area .widget {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

/* 5. Latest Posts Cards in Sidebar */
.sidebar-area ul.wp-block-latest-posts {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-area ul.wp-block-latest-posts li {
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 10px;
    padding: 14px;
    margin: 0 !important;
    transition: all 0.3s ease;
}

.sidebar-area ul.wp-block-latest-posts li:hover {
    background: #ffffff;
    border-color: #cbd5e0;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.sidebar-area .wp-block-latest-posts__featured-image {
    width: 100% !important;
    margin-bottom: 12px !important;
    border-radius: 8px;
    overflow: hidden;
}

.sidebar-area .wp-block-latest-posts__featured-image img {
    width: 100% !important;
    height: 140px !important;
    object-fit: cover !important;
    display: block;
    border-radius: 8px;
    transition: transform 0.4s ease;
}

.sidebar-area ul.wp-block-latest-posts li:hover .wp-block-latest-posts__featured-image img {
    transform: scale(1.04);
}

.sidebar-area a.wp-block-latest-posts__post-title {
    font-size: 0.98rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    line-height: 1.45 !important;
    text-decoration: none !important;
    margin-bottom: 8px;
    display: block;
}

.sidebar-area a.wp-block-latest-posts__post-title:hover {
    color: #2563eb !important;
}

.sidebar-area time.wp-block-latest-posts__post-date {
    font-size: 0.8rem !important;
    color: #64748b !important;
    font-weight: 500;
}

/* 6. Post Tags */
.single-post-container .post-tags {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.single-post-container .post-tags .tag-links a {
    display: inline-block;
    background: #edf2f7;
    color: #4a5568;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.875rem;
    text-decoration: none;
    margin: 4px 4px 4px 0;
    transition: all 0.2s ease;
}

.single-post-container .post-tags .tag-links a:hover {
    background: #2563eb;
    color: #ffffff;
}

/* 7. Responsive Layout (Mobile & Tablet) */
@media (max-width: 991px) {
    .single-post-container {
        flex-direction: column;
        margin: 20px auto;
    }

    .single-post-container .sidebar-area {
        width: 100%;
        position: static;
    }
}