/* ===============================
   SnTHostings Tech Blog Styles - ENHANCED FINAL
   Conversion-Optimized Orange Theme
   UX/UI Focused Design
   
   Updates Applied:
   - Wider content area (820px)
   - Fixed gradient background
   - Mobile breakpoint at 1000px
   - Image lightbox ready
================================= */

:root {
  --cta: #ff6a00;
  --cta-hover: #e35a00;
  --text: #0b1b2b;
  --muted: #5b6b7a;
  --bg-light: #f9fbfc;
  --border: #e6edf3;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(11, 29, 50, 0.08);
  --background-width: 1500px;
  --container: 1280px;
}

* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

/* ========== BLOG HERO WITH GRADIENT BACKGROUND (FIXED) ========== */
.blog-hero {
  position: relative;
  text-align: center;
  padding: 60px 20px 120px;
  margin-bottom: 60px;
  background: linear-gradient(135deg, #fff8f0 0%, #ffe8cc 50%, #fff5e6 100%);
  border-radius: 0 0 60px 60px;
  z-index: 1;
}

.blog-hero h1 {
  font-size: 3.5em;
  margin: 0 0 20px 0;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -1.5px;
  line-height: 1.1;
}

.blog-hero h1 .highlight {
  color: var(--cta);
  position: relative;
  display: inline-block;
}

.blog-hero h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: -2%;
  width: 104%;
  height: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 8'%3E%3Cpath d='M2,4 Q125,2 250,4 T498,4' stroke='%23ff8c3c' stroke-width='4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  opacity: 0.85;
}

.blog-hero p {
  font-size: 1.25em;
  color: #4a4a4a;
  margin: 0 auto 35px;
  font-weight: 400;
  max-width: 700px;
  line-height: 1.7;
}

/* Hero Badge */
.blog-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #fff;
  border: 2px solid var(--cta);
  border-radius: 50px;
  color: var(--cta);
  font-size: 0.85em;
  font-weight: 700;
  margin-bottom: 25px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(255, 106, 0, 0.15);
  transition: all 0.3s ease;
}

.blog-hero-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 106, 0, 0.25);
}

/* ========== SINGLE POST HERO ========== */
.single-hero {
  padding: 100px 20px 50px;
  background: linear-gradient(135deg, #fff8f0 0%, #ffe8cc 50%, #fff5e6 100%);
  border-radius: 0 0 60px 60px;
  margin-bottom: 60px;
  position: relative;
}

.single-hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.breadcrumb {
  font-size: 0.9em;
  color: var(--muted);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--cta);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--cta-hover);
}

.single-hero-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 0.95em;
  font-weight: 600;
  padding: 10px 20px;
  background: #fff;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.meta-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 106, 0, 0.12);
}

.meta-icon {
  font-size: 1.1em;
}

.meta-item a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.meta-item a:hover {
  color: var(--cta);
}

/* ========== MAIN CONTAINER (WIDER) ========== */
.tech-blog {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  max-width: var(--container);
  margin: 0 auto 100px;
  padding: 0 20px;
  width: 100%;
}

/* ========== CONTENT AREA (EVEN WIDER - 980px for better article display) ========== */
.content {
  flex: 1 1 980px;
  max-width: 980px;
  min-width: 0; /* Important for flexbox */
}

/* ========== FEATURED POST ========== */
.featured-post {
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(255, 106, 0, 0.15);
  transition: all 0.4s ease;
  margin-bottom: 50px;
  position: relative;
}

.featured-post:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 60px rgba(255, 106, 0, 0.15);
  border-color: rgba(255, 106, 0, 0.3);
}

.featured-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.featured-thumb {
  position: relative;
  width: 100%;
  min-height: 400px;
  max-height: 450px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.featured-thumb img {
  width: 100%;
  height: 100%;
  max-height: 450px;
  object-fit: contain;
  transition: transform 0.6s ease;
}

.featured-post:hover .featured-thumb img {
  transform: scale(1.08);
}

.featured-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: linear-gradient(135deg, #ff7f50 0%, #ff4500 100%);
  color: #fff;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85em;
  box-shadow: 0 4px 12px rgba(255, 69, 0, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.featured-content {
  padding: 35px 30px;
}

.featured-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.featured-meta span {
  font-size: 0.9em;
  color: var(--muted);
  font-weight: 600;
}

.meta-date,
.meta-reading {
  display: flex;
  align-items: center;
  gap: 5px;
}

.featured-content h2 {
  font-size: 2.2em;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 20px 0;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.featured-content p {
  font-size: 1.1em;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 25px;
}

.featured-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cta);
  font-weight: 800;
  font-size: 1.05em;
  transition: all 0.3s ease;
}

.featured-post:hover .featured-cta {
  gap: 12px;
  color: var(--cta-hover);
}

/* ========== SECTION DIVIDER ========== */
.section-divider {
  text-align: center;
  margin: 60px 0 40px;
  position: relative;
}

.section-divider::before,
.section-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
}

.section-divider::before {
  left: 0;
}

.section-divider::after {
  right: 0;
}

.section-divider span {
  background: #fff;
  padding: 0 30px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1em;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

/* ========== POST LIST ========== */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 50px;
}

.post-list-item {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 106, 0, 0.1);
  transition: all 0.3s ease;
}

