/* Blog/Single Post Styles */

/* Reset and base styles for blog posts */
.single-post {
  margin: 0;
  padding: 0;
}

.single-post .bbh-outer-wrapper {
  margin-top: 0; /* No margin when using hero section */
  padding: 0;
  background: #ffffff;
}

.single-post .hero-sub-section {
  margin-top: 70px; /* Space for fixed header */
  top: 0;
}

.single-post main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  gap: 40px;
}

.single-post #mainContent {
min-width: 0;
max-width: 90%;
margin: 0 auto;
width: 700px;
}

.single-post .sidebar_disabled #mainContent {
  flex: 1;
  max-width: 800px;
  margin: 0 auto;
}

/* Post content styling */
.single-post .entry-header {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
}

.single-post .entry-title {
  font: normal normal 500 42px/52px Jost;
  letter-spacing: 0px;
  color: #03005f;
  margin: 0 0 15px 0;
}

.single-post .entry-meta {
  font: normal normal normal 14px/20px Jost;
  color: #fff !important;
  margin-bottom: 0;
}

.single-post .entry-meta .posted-on,
.single-post .entry-meta .byline {
  display: inline-block;
  margin-right: 20px;
}

.single-post .entry-content p{
  font: normal normal normal 19px/31px Jost !important;
  color: #333 !important;
  margin-bottom: 40px !important;
}

.single-post .entry-content h1 {
  font: normal normal 500 42px/52px Jost !important;
  color: #03005f !important;
  margin: 50px 0 25px 0 !important;
}

.single-post .entry-content h2 {
  font: normal normal 500 36px/46px Jost !important;
  color: #03005f !important;
  margin: 45px 0 22px 0 !important;
}

.single-post .entry-content h3 {
  font: normal normal 500 24px/24px Jost !important;
  color: #000000 !important;
  margin: 40px 0 20px 0 !important;
}

.single-post .entry-content h4 {
  font: normal normal 500 20px/30px Jost !important;
  color: #000000 !important;
  margin: 35px 0 18px 0 !important;
}

.single-post .entry-content h5 {
  font: normal normal 500 18px/18px Jost !important;
  color: #000000 !important;
  margin: 30px 0 15px 0 !important;
}

.single-post .entry-content h6 {
  font: normal normal 500 16px/20px Jost !important;
  color: #000000 !important;
  margin: 25px 0 12px 0 !important;
}

.single-post .entry-content p {
  margin-bottom: 25px;
}

.single-post .entry-content ul,
.single-post .entry-content ol {
  margin: 25px 0;
  padding-left: 35px;
}

.single-post main #mainContent ul li {
  margin-bottom: 12px;
  font: normal normal normal 19px/31px Jost !important;
}

.single-post .entry-content a {
  color: #03045f;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.single-post .entry-content a:hover {
  color: #6eaec5;
}

/* Table styling */
.single-post .table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 30px 0;
}

.single-post table {
  width: 100%;
  border-collapse: collapse;
  font: normal normal normal 16px/24px Jost;
}

.single-post table td, 
.single-post table th {
  font-size: 16px;
  border: 1px solid #dddddd;
  padding: 12px 15px;
  text-align: left;
}

.single-post table tr:first-child th {
  background-color: #f2f2f2;
  font-weight: 500;
  color: #03005f;
}

.single-post table tr {
  background-color: white;
}

.single-post table tr:nth-child(even) {
  background-color: #f9f9f9;
}


.single-post .entry-content blockquote {
  border-left: 4px solid #03005f;
  padding-left: 25px;
  margin: 35px 0;
  font-style: italic;
  color: #555;
  font: normal normal normal 17px/29px Jost !important;
}

