/*
Theme Name: Royal Elementor Kit Child
Theme URI: https://unknownhebrew.com
Description: Child theme for Royal Elementor Kit with a custom Blog sidebar.
Author: Unknown Hebrew
Template: royal-elementor-kit
Version: 1.0
*/

/* Blog page layout */

.unknown-hebrew-blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    align-items: start;
}

.unknown-hebrew-blog-main {
    min-width: 0;
}

.blog-sidebar {
    width: 100%;
}

.blog-sidebar .widget {
    margin-bottom: 30px;
}

.blog-sidebar .widget-title {
    margin-top: 0;
}

@media screen and (max-width: 900px) {

    .unknown-hebrew-blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        margin-top: 30px;
    }

}
/* Keep blog content inside its grid column */

.unknown-hebrew-blog-main {
    min-width: 0;
    width: 100%;
    overflow: hidden;
}

.unknown-hebrew-blog-main .re-theme-post {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.unknown-hebrew-blog-main .post-media {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.unknown-hebrew-blog-main .post-media img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.blog-sidebar {
    position: relative;
    z-index: 2;
    min-width: 0;
}
/* =========================================
   UNKNOWN HEBREW BLOG SIDEBAR
   ========================================= */

.blog-sidebar {
    font-size: 15px;
    line-height: 1.65;
    background: #ffffff;
    padding: 24px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.06);
}

/* Individual widgets should flow together,
   not look like separate cards */
.blog-sidebar .widget {
    background: transparent;
    padding: 0;
    margin: 0 0 20px;
    border: none;
    box-shadow: none;
}

/* Section headings */
.blog-sidebar .widget-title {
    color: #1f388c;
    font-size: 18px;
    line-height: 1.3;
    margin: 28px 0 15px;
    padding: 10px 0 9px;
    border-top: 3px solid #b36b00;
    border-bottom: 1px solid #e5e5e5;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* First heading should not have excessive top space */
.blog-sidebar .widget:first-child .widget-title {
    margin-top: 0;
}

/* Paragraphs */
.blog-sidebar p {
    margin: 0 0 14px;
}

/* Images */
.blog-sidebar img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto 12px;
    border-radius: 3px;
}

/* Book cover / sidebar image sizing */
.blog-sidebar .widget_media_image img {
    max-width: 210px;
}

/* Regular links */
.blog-sidebar a {
    color: #1f388c;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-sidebar a:hover {
    color: #b36b00;
}

/* CTA buttons */
.blog-sidebar .uh-sidebar-button {
    display: inline-block;
    background: #1f388c;
    color: #ffffff !important;
    margin-top: 5px;
    padding: 9px 17px;
    border: 1px solid #1f388c;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none !important;
}

.blog-sidebar .uh-sidebar-button:hover {
    background: #b36b00;
    border-color: #b36b00;
    color: #ffffff !important;
}

/* Category and Recent Article lists */
.blog-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-sidebar li {
    position: relative;
    padding: 7px 0 7px 15px;
    margin: 0;
    border-bottom: 1px solid #eeeeee;
}

.blog-sidebar li:last-child {
    border-bottom: none;
}

.blog-sidebar li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: #b36b00;
    font-weight: 700;
}

/* Search */
.blog-sidebar input[type="search"],
.blog-sidebar input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    border: 1px solid #d5d5d5;
    border-radius: 3px;
}

.blog-sidebar input[type="search"]:focus,
.blog-sidebar input[type="text"]:focus {
    border-color: #1f388c;
    outline: none;
}

/* Book titles and other strong text */
.blog-sidebar strong {
    color: #1f388c;
    font-weight: 700;
}

/* Mobile */
@media screen and (max-width: 900px) {

    .blog-sidebar {
        margin-top: 40px;
        padding: 20px;
    }
}
/* Mobile */
@media screen and (max-width: 900px) {

    .blog-sidebar {
        margin-top: 40px;
    }

    .blog-sidebar .widget {
        padding: 20px;
        margin-bottom: 20px;
    }
}