.post-list-item:hover {
  transform: translateX(8px);
  box-shadow: 0 12px 36px rgba(255, 106, 0, 0.12);
  border-color: rgba(255, 106, 0, 0.2);
}

.post-list-link {
  display: flex;
  text-decoration: none;
  color: inherit;
  gap: 25px;
  padding: 25px;
}

.post-list-thumb {
  flex: 0 0 220px;
  height: 160px;
  overflow: hidden;
  border-radius: 14px;
  position: relative;
}

.post-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-list-item:hover .post-list-thumb img {
  transform: scale(1.1);
}

.post-list-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-list-content h3 {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px 0;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.post-list-content p {
  font-size: 0.95em;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 15px;
}

.post-list-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85em;
  color: var(--muted);
  font-weight: 600;
}

.read-more-inline {
  color: var(--cta);
  font-weight: 700;
  transition: all 0.3s ease;
}

.post-list-item:hover .read-more-inline {
  color: var(--cta-hover);
}

/* ========== SIDEBAR (ADJUSTED - 260px) ========== */
.sidebar {
  flex: 0 0 260px;
  max-width: 260px;
  min-width: 0; /* Important for flexbox */
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-box {
  background: #fff;
  border-radius: 24px;
  padding: 35px 28px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 106, 0, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 30px;
}

.sidebar-box:hover {
  box-shadow: 0 16px 50px rgba(255, 106, 0, 0.12);
  border-color: rgba(255, 106, 0, 0.2);
}

/* ========== SEARCH BAR ========== */
.sidebar-search {
  margin-bottom: 32px;
  position: relative;
}

.search-form {
  display: flex;
  align-items: center;
  position: relative;
}

.search-field {
  flex: 1;
  padding: 14px 50px 14px 18px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 0.95em;
  outline: none;
  transition: all 0.3s ease;
  background: #f9fbfc;
  font-family: inherit;
  width: 100%;
}

.search-field:focus {
  border-color: var(--cta);
  background: #fff;
  box-shadow: 0 4px 12px rgba(255, 106, 0, 0.1);
}

.search-submit {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--cta);
  border: none;
  color: #fff;
  font-size: 1.1em;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-submit:hover {
  background: var(--cta-hover);
  transform: translateY(-50%) scale(1.05);
}

.search-icon {
  display: block;
  line-height: 1;
}

/* ========== SIDEBAR SECTIONS ========== */
.sidebar-section {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 2px solid #f5f0e8;
  position: relative;
}

.sidebar-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.sidebar-section::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--cta), #ff8b1f);
  border-radius: 2px;
}

.sidebar-section h3 {
  font-size: 1.15em;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 18px 0;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-icon {
  font-size: 1.2em;
}

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

.sidebar-list li {
  margin-bottom: 12px;
  padding-left: 18px;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--cta);
  font-weight: 700;
  transition: transform 0.3s ease;
}

.sidebar-list li:hover::before {
  transform: translateX(3px);
}

.sidebar-list li a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95em;
  transition: all 0.2s ease;
  line-height: 1.6;
  flex: 1;
}

.sidebar-list li a:hover {
  color: var(--cta);
  padding-left: 4px;
}

.post-date,
.cat-count {
  font-size: 0.8em;
  color: var(--muted);
  font-weight: 600;
  background: #f5f0e8;
  padding: 2px 8px;
  border-radius: 6px;
}

