/* Target the specific site structure with priority */
.site.grid-container {
    max-width: 1400px;
    margin: 0 auto !important;
    padding: 0 20px;
}

#left-sidebar .inside-left-sidebar {
    padding: 0 !important;
    top: 90px !important;
}

/* Site Content - Grid Layout */
.site-content {
    display: grid !important;
    grid-template-columns: 400px 1fr !important;
    gap: 10px !important;
    margin: 40px 0 !important;
}

/* Content Area */
.content-area {
    width: 100% !important;
    max-width: 100% !important;
}

/* Left Sidebar */
.sidebar.is-left-sidebar {
    width: 100% !important;
    order: -1 !important;
    /* Ensures sidebar stays on left */
}

/* Article Container */
.inside-article {
    padding: 30px !important;
    background: #fff !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

/* Featured Image */
.featured-image {
    margin: -30px -30px 30px -30px !important;
    border-radius: 8px 8px 0 0 !important;
    overflow: hidden !important;
}

.featured-image img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* Entry Content Typography */
.entry-content {
    line-height: 1.8 !important;
    color: #333 !important;
}

.entry-content h2 {
    font-size: 24px !important;
    margin: 30px 0 15px 0 !important;
    color: #222 !important;
}

.entry-content p {
    margin-bottom: 20px !important;
}

/* Entry Meta Footer */
.entry-meta {
    margin-top: 40px !important;
    padding-top: 20px !important;
    border-top: 1px solid #eee !important;
    font-size: 14px !important;
    color: #666 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    align-items: center !important;
}

.cat-links,
.tags-links {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.entry-meta a {
    color: #007cba !important;
    text-decoration: none !important;
}

.entry-meta a:hover {
    text-decoration: underline !important;
}

/* Post Navigation */
.post-navigation {
    margin-left: 0 !important;
}

.nav-previous a {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

/* Author Box */
.author-box {
    display: flex !important;
    gap: 20px !important;
    margin-top: 40px !important;
    padding: 30px !important;
    background: #f9f9f9 !important;
    border-radius: 8px !important;
}

.author-box .avatar {
    flex-shrink: 0 !important;
    width: auto !important;
}

.author-box .avatar img {
    border-radius: 50% !important;
    width: 96px !important;
    height: 96px !important;
    object-fit: cover !important;
    max-width: 100% !important;
}

.author-title {
    margin: 0 0 10px 0 !important;
    font-size: 18px !important;
}

.author-description {
    margin: 0 0 15px 0 !important;
    line-height: 1.6 !important;
}

.author-links a {
    color: #007cba !important;
    text-decoration: none !important;
}

/* Comments Area */
.comments-area {
    margin-top: 40px !important;
    padding: 30px !important;
    background: #fff !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

#comment {
    width: 100% !important;
    padding: 15px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    resize: vertical !important;
}

#submit {
    background: #007cba !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 30px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 16px !important;
    transition: background 0.3s ease !important;
}

#submit:hover {
    background: #005a87 !important;
}

/* Sidebar Widget Container */
.gb-container-14167de4 {
    background: #fff !important;
    padding: 25px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

.sidebar h2 {
    font-size: 20px !important;
    margin-bottom: 20px !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #007cba !important;
}

/* Sidebar Post Items Grid */
.gb-grid-wrapper-1987f074 {
    display: grid !important;
    gap: 20px !important;
}

.gb-container-e2580aa7 {
    display: flex !important;
    gap: 15px !important;
    align-items: flex-start !important;
}

.gb-block-image-5c74f032 {
    flex-shrink: 0 !important;
}

.gb-block-image-5c74f032 img {
    width: 80px !important;
    height: 80px !important;
    object-fit: cover !important;
    border-radius: 4px !important;
}

.gb-headline-bc48206c {
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

.gb-headline-bc48206c a {
    color: #333 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.gb-headline-bc48206c a:hover {
    color: #007cba !important;
}

#primary #nav-below .nav-previous {
    display: flex !important;
}

/* Responsive Breakpoints */

/* Tablet - 768px to 1024px */
@media screen and (max-width: 1366px) {
    .site-content {
        display: grid !important;
        grid-template-columns: 300px 1fr !important;
        gap: 10px !important;
        margin: 40px 0 !important;
    }
}

@media screen and (max-width: 1024px) {
    .site-content {
        grid-template-columns: 229px 1fr !important;
        gap: 10px !important;
    }

    .gb-container-e2580aa7 {
        flex-direction: column !important;
    }

    .gb-block-image-5c74f032 img {
        width: 100% !important;
        height: auto !important;
        max-height: 150px !important;
    }
}

/* Mobile - Below 768px */
@media screen and (max-width: 768px) {
    .site-content {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .sidebar.is-left-sidebar {
        order: 0 !important;
    }

    .inside-article {
        padding: 20px !important;
    }

    .featured-image {
        margin: -20px -20px 20px -20px !important;
    }

    .author-box {
        flex-direction: column !important;
        text-align: center !important;
        padding: 20px !important;
    }

    .author-box .avatar {
        margin: 0 auto !important;
    }

    .entry-meta {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .post-navigation {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .gb-grid-wrapper-1987f074 {
        grid-template-columns: 1fr !important;
    }

    .gb-container-e2580aa7 {
        flex-direction: row !important;
    }

    .gb-block-image-5c74f032 {
        width: 80px !important;
    }

    .gb-block-image-5c74f032 img {
        width: 80px !important;
        height: 80px !important;
    }
}

/* Small Mobile - Below 480px */
@media screen and (max-width: 480px) {
    .site.grid-container {
        padding: 0 15px !important;
    }

    .inside-article {
        padding: 15px !important;
    }

    .featured-image {
        margin: -15px -15px 15px -15px !important;
    }

    .entry-content h2 {
        font-size: 20px !important;
    }

    .gb-container-e2580aa7 {
        flex-direction: column !important;
    }

    .gb-block-image-5c74f032 {
        width: 100% !important;
    }

    .gb-block-image-5c74f032 img {
        width: 100% !important;
        height: auto !important;
        max-height: 120px !important;
    }

    .comments-area,
    .gb-container-14167de4 {
        padding: 15px !important;
    }

    #submit {
        width: 100% !important;
    }
}

/* Print Styles */
@media print {
    .site-content {
        display: block !important;
    }

    .sidebar,
    .comments-area,
    .post-navigation {
        display: none !important;
    }

    .inside-article {
        box-shadow: none !important;
        padding: 0 !important;
    }
}