/**
Theme Name: Custom blog
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: custom-blog
Template: astra
*/

/*
Theme Name: Custom Blog
Description: Custom Blog Child Theme
Author: Custom Blog
Template: astra
Version: 1.0
*/


/* =====================================================
   GLOBAL FULL WIDTH
===================================================== */

html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
}


/* Remove Astra content restrictions */

body.single-post #content,
body.single-post .site-content,
body.single-post .custom-blog-site-content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* Custom blog itself */

body.single-post .custom-single-blog {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* =====================================================
   MAIN CONTAINER
===================================================== */

.custom-single-blog .blog-container {

    width: 100% !important;

    max-width: none !important;

    margin: 0 !important;

    padding: 40px 5px 80px;

    box-sizing: border-box;

}


/* =====================================================
   TWO COLUMN LAYOUT
===================================================== */

.custom-single-blog .article-layout {

    width: 100% !important;

    max-width: none !important;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        360px;

    gap: 60px;

    align-items: start;

}


/* =====================================================
   LEFT ARTICLE
===================================================== */

.custom-single-blog .article-content {

    width: 100% !important;

    max-width: none !important;

    min-width: 0;

    margin: 0;

}


/* =====================================================
   FEATURED IMAGE
===================================================== */

.custom-single-blog .article-featured-image {

    width: 100%;

    margin-bottom: 15px;

}


.custom-single-blog .article-featured-image img {

    display: block;

    width: 100% !important;

    max-width: none !important;

    height: auto;

    aspect-ratio: 16 / 9;

    object-fit: cover;

    border-radius: 14px;

}


/* =====================================================
   CATEGORY
===================================================== */

.custom-single-blog .article-category {

    margin-bottom: 12px;

    color: #f5a900;

    font-size: 14px;

    font-weight: 700;

    text-transform: uppercase;

}


/* =====================================================
   TITLE
===================================================== */

.custom-single-blog .article-main-title {

    width: 100% !important;

    max-width: none !important;

    margin: 0 0 18px;

    color: #17243a;

    font-size: clamp(
        36px,
        4vw,
        58px
    );

    line-height: 1.08;

    font-weight: 800;

}


/* =====================================================
   META
===================================================== */

.custom-single-blog .article-meta {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 30px;

    color: #777;

    font-size: 14px;

}


/* =====================================================
   EXCERPT
===================================================== */

.custom-single-blog .article-excerpt {

    margin-bottom: 30px;

    color: #555;

    font-size: 20px;

    line-height: 1.7;

}


/* =====================================================
   GUTENBERG CONTENT
===================================================== */

.custom-single-blog .article-body {

    width: 100% !important;

    max-width: none !important;

    color: #1f2937;

    font-size: 18px;

    line-height: 1.8;

}


.custom-single-blog .article-body p {

    margin-top: 0;

    margin-bottom: 25px;

}


.custom-single-blog .article-body h2 {

    margin-top: 50px;

    margin-bottom: 20px;

    color: #17243a;

    font-size: 32px;

    line-height: 1.25;

}


.custom-single-blog .article-body h3 {

    margin-top: 35px;

    margin-bottom: 15px;

    color: #17243a;

    font-size: 25px;

}


/* Gutenberg images */

.custom-single-blog .article-body img {

    max-width: 100%;

    height: auto;

    border-radius: 10px;

}


/* Gutenberg lists */

.custom-single-blog .article-body ul,
.custom-single-blog .article-body ol {

    margin-bottom: 25px;

    padding-left: 25px;

}


/* =====================================================
   RIGHT SIDEBAR
===================================================== */

.custom-single-blog .blog-sidebar {

    width: 100%;

    max-width: 360px;

    min-width: 0;

    position: sticky;

    top: 30px;

}


/* =====================================================
   SIDEBAR BOX
===================================================== */

.custom-single-blog .sidebar-widget {

    width: 100%;

    margin-bottom: 25px;

    padding: 24px;

    box-sizing: border-box;

    border: 1px solid #e5e5e5;

    border-radius: 14px;

    background: #ffffff;

}


.custom-single-blog .sidebar-widget h3 {

    margin: 0 0 20px;

    color: #17243a;

    font-size: 23px;

    line-height: 1.25;

}


/* =====================================================
   RELATED POSTS
===================================================== */

.custom-single-blog .sidebar-post {

    display: flex;

    gap: 12px;

    padding: 12px 0;

    border-bottom: 1px solid #eeeeee;

}


.custom-single-blog .sidebar-post:last-child {

    border-bottom: none;

}


.custom-single-blog .sidebar-post-image {

    flex: 0 0 75px;

}


.custom-single-blog .sidebar-post-image img {

    width: 75px;

    height: 60px;

    object-fit: cover;

    border-radius: 7px;

}


.custom-single-blog .sidebar-post-info {

    flex: 1;

    min-width: 0;

}


.custom-single-blog .sidebar-post-info a {

    display: block;

    color: #1670d2;

    font-size: 14px;

    line-height: 1.4;

    font-weight: 600;

    text-decoration: none;

}


.custom-single-blog .sidebar-post-info a:hover {

    text-decoration: underline;

}


.custom-single-blog .sidebar-post-info small {

    display: block;

    margin-top: 5px;

    color: #888;

    font-size: 11px;

}


/* =====================================================
   MOST POPULAR
===================================================== */

.custom-single-blog .popular-posts {

    margin: 0;

    padding-left: 28px;

}


.custom-single-blog .popular-posts li {

    margin-bottom: 12px;

}


.custom-single-blog .popular-posts a {

    color: #1670d2;

    text-decoration: none;

}


/* =====================================================
   NEWSLETTER
===================================================== */

.custom-single-blog .sidebar-newsletter {

    width: 100%;

    margin-bottom: 25px;

    padding: 28px;

    box-sizing: border-box;

    border-radius: 14px;

    background: #111827;

    color: #ffffff;

}


.custom-single-blog .sidebar-newsletter > span {

    color: #f5a900;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1px;

}


.custom-single-blog .sidebar-newsletter h3 {

    margin: 8px 0 10px;

    color: #ffffff;

    font-size: 23px;

}


.custom-single-blog .sidebar-newsletter p {

    margin-bottom: 18px;

    color: #bbbbbb;

    font-size: 14px;

    line-height: 1.6;

}


/* Newsletter form */

.custom-single-blog .newsletter-form {

    margin: 0;

}


.custom-single-blog .newsletter-form input {

    display: block;

    width: 100%;

    min-height: 46px;

    margin-bottom: 8px;

    padding: 12px 14px;

    box-sizing: border-box;

    border: 0;

    border-radius: 5px;

    background: #ffffff;

    color: #222222;

}


.custom-single-blog .newsletter-form button {

    min-height: 46px;

    padding: 12px 25px;

    border: 0;

    border-radius: 5px;

    background: #0877d8;

    color: #ffffff;

    font-weight: 700;

    cursor: pointer;

}


/* =====================================================
   CATEGORIES
===================================================== */

.custom-single-blog .sidebar-categories {

    margin: 0;

    padding: 0;

    list-style: none;

}


.custom-single-blog .sidebar-categories li {

    padding: 9px 0;

    border-bottom: 1px solid #eeeeee;

}


.custom-single-blog .sidebar-categories a {

    color: #1670d2;

    text-decoration: none;

}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1100px) {

    .custom-single-blog .blog-container {

        padding-left: 35px;

        padding-right: 35px;

    }


    .custom-single-blog .article-layout {

        grid-template-columns:
            minmax(0, 1fr)
            320px;

        gap: 35px;

    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 900px) {

    .custom-single-blog .blog-container {

        padding: 25px 22px 60px;

    }


    .custom-single-blog .article-layout {

        grid-template-columns: 1fr;

        gap: 40px;

    }


    .custom-single-blog .blog-sidebar {

        max-width: none;

        position: static;

    }


    .custom-single-blog .article-main-title {

        font-size: 38px;

    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 600px) {

    .custom-single-blog .blog-container {

        padding-left: 18px;

        padding-right: 18px;

    }


    .custom-single-blog .article-main-title {

        font-size: 32px;

    }


    .custom-single-blog .article-body {

        font-size: 17px;

    }

}