/* Tag Cloud */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-item {
  padding: 6px 14px;
  background: linear-gradient(135deg, #fff8f0 0%, #ffe8cc 100%);
  border: 1px solid #ffd699;
  border-radius: 20px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.85em;
  font-weight: 600;
  transition: all 0.3s ease;
}

.tag-item:hover {
  background: var(--cta);
  color: #fff;
  border-color: var(--cta);
  transform: translateY(-2px);
}

/* ========== SIDEBAR CTA ========== */
.sidebar-cta-box {
  background: linear-gradient(135deg, #fff8f0 0%, #ffe8cc 100%);
  border: 2px solid #ffd699;
  border-radius: 24px;
  padding: 35px 28px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(255, 106, 0, 0.1);
  transition: all 0.3s ease;
}

.sidebar-cta-box:hover {
  box-shadow: 0 12px 32px rgba(255, 106, 0, 0.15);
  transform: translateY(-4px);
}

.sidebar-cta-icon {
  font-size: 2.5em;
  margin-bottom: 15px;
  filter: drop-shadow(0 2px 4px rgba(255, 106, 0, 0.2));
}

.sidebar-cta-box h3 {
  font-size: 1.4em;
  color: var(--text);
  margin: 0 0 12px 0;
  font-weight: 800;
}

.sidebar-cta-box p {
  color: #666;
  margin: 0 0 20px 0;
  font-size: 0.95em;
  line-height: 1.6;
}

.sidebar-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #ff8c3c 0%, #ffab60 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.95em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(255, 140, 60, 0.25);
}

.sidebar-cta-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(255, 140, 60, 0.35);
  color: #fff;
  text-decoration: none;
}

/* ========== PAGINATION ========== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 60px;
}

.pagination ul {
  display: flex;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination li {
  display: inline-block;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 45px;
  height: 45px;
  padding: 0 16px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pagination a:hover {
  background: var(--cta);
  color: #fff;
  border-color: var(--cta);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 106, 0, 0.2);
}

.pagination .current {
  background: linear-gradient(135deg, #ff7f50 0%, #ff4500 100%);
  color: #fff;
  border-color: var(--cta);
  box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
}

.pagination .dots {
  border: none;
  background: transparent;
  box-shadow: none;
}

/* ========== SINGLE POST CONTENT ========== */
.single-post-wrapper {
  max-width: 100%;
  width: 100%;
}

.single-post-content {
  background: #fff;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 106, 0, 0.1);
  margin-bottom: 40px;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.post-featured-image {
  margin: 0 0 40px 0;
  border-radius: 24px;
  cursor: pointer;
  position: relative;
  max-width: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  max-height: 600px;
}

.post-featured-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 600px;
  display: block;
  transition: transform 0.3s ease;
  object-fit: contain;
  border-radius: 24px;
}

.post-featured-image:hover img {
  transform: scale(1.02);
}

/* Image zoom indicator */
.post-featured-image::after {
  content: '🔍';
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 106, 0, 0.9);
  color: white;
  padding: 10px 15px;
  border-radius: 50px;
  font-size: 1.2em;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.post-featured-image:hover::after {
  opacity: 1;
}

.post-content {
  font-size: 1.1em;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 50px;
}

.post-content h2,
.post-content h3,
.post-content h4 {
  color: var(--text);
  font-weight: 700;
  margin: 40px 0 20px;
  line-height: 1.3;
}

.post-content h2 {
  font-size: 2em;
  letter-spacing: -0.5px;
}

.post-content h3 {
  font-size: 1.6em;
}

.post-content h4 {
  font-size: 1.3em;
}

.post-content p {
  margin-bottom: 20px;
}

.post-content a {
  color: var(--cta);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.post-content a:hover {
  color: var(--cta-hover);
  border-bottom-color: var(--cta);
}

.post-content ul,
.post-content ol {
  margin: 20px 0 20px 30px;
  line-height: 1.9;
}

.post-content ul li,
.post-content ol li {
  margin-bottom: 12px;
}

.post-content ul li::marker {
  color: var(--cta);
  font-size: 1.2em;
}

.post-content code {
  background: #f5f0e8;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
  color: #d14;
}

.post-content pre {
  background: #f5f0e8;
  padding: 20px;
  border-radius: 12px;
  overflow-x: auto;
  margin: 25px 0;
  border-left: 4px solid var(--cta);
}

.post-content pre code {
  background: none;
  padding: 0;
  color: var(--text);
}

.post-content blockquote {
  border-left: 4px solid var(--cta);
  padding-left: 25px;
  margin: 30px 0;
  font-style: italic;
  color: var(--muted);
  background: #f9fbfc;
  padding: 20px 25px;
  border-radius: 0 12px 12px 0;
}

.post-content img {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 600px;
  border-radius: 12px;
  margin: 30px auto;
  display: block;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s ease;
  object-fit: contain;
  margin-right: 0;
  margin-left: 0;
}

.post-content img:hover {
  transform: scale(1.02);
}

/* ========== IMAGE LIGHTBOX ========== */
.image-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow: auto;
}

.image-lightbox.active {
  display: flex;
}