.single-post .entry-content img {
  max-width: 100%;
  height: auto;
  margin: 30px 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.single-post .entry-content .wp-caption {
  max-width: 100%;
  margin: 30px 0;
}

.single-post .entry-content .wp-caption-text {
  font-size: 16px;
  color: #666;
  text-align: center;
  margin-top: 10px;
  font: normal normal normal 16px/24px Jost !important;
}

.single-post .entry-footer {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 2px solid #e0e0e0;
  font: normal normal normal 14px/20px Jost !important;
  color: #666;
}

.single-post .post-categories,
.single-post .post-tags {
  margin-bottom: 15px;
}

.single-post .post-categories span,
.single-post .post-tags span {
  font-weight: 500;
  color: #03005f;
  margin-right: 10px;
}

.single-post .post-categories a,
.single-post .post-tags a {
  color: #03045f;
  text-decoration: none;
  background: #f0f0f0;
  padding: 4px 8px;
  border-radius: 4px;
  margin-right: 8px;
  margin-bottom: 8px;
  display: inline-block;
  transition: all 0.3s ease;
}

.single-post .post-categories a:hover,
.single-post .post-tags a:hover {
  background: #03045f;
  color: #ffffff;
}

/* Sidebar styling */
.single-post aside {
  width: 280px;
  flex-shrink: 0;
}

.single-post .sidebar_disabled aside {
  display: none;
}

/* Responsive design */
@media only screen and (max-width: 1024px) {
  .single-post main {
    flex-direction: column;
    gap: 30px;
  }
  
  .single-post aside {
    width: 100%;
    order: 2;
  }
  
  .single-post #mainContent {
    order: 1;
  }
}

@media only screen and (max-width: 768px) {
  .single-post .bbh-outer-wrapper {
    margin-top: 0;
  }
  
  .single-post .hero-sub-section {
    margin-top: 50px;
  }
  
  .single-post main {
    padding: 20px 15px;
  }
  
  .single-post .entry-title {
    font: normal normal 500 32px/42px Jost;
  }
  
  .single-post .entry-content h1 {
    font: normal normal 500 28px/38px Jost;
  }
  
  .single-post .entry-content h2 {
    font: normal normal 500 24px/34px Jost;
  }
  
  .single-post .entry-content h3 {
    font: normal normal 500 20px/30px Jost;
  }
  
  .single-post .entry-content {
    font: normal normal normal 16px/27px Jost;
  }
  
  .single-post .entry-content li {
    font: normal normal normal 16px/27px Jost;
  }
}

@media only screen and (max-width: 480px) {
  .single-post .bbh-outer-wrapper {
    margin-top: 0;
  }
  
  .single-post .hero-sub-section {
    margin-top: 40px;
  }
  
  .single-post main {
    padding: 15px 10px;
  }
  
  .single-post .entry-title {
    font: normal normal 500 28px/36px Jost;
  }
  
  .single-post .entry-content h1 {
    font: normal normal 500 24px/32px Jost;
  }
  
  .single-post .entry-content h2 {
    font: normal normal 500 20px/28px Jost;
  }
  
  .single-post .entry-content {
    font: normal normal normal 15px/25px Jost;
  }
  
  .single-post .entry-content li {
    font: normal normal normal 15px/25px Jost;
  }
  
  .single-post table td, 
  .single-post table th {
    font-size: 14px;
    padding: 8px 10px;
  }
}

/* Related Posts Styling */
.single-post .related-posts {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid #e0e0e0;
}

.single-post .related-posts h3 {
  font: normal normal 500 28px/38px Jost;
  color: #03005f;
  margin-bottom: 25px;
}

.single-post .related-posts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.single-post .related-posts-list li {
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
}

.single-post .related-posts-list li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: #03005f;
  font-weight: bold;
}

.single-post .related-posts-list li a {
  font: normal normal normal 18px/28px Jost;
  color: #03045f;
  text-decoration: none;
  transition: color 0.3s ease;
}

.single-post .related-posts-list li a:hover {
  color: #6eaec5;
  text-decoration: underline;
}

/* Mobile styles for related posts */
@media only screen and (max-width: 768px) {
  .single-post .related-posts h3 {
    font: normal normal 500 24px/32px Jost;
  }
  
  .single-post .related-posts-list li a {
    font: normal normal normal 16px/26px Jost;
  }
}
