/*
 * Theme Name:  Squaretype Child
 * Theme URI:   https://codesupply.co/themes/squaretype/
 * Description: Squaretype Child Theme
 * Author:      Code Supply Co.
 * Author URI:  https://codesupply.co/
 * Template:    squaretype
 * Version:     1.0.0
 */

/* Copy any classes from parent theme here. They will override the parent's version. */


/*  Header  */

@media (min-width: 1440px) {
    .cs-container {
        max-width: 1400px;
        width: 96%;
    }
} 

.site-main table th, .site-main .wp-block-table th, .site-main table td, .site-main .wp-block-table td{
    word-break: normal!important;
}

.wp-block-table{ width: 100%!important; overflow-x: scroll; display: block!important;}

.section-hero{
    display: none;
}

.single .post-sidebar-disabled .entry-header-standard .entry-header-inner > .post-meta{
    margin-left:0;
}


.left_section{
    width: 64%;   
    margin-right: 5%;
    display: inline-block;
}

.right_section{
    width: 30%;
    box-shadow: -5px 0 10px rgba(0, 0, 0, 0.2);
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 15px;
    display: inline-block;
    vertical-align: top;
}
.fixedBanner {
  position: fixed;
  top: 100px;
  width: 378px; /* adjust as needed */
  z-index: 999;
}

.sidewidget{
    margin-bottom: 50px;
}

.recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-post-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.recent-post-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    width: 100%;
}

.recent-post-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 5px;
    margin-right: 15px;
}

.recent-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-title {
    font-size: 16px;
    font-weight: bold;
}

.blog_cats li{
    margin-bottom: 10px;
}

.blog_cats li a:hover, .recent-posts-list li a:hover{
    text-decoration: underline;
}


.single .author-wrap{
    background-color: #f2f2f2;
    color: #000;
    border: 1px solid #bbb;
    padding: 20px;
    border-radius: 20px;
}



.single .post-author .authors-compact .author-avatar{
    border-radius: 5px;
    float: left;
    width: 100px;
    height: 100px;
    padding: 0;
    overflow: hidden;
    margin-right: 15px;
    margin-bottom: 5px;
}
.single .post-author h5.title-author {
    width: 100%;
    padding: 0 20px;   
    margin-bottom: 5px;
}
.user_designation {
    margin-bottom: 10px;
    display: inline-block;
} 
.single .post-author .author-description .note {   
    color: #333;   
}
.single .post-author p.author_links {
    margin: 0 20px;
}
.single .post-author .authors-compact .author-description{
    flex: 100%;
    max-width: 100%;
}


#blog-filters {
    display: flex;
    overflow-x: auto;
    width: 100%;
    background-color: #0084FE;
    gap: 10px;
    margin-bottom:50px;   
    scroll-snap-type: x mandatory;
}

.filter-button {
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: 10px;
}

button.filter-button {
    background-color: #0084FE;
}

button.filter-button.active {
    background-color: #333;
}

.post-archive .ajax-navigation{
    display: none;
}

div#load-more-container {
    text-align: center;
    margin: 50px 0 0;
}
div#load-more-container button{
    background-color: #333;   
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 500;
    min-width: 160px;
}
span.loading{
    width: 100%; text-align: center;
}

.toc-wrapper {
  border: 1px solid #ddd;
  padding: 16px;
  background: #f9f9f9;
  margin-bottom: 30px;
  max-width: 600px;
}
.toc-wrapper ul {
  list-style-type: disc;
  padding-left: 20px;
}
.toc-wrapper li {
  margin-bottom: 8px;
}
.toc-wrapper a {
  text-decoration: none;
  color: #0073aa;
}
.toc-wrapper a:hover {
  text-decoration: underline;
}

.entry-header .entry-header-inner .post-meta {
    margin-top: 1.5rem;
    margin-left: 0 !important;
}

.single-post .entry-content h2, .single-post .entry-content h3 {
  scroll-margin-top: 100px;
}

@media (min-width: 1020px) {
    .archive-heading-small.archive-grid .entry-title {
        font-size: 1.5rem;
        line-height: 2rem;
    }
}

@media (max-width: 1200px) {

    .cs-container {
        max-width: 94% !important;
        width: 94% !important;
    }

}

@media (min-width: 1020px) {
    .single .entry-container .entry-content-wrap {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 calc(100% - 120px);
        flex: inherit;
        width: 100%;
        max-width: 100%;
    }
    .single .entry-container .entry-content {
        max-width: 100%;
    }
}



@media (max-width: 900px) {   
 
    .single .site-main{
        display: block;
    }
    .left_section{
        width: 100%;          
    }
    .right_section {
        margin-top: 50px;
    }    
   .right_section {
        width: 600px;
        margin: 50px auto;
        display: block;
    }

} 

@media (max-width: 700px) {   
  
   .right_section {
        width: 96%;        
    }

} 