.lightbox-image-container {
  position: relative;
  max-width: 95%;
  max-height: 95%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

.image-lightbox img {
  max-width: none;
  max-height: none;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 0 50px rgba(255, 106, 0, 0.5);
  border-radius: 8px;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.image-lightbox img.zoomed {
  cursor: zoom-out;
  transform: scale(2);
}

.image-lightbox img.zoomed:active {
  cursor: grab;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 40px;
  color: white;
  background: var(--cta);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 3px solid white;
}

.lightbox-close:hover {
  transform: rotate(90deg) scale(1.1);
  background: var(--cta-hover);
}

.lightbox-zoom-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 106, 0, 0.9);
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.9em;
  font-weight: 600;
  pointer-events: none;
  z-index: 10000;
}

/* ========== INLINE CTA BOX (Mid-Post) ========== */
.inline-cta-box {
  background: linear-gradient(135deg, #fff8f0 0%, #ffe8cc 100%);
  border: 2px solid #ffd699;
  border-radius: 24px;
  padding: 40px;
  text-align: center;
  margin: 50px 0;
  box-shadow: 0 8px 24px rgba(255, 106, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.inline-cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.05) 0%, transparent 70%);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.inline-cta-icon {
  font-size: 3em;
  margin-bottom: 15px;
  filter: drop-shadow(0 2px 4px rgba(255, 106, 0, 0.2));
  position: relative;
  z-index: 1;
}

.inline-cta-content {
  position: relative;
  z-index: 1;
}

.inline-cta-box h3 {
  font-size: 1.8em;
  color: var(--text);
  margin: 0 0 12px 0;
  font-weight: 800;
}

.inline-cta-box p {
  color: #666;
  margin: 0 0 25px 0;
  font-size: 1.05em;
}

.inline-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  background: linear-gradient(135deg, #ff8c3c 0%, #ffab60 100%);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-weight: 800;
  font-size: 1.05em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(255, 140, 60, 0.25);
}

.inline-cta-button:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 32px rgba(255, 140, 60, 0.35);
  color: #fff;
  text-decoration: none;
}

/* ========== POST TAXONOMY ========== */
.post-taxonomy {
  padding: 30px;
  background: #f9fbfc;
  border-radius: 18px;
  margin: 40px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.taxonomy-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.taxonomy-label {
  font-weight: 700;
  color: var(--text);
  font-size: 0.95em;
  white-space: nowrap;
  padding-top: 4px;
}

.taxonomy-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.taxonomy-items a {
  padding: 6px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.85em;
  font-weight: 600;
  transition: all 0.3s ease;
}

.taxonomy-items a:hover {
  background: var(--cta);
  color: #fff;
  border-color: var(--cta);
  transform: translateY(-2px);
}

/* ========== AUTHOR BOX ========== */
.author-box {
  display: flex;
  gap: 20px;
  padding: 35px;
  background: linear-gradient(135deg, #fff8f0 0%, #ffe8cc 100%);
  border: 2px solid #ffd699;
  border-radius: 20px;
  margin: 40px 0;
  align-items: center;
}

.author-avatar {
  flex: 0 0 80px;
}

.author-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--cta);
  box-shadow: 0 4px 12px rgba(255, 106, 0, 0.2);
}

.author-info h4 {
  font-size: 1.2em;
  color: var(--text);
  margin: 0 0 10px 0;
  font-weight: 700;
}

.author-info p {
  color: #666;
  margin: 0;
  font-size: 0.95em;
  line-height: 1.6;
}

/* ========== BOTTOM CTA BOX ========== */
.bottom-cta-box {
  background: linear-gradient(135deg, #ffe8cc 0%, #fff5e6 100%);
  border-radius: 24px;
  padding: 50px;
  text-align: center;
  margin: 50px 0 40px;
  box-shadow: 0 8px 24px rgba(255, 140, 60, 0.15);
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255, 171, 140, 0.3);
}

.bottom-cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

.bottom-cta-box h3 {
  color: #0b1b2b;
  font-size: 2em;
  margin: 0 0 15px 0;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.bottom-cta-box p {
  color: #4a4a4a;
  margin: 0 0 30px 0;
  font-size: 1.1em;
  position: relative;
  z-index: 1;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.cta-button {
  padding: 16px 32px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 1.05em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cta-button.primary {
  background: #ff6a00;
  color: #fff;
  border: 2px solid #ff6a00;
  box-shadow: 0 6px 18px rgba(255, 106, 0, 0.25);
}

.cta-button.primary:hover {
  background: #e35a00;
  color: #fff;
  border-color: #e35a00;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 25px rgba(255, 106, 0, 0.35);
}

.cta-button.secondary {
  background: transparent;
  color: #0b1b2b;
  border: 2px solid #0b1b2b;
}

.cta-button.secondary:hover {
  background: #0b1b2b;
  color: #fff;
  border-color: #0b1b2b;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 25px rgba(11, 27, 43, 0.3);
}

/* ========== RELATED POSTS ========== */
.related-posts {
  margin-top: 50px;
}

.related-posts h3 {
  font-size: 1.8em;
  color: var(--text);
  margin: 0 0 30px 0;
  font-weight: 800;
  text-align: center;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
}

.related-post-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 106, 0, 0.1);
  transition: all 0.3s ease;
}

.related-post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(255, 106, 0, 0.12);
  border-color: rgba(255, 106, 0, 0.2);
}

