/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/


/* ===== Global Blog/Sidebar Styles ===== */
/* Reset and Base Styles */
/* * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
} */

/* body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  padding: 20px;
} */

/* Layout Styles */
.blog-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
/*   max-width: 1200px; */
  padding: 20px;
}

.blog-main-content {
  flex: 3;
  min-width: 0;
}

.blog-container .sidebar {
  flex: 1;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 80px;
  align-self: flex-start;
}

/* Content Styles */
.content-container {
  background-color: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 20px;
}

.content-area p,
.content-section p {
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.highlighted-text {
  color: #0360E3;
}

/* Headings */
.blog-container h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
}

.blog-container h3 {
  font-size: 24px;
  font-weight: 600;
  margin: 30px 0 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ddd;
}

.blog-container h4 {
  font-size: 20px;
  font-weight: 600;
  margin: 20px 0 10px;
}

.blog-container h5 {
  font-size: 18px;
  font-weight: 500;
  margin: 15px 0 8px;
}

/* Links */
.blog-container a {
  color: #0360E3;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-container a:hover {
  color: #0248a8;
  text-decoration: underline;
}

/* Table Styles */
.blog-container .table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
}

.blog-container.table th,
.blog-container .table td {
  padding: 12px;
  text-align: left;
  border: 1px solid #ddd;
}

.blog-container .table th {
  background-color: #f2f2f2;
  font-weight: 600;
}

/* Author Styles */
.blog-container .author {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.blog-container .author-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-container .name-row {
  display: flex;
  align-items: center;
  gap: 15px;
}

.blog-container .name-row img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info span {
  font-size: 14px;
  font-weight: 600;
  color: #666;
}

.author-info h4 {
  font-size: 20px;
  margin: 0;
}

.author-info p {
  font-size: 15px;
  color: #555;
  margin-top: 5px;
}

/* TOC Styles */
.blog-container .toc {
/*   padding: 20px; */
  background: #f8f9fa;
  border-radius: 8px;
  transition: max-height 0.5s ease;
  overflow: hidden;
}

.toc p {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #333;
}

.toc ul {
  list-style: none;
	padding-left:0px !important;
}

.toc li {
  padding: 8px 0;
  border-bottom: 1px solid #e1e1e1;
}

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

.toc a {
  display: block;
  color: #333;
  padding: 5px 0;
  font-size: 15px;
  transition: all 0.3s ease;
}

.toc a:hover {
  color: #0360E3;
  padding-left: 5px;
}

.toc a.active {
  color: #0360E3;
  border-right: 12px solid #0360E3;
  font-weight: 600;
}

/* Button Styles */
.show-more-btn,
.show-less-btn {
  background-color: #0360E3;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.show-more-btn:hover,
.show-less-btn:hover {
  background-color: #0248a8;
}

.show-less-btn {
  display: none;
}

/* Collapsible Content */
.content-col {
  transition: max-height 0.5s ease;
  overflow: hidden;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .blog-container {
    flex-direction: column;
  }
  
  .blog-container .sidebar {
    order: -1;
    max-width: 100%;
    position: static;
  }
  
  .blog-container h2 {
    font-size: 28px;
  }
  
  .blog-container h3 {
    font-size: 22px;
  }
  
  .name-row {
    flex-direction: row;
    align-items: center;
  }
}