/**
 * Blog system styles – shared by blog index and blog post pages.
 * Theme: Trident teal (#008080).
 */

.blog-hero .container,
.blog-filters .container,
.blog-listing .container,
.blog-post .container,
.breadcrumb .container {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.blog-hero {
  background: linear-gradient(135deg, #008080 0%, #006666 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.blog-filters {
  padding: 40px 0;
  background-color: #f1f3f5;
}

.filter-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  padding: 10px 24px;
  border: 2px solid #008080;
  background: white;
  color: #008080;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: #008080;
  color: white;
}

.blog-listing {
  padding: 60px 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.blog-card-wrapper {
  position: relative;
}

.featured-badge {
  background-color: #ff9800;
  color: white;
  padding: 5px 15px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  position: absolute;
  top: 15px;
  right: 15px;
}

.blog-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 14px;
  color: #495057;
  flex-wrap: wrap;
}

.blog-card-category {
  background-color: #008080;
  color: white;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.read-more-link {
  color: #008080;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.read-more-link:hover {
  text-decoration: underline;
}

.breadcrumb {
  padding: 16px 0;
  background: #f8f9fa;
  font-size: 14px;
  color: #6c757d;
}

.breadcrumb a {
  color: #008080;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.blog-post {
  padding-bottom: 60px;
}

.blog-header {
  margin-bottom: 2rem;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 14px;
  color: #495057;
  flex-wrap: wrap;
}

.blog-meta .category {
  background-color: #008080;
  color: white;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
}

.blog-title {
  color: #008080;
  font-size: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.blog-subtitle {
  font-size: 1.125rem;
  color: #495057;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.author-info {
  font-size: 14px;
  color: #6c757d;
}

.author-name {
  font-weight: 600;
  color: #008080;
}

.blog-hero-image {
  width: 100%;
  margin: 0 0 2rem;
  border-radius: 8px;
  overflow: hidden;
}

.blog-hero-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.blog-inline-image {
  width: 100%;
  margin: 2rem 0;
}

.blog-inline-image img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.blog-inline-image figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #6c757d;
  font-style: italic;
  text-align: center;
}

.table-of-contents {
  background: #f1f3f5;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.table-of-contents h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.125rem;
  color: #008080;
}

.table-of-contents ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.table-of-contents li {
  margin-bottom: 0.5rem;
}

.table-of-contents a {
  color: #495057;
  text-decoration: none;
}

.table-of-contents a:hover {
  color: #008080;
  text-decoration: underline;
}

.blog-content {
  line-height: 1.7;
}

.blog-content .introduction {
  margin-bottom: 2rem;
}

.blog-content .lead {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.blog-content .content-section {
  margin-bottom: 2.5rem;
}

/* Three-column card layout for Key Focus Areas, Implementation Model, Business Outcomes */
.blog-highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.blog-highlights-grid .content-section {
  margin-bottom: 0;
  background: #f8fafb;
  border: 1px solid #e6f0f0;
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.blog-highlights-grid .content-section:hover {
  box-shadow: 0 6px 20px rgba(0, 128, 128, 0.08);
  border-color: #b8e0e0;
}

.blog-highlights-grid .content-section h2 {
  margin-top: 0;
  font-size: 1.25rem;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #e6f7f7;
}

.blog-highlights-grid .content-section .feature-list {
  margin: 0;
  padding-left: 1.25rem;
  flex-grow: 1;
}

.blog-highlights-grid .content-section .feature-list li {
  margin-bottom: 0.4rem;
}

@media (max-width: 900px) {
  .blog-highlights-grid {
    grid-template-columns: 1fr;
  }

  .blog-highlights-grid .content-section {
    margin-bottom: 0;
  }

  .blog-highlights-grid .content-section:last-child {
    margin-bottom: 0;
  }
}

.blog-content .content-section h2 {
  color: #008080;
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e6f7f7;
}

.blog-content .content-section h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #333;
}

.blog-content .content-section h4 {
  font-size: 1rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: #495057;
}

.blog-content .content-section p {
  margin-bottom: 1rem;
  color: #495057;
}

.challenge-block {
  margin-bottom: 2rem;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
}

.challenge-block h3 {
  margin-top: 0;
}

.problem-box {
  background: #fff5f5;
  padding: 1rem 1.25rem;
  border-left: 4px solid #dc3545;
}

.solution-box {
  background: #f0fdf4;
  padding: 1rem 1.25rem;
  border-left: 4px solid #008080;
}

.check-list {
  list-style: none;
  padding-left: 0;
  margin: 0.5rem 0;
}

.check-list li {
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  position: relative;
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #008080;
  font-weight: bold;
}

.feature-list {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.feature-list li {
  margin-bottom: 0.5rem;
}

.share-section {
  padding: 1.5rem 0;
  border-top: 1px solid #dee2e6;
  margin-top: 2rem;
}

.share-section h4 {
  margin: 0 0 0.75rem 0;
  font-size: 0.875rem;
  color: #6c757d;
}

.share-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.share-btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid #dee2e6;
  background: #f8f9fa;
  color: #495057;
}

.share-btn:hover {
  background: #e9ecef;
}

.share-btn.linkedin {
  border-color: #0a66c2;
  color: #0a66c2;
}

.share-btn.twitter {
  border-color: #1da1f2;
  color: #1da1f2;
}

.share-btn.email {
  border-color: #008080;
  color: #008080;
}

.blog-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-top: 1px solid #dee2e6;
  margin-top: 2rem;
}

.nav-link {
  color: #008080;
  text-decoration: none;
  font-weight: 500;
}

.nav-link:hover {
  text-decoration: underline;
}

.nav-back {
  flex: 0 0 auto;
}

.nav-adjacent {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-link.nav-prev,
.nav-link.nav-next {
  display: flex;
  flex-direction: column;
  max-width: 220px;
}

.nav-label {
  font-size: 12px;
  color: #6c757d;
  margin-bottom: 0.25rem;
}

.nav-title {
  font-size: 14px;
  color: #008080;
}

.blog-newsletter {
  background-color: #e6f7f7;
  padding: 60px 0;
  margin-top: 60px;
}

.blog-newsletter .container {
  text-align: center;
}

.blog-footer {
  padding: 2rem 0;
  text-align: center;
  color: #6c757d;
  font-size: 14px;
}