.related-post-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.related-thumb {
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.related-post-card:hover .related-thumb img {
  transform: scale(1.1);
}

.related-content {
  padding: 20px;
}

.related-content h4 {
  font-size: 1.1em;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.related-date {
  font-size: 0.85em;
  color: var(--muted);
  font-weight: 600;
}

/* ========== NO POSTS MESSAGE ========== */
.no-posts-message {
  text-align: center;
  padding: 100px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 106, 0, 0.1);
}

.no-posts-message h2 {
  font-size: 2em;
  color: var(--text);
  margin: 0 0 15px 0;
  font-weight: 800;
}

.no-posts-message p {
  font-size: 1.1em;
  color: var(--muted);
  margin: 0;
}

/* ========== RESPONSIVE (BREAKPOINT AT 1280px for proper support) ========== */
@media (max-width: 1280px) {
  .tech-blog {
    flex-direction: column;
    gap: 50px;
    max-width: 980px;
  }

  .content {
    max-width: 100%;
    width: 100%;
  }

  .sidebar {
    max-width: 100%;
    width: 100%;
    flex: 1 1 auto;
    position: static;
    margin-top: 0;
  }

  .blog-hero {
    padding: 100px 20px 50px;
  }

  .blog-hero h1 {
    font-size: 2.8em;
  }

  .single-post-content {
    padding: 35px 25px;
  }

  .post-featured-image {
    margin: 0 0 30px 0;
    border-radius: 24px;
  }
}

@media (max-width: 1000px) {
  .blog-hero h1 {
    font-size: 2.5em;
  }

  .post-list-link {
    flex-direction: column;
  }

  .post-list-thumb {
    flex: 1 1 auto;
    width: 100%;
    height: 200px;
  }

  .author-box {
    flex-direction: column;
    text-align: center;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-button {
    width: 100%;
  }
  
  .lightbox-close {
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  .blog-hero h1 {
    font-size: 2em;
  }

  .blog-hero p {
    font-size: 1.1em;
  }

  .featured-thumb {
    height: 250px;
  }

  .featured-content {
    padding: 30px 25px;
  }

  .featured-content h2 {
    font-size: 1.6em;
  }

  .single-hero {
    padding: 80px 20px 40px;
  }

  .single-hero-meta {
    flex-direction: column;
    gap: 10px;
  }

  .meta-item {
    width: 100%;
    justify-content: center;
  }

  .single-post-content {
    padding: 25px 20px;
  }

  .post-content {
    font-size: 1em;
  }

  .inline-cta-box,
  .bottom-cta-box {
    padding: 30px 20px;
  }

  .related-posts-grid {
    grid-template-columns: 1fr;
  }

  .post-taxonomy {
    padding: 20px;
  }

  .taxonomy-group {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .blog-hero {
    padding: 80px 15px 40px;
  }

  .blog-hero h1 {
    font-size: 1.6em;
  }

  .featured-content h2 {
    font-size: 1.3em;
  }

  .sidebar-box,
  .sidebar-cta-box {
    padding: 25px 20px;
  }

  .bottom-cta-box h3 {
    font-size: 1.5em;
  }
  
  .lightbox-close {
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    font-size: 25px;
  }
  
  .lightbox-zoom-hint {
    font-size: 0.8em;
    padding: 8px 16px;
  }
}

/* ========== SMOOTH ANIMATIONS ========== */
@media (prefers-reduced-motion: no-preference) {
  * {
    scroll-behavior: smooth;
  }
}

/* ========== PRINT STYLES ========== */
@media print {
  .sidebar,
  .inline-cta-box,
  .bottom-cta-box,
  .sidebar-cta-box,
  .related-posts,
  .pagination,
  .image-lightbox {
    display: none !important;
  }

  .single-post-content {
    box-shadow: none;
    border: none;
  }

  .post-content {
    font-size: 12pt;
    line-height: 1.6;
  }
  
  .post-content img {
    cursor: default;
  }
}
