.single-hero {
  background: linear-gradient(135deg, #0FAC75 0%, #0d8c5e 50%, #0a7a4e 100%);
  padding: 70px 0 50px;
  position: relative;
  overflow: hidden;
}

.single-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.single-hero .breadcrumb-nav {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  margin-bottom: 25px;
  position: relative;
}

.single-hero .breadcrumb-nav a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.3s;
}

.single-hero .breadcrumb-nav a:hover {
  color: #fff;
}

.single-hero .breadcrumb-nav .sep {
  margin: 0 8px;
  color: rgba(255,255,255,0.4);
}

.single-hero .breadcrumb-nav .current {
  color: rgba(255,255,255,0.9);
}

.single-hero .cat-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-bottom: 16px;
  text-decoration: none;
  transition: background 0.3s;
  position: relative;
}

.single-hero .cat-badge:hover {
  background: rgba(255,255,255,0.3);
  color: #fff;
}

.single-hero h1 {
  color: #fff;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: relative;
}

.single-hero .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  position: relative;
}

.single-hero .meta-row span i {
  margin-right: 6px;
}

.single-body {
  padding: 50px 0;
  background: #f8f9fa;
}

.single-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.article-main {
  min-width: 0;
}

.featured-image {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.article-body {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  font-size: 1.05rem;
  line-height: 1.9;
  color: #444;
}

.article-body p {
  margin-bottom: 20px;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 20px 0;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  color: #333;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
}

.article-body h2 { font-size: 1.5rem; }
.article-body h3 { font-size: 1.25rem; }
.article-body h4 { font-size: 1.1rem; }

.article-body ul,
.article-body ol {
  padding-left: 20px;
  margin-bottom: 20px;
}

.article-body ul li,
.article-body ol li {
  margin-bottom: 8px;
}

.article-body blockquote {
  border-left: 4px solid #0FAC75;
  padding: 15px 20px;
  margin: 20px 0;
  background: #f0faf5;
  border-radius: 0 12px 12px 0;
  color: #555;
  font-style: italic;
}

.article-body a {
  color: #0FAC75;
  text-decoration: underline;
}

.article-body a:hover {
  color: #0d8c5e;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.article-body table th,
.article-body table td {
  padding: 10px 15px;
  border: 1px solid #e8e8e8;
  text-align: left;
}

.article-body table th {
  background: #f0faf5;
  font-weight: 600;
  color: #333;
}

.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid #f0f0f0;
}

.article-footer .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-footer .tags a {
  display: inline-block;
  padding: 5px 14px;
  background: #f0faf5;
  color: #0FAC75;
  font-size: 0.8rem;
  text-decoration: none;
  border-radius: 20px;
  transition: background 0.3s, color 0.3s;
}

.article-footer .tags a:hover {
  background: #0FAC75;
  color: #fff;
}

.article-footer .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: #f5f5f5;
  color: #888;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 30px;
  transition: background 0.3s, color 0.3s;
}

.article-footer .back-link:hover {
  background: #0FAC75;
  color: #fff;
}

/* Sidebar */
.single-sidebar {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.sidebar-widget {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.sidebar-widget .widget-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e8f5ee;
}

.sidebar-widget .widget-title i {
  color: #0FAC75;
  margin-right: 8px;
}

.sidebar-widget .widget-categories {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-widget .widget-categories li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
}

.sidebar-widget .widget-categories li:last-child {
  border-bottom: none;
}

.sidebar-widget .widget-categories li a {
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.sidebar-widget .widget-categories li a:hover {
  color: #0FAC75;
}

.sidebar-widget .widget-categories li .count {
  background: #e8f5ee;
  color: #0FAC75;
  font-size: 0.75rem;
  padding: 2px 10px;
  border-radius: 10px;
  font-weight: 500;
}

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

.sidebar-widget .widget-posts li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
}

.sidebar-widget .widget-posts li:last-child {
  border-bottom: none;
}

.sidebar-widget .widget-posts li .wp-thumb {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  background: #e8f5ee;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 20px;
}

.sidebar-widget .widget-posts li .wp-info {
  flex: 1;
  min-width: 0;
}

.sidebar-widget .widget-posts li .wp-info a {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  line-height: 1.4;
  margin-bottom: 4px;
  transition: color 0.3s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-widget .widget-posts li .wp-info a:hover {
  color: #0FAC75;
}

.sidebar-widget .widget-posts li .wp-info .wp-date {
  font-size: 0.75rem;
  color: #bbb;
}

.sidebar-widget .widget-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sidebar-widget .widget-tags a {
  display: inline-block;
  padding: 5px 14px;
  background: #f5f5f5;
  color: #888;
  font-size: 0.8rem;
  text-decoration: none;
  border-radius: 20px;
  transition: background 0.3s, color 0.3s;
}

.sidebar-widget .widget-tags a:hover {
  background: #0FAC75;
  color: #fff;
}

/* Recommended section */
.rec-section {
  padding: 50px 0;
  background: #fff;
}

.rec-section .rec-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.rec-section .rec-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #333;
}

.rec-section .rec-header h2 i {
  color: #0FAC75;
  margin-right: 8px;
}

.rec-section .rec-header .rec-link {
  color: #0FAC75;
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 500;
}

.rec-section .rec-header .rec-link:hover {
  text-decoration: underline;
}

.rec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.rec-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: background 0.3s, transform 0.3s;
}

.rec-card:hover {
  background: #e8f5ee;
  transform: translateY(-2px);
}

.rec-card .rec-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ddd;
  line-height: 1;
  flex-shrink: 0;
  width: 30px;
}

.rec-card .rec-info {
  flex: 1;
  min-width: 0;
}

.rec-card .rec-info .rec-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rec-card .rec-info .rec-date {
  font-size: 0.78rem;
  color: #bbb;
}

.rec-card .rec-info .rec-date i {
  margin-right: 4px;
}

/* Error section */
.error-section {
  padding: 100px 0;
  text-align: center;
  background: #f8f9fa;
}

.error-section .err-icon {
  font-size: 4rem;
  color: #ddd;
  margin-bottom: 20px;
}

.error-section h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
}

.error-section p {
  color: #888;
  font-size: 1.05rem;
  margin-bottom: 30px;
}

.error-section .btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: #0FAC75;
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s, transform 0.3s;
}

.error-section .btn-back:hover {
  background: #0d8c5e;
  transform: translateY(-2px);
  color: #fff;
}

@media (max-width: 992px) {
  .single-layout { grid-template-columns: 1fr; }
  .single-hero h1 { font-size: 1.7rem; }
  .article-body { padding: 25px; }
}

@media (max-width: 768px) {
  .single-hero { padding: 50px 0 35px; }
  .single-body { padding: 30px 0; }
  .rec-grid { grid-template-columns: 1fr; }
}
