/* ========================================
   🔐 SECRET MESSAGE CONVERTER BLOG - CSS
   Matches Index.html Theme
======================================== */

/* ========================================
   📦 BASE BLOG POST STYLES
======================================== */
.blog-post-container {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.blog-post {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 3rem 2.5rem;
  animation: fadeInUp 0.6s ease;
}

/* ========================================
   📋 POST META INFO
======================================== */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.category-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-date,
.read-time {
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ========================================
   📝 TYPOGRAPHY
======================================== */
.blog-post h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  line-height: 1.3;
  margin-bottom: 2rem;
  font-weight: 800;
}

.blog-post h2 {
  font-size: 2rem;
  color: var(--text-color);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--primary-color);
  font-weight: 700;
}

.blog-post h3 {
  font-size: 1.5rem;
  color: var(--text-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.blog-post h4 {
  font-size: 1.25rem;
  color: var(--text-color);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.blog-post p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.intro-text {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-color);
  line-height: 1.9;
}

/* ========================================
   🖼️ FEATURED IMAGE
======================================== */
.featured-image {
  width: 100%;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  margin: 2rem 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  box-shadow: var(--shadow-lg);
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.featured-image:hover img {
  transform: scale(1.05);
}

/* ========================================
   📋 TABLE OF CONTENTS
======================================== */
.table-of-contents {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border: 2px solid var(--border-color);
  border-left: 4px solid var(--primary-color);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.table-of-contents h3 {
  margin-top: 0;
  color: var(--text-color);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.table-of-contents ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.table-of-contents ul li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.table-of-contents ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.table-of-contents a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.table-of-contents a:hover {
  color: var(--primary-dark);
  padding-left: 0.5rem;
}

/* ========================================
   📄 POST SECTIONS
======================================== */
.post-section {
  margin: 3rem 0;
}

.blog-post ul,
.blog-post ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.blog-post ul li,
.blog-post ol li {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-color);
}

.blog-post ul li::marker {
  color: var(--primary-color);
}

.blog-post ol li::marker {
  color: var(--primary-color);
  font-weight: 700;
}

.blog-post li strong {
  color: var(--primary-color);
  font-weight: 700;
}

.blog-post a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.blog-post a:hover {
  color: var(--primary-dark);
  border-bottom-color: var(--primary-color);
}

.blog-post strong {
  color: var(--primary-color);
  font-weight: 700;
}

.blog-post code {
  background: #f1f5f9;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.95em;
  color: #dc2626;
}

/* ========================================
   💡 INFO BOX
======================================== */
.info-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 150, 105, 0.05) 100%);
  border: 2px solid #10b981;
  border-left: 4px solid #10b981;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.info-box p {
  margin: 0;
  color: var(--text-color);
}

/* ========================================
   🎴 CONCEPT CARDS
======================================== */
.concept-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.concept-card h3 {
  margin-top: 0;
  color: var(--text-color);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.concept-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.concept-item {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.concept-item:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.concept-item h4 {
  margin-top: 0;
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.concept-item p {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.example-text {
  background: var(--bg-color);
  padding: 0.5rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  margin: 0;
}

/* ========================================
   🔐 BASE64 CARDS
======================================== */
.base64-card {
  background: white;
  border: 2px solid var(--border-color);
  border-left: 4px solid var(--primary-color);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.base64-card h3 {
  margin-top: 0;
  color: var(--text-color);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.step-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.step-content {
  flex: 1;
}

.step-content h4 {
  margin-top: 0;
  color: var(--text-color);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.step-content p {
  margin-bottom: 0.5rem;
}

.code-example {
  background: var(--bg-color);
  padding: 0.5rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: var(--primary-color);
  margin: 0;
}

/* ========================================
   📊 COMPARISON CARD
======================================== */
.comparison-card {
  background: var(--bg-color);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.comparison-card h3 {
  margin-top: 0;
  color: var(--text-color);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.encoding-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.encoding-table thead {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
}

.encoding-table th,
.encoding-table td {
  padding: 1rem;
  text-align: left;
  border: 1px solid var(--border-color);
}

.encoding-table th {
  font-weight: 700;
  font-size: 0.95rem;
}

.encoding-table td {
  font-size: 0.95rem;
  color: var(--text-color);
}

.encoding-table tbody tr:hover {
  background: rgba(99, 102, 241, 0.05);
}

/* ========================================
   ⚡ TIP BOX
======================================== */
.tip-box {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 152, 0, 0.1) 100%);
  border: 2px solid #ffc107;
  border-left: 4px solid #ffc107;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.tip-box p {
  margin: 0;
  color: var(--text-color);
}

/* ========================================
   🛠️ TOOL CARDS
======================================== */
.tool-card {
  background: var(--bg-color);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  transition: all 0.3s ease;
}

.tool-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.tool-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.tool-header h3 {
  margin: 0;
  color: var(--text-color);
  font-size: 1.4rem;
}

.badge-free {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tool-features {
  margin: 1.5rem 0;
}

.tool-features ul {
  margin-left: 1.5rem;
}

.tool-features ul li {
  margin-bottom: 0.75rem;
}

.tool-specs {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
}

.tool-specs p {
  margin: 0.5rem 0;
  font-size: 1rem;
}

/* ========================================
   📖 TUTORIAL CARDS
======================================== */
.tutorial-card {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
  border: 2px solid #8b5cf6;
  border-left: 4px solid #8b5cf6;
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.tutorial-card h3 {
  margin-top: 0;
  color: #8b5cf6;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.tutorial-steps {
  counter-reset: step-counter;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tutorial-steps li {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 2rem;
}

.tutorial-steps li:before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.tutorial-steps li strong {
  display: block;
  color: var(--text-color);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.tutorial-steps li p {
  margin: 0.5rem 0;
}

.example-highlight {
  background: var(--bg-color);
  padding: 0.75rem;
  border-radius: 6px;
  border-left: 3px solid #8b5cf6;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  color: var(--primary-color);
}

/* ========================================
   ⚠️ WARNING CARD
======================================== */
.warning-card {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(220, 38, 38, 0.05) 100%);
  border: 2px solid #ef4444;
  border-left: 4px solid #ef4444;
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.warning-card h3 {
  margin-top: 0;
  color: #ef4444;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.warning-card ul {
  margin-left: 1.5rem;
  margin-bottom: 0;
}

/* ========================================
   🔄 COMPARISON GRID
======================================== */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.comparison-item {
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.comparison-item.encoding {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(37, 99, 235, 0.05) 100%);
  border-left: 4px solid #3b82f6;
}

.comparison-item.encryption {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 150, 105, 0.05) 100%);
  border-left: 4px solid #10b981;
}

.comparison-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.comparison-item h3 {
  margin-top: 0;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.comparison-item.encoding h3 {
  color: #3b82f6;
}

.comparison-item.encryption h3 {
  color: #10b981;
}

.comparison-details p {
  margin-bottom: 1rem;
}

.comparison-details ul {
  margin-left: 1.5rem;
  margin-bottom: 0;
}

/* ========================================
   💡 ANALOGY CARD
======================================== */
.analogy-card {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.05) 0%, rgba(219, 39, 119, 0.05) 100%);
  border: 2px solid var(--accent-color);
  border-left: 4px solid var(--accent-color);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.analogy-card h3 {
  margin-top: 0;
  color: var(--accent-color);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.analogy-card p {
  margin-bottom: 1rem;
}

.analogy-card p:last-child {
  margin-bottom: 0;
}

/* ========================================
   🚨 SECURITY WARNING
======================================== */
.security-warning {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
  border: 2px solid #ef4444;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: center;
}

.security-warning p {
  margin: 0;
  color: #dc2626;
  font-weight: 700;
  font-size: 1.05rem;
}

/* ========================================
   🎯 USE CASE GRID
======================================== */
.usecase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.usecase-card {
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.usecase-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.usecase-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.usecase-card h3 {
  margin-top: 0;
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.usecase-card p {
  margin-bottom: 1rem;
}

.usecase-example {
  background: var(--bg-color);
  padding: 0.75rem;
  border-radius: 6px;
  border-left: 3px solid var(--primary-color);
  font-size: 0.95rem;
  margin: 0;
}

/* ========================================
   🛡️ SECURITY GRID
======================================== */
.security-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.security-tip {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 150, 105, 0.05) 100%);
  border: 2px solid #10b981;
  border-left: 4px solid #10b981;
  border-radius: 12px;
  padding: 2rem;
}

.security-tip.danger {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(220, 38, 38, 0.05) 100%);
  border-color: #ef4444;
}

.security-tip h3 {
  margin-top: 0;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.security-tip ul {
  margin-left: 1.5rem;
  margin-bottom: 0;
}

.security-card {
  background: white;
  border: 2px solid var(--border-color);
  border-left: 4px solid var(--primary-color);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.security-card h3 {
  margin-top: 0;
  color: var(--text-color);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.security-card ul {
  margin-left: 1.5rem;
  margin-bottom: 0;
}

/* ========================================
   🚀 TECHNIQUE CARDS
======================================== */
.technique-card {
  background: var(--bg-color);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  transition: all 0.3s ease;
}

.technique-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow);
}

.technique-card h3 {
  margin-top: 0;
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.technique-example {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1rem 0;
}

.technique-example p {
  margin: 0.5rem 0;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
}

.technique-note {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 152, 0, 0.1) 100%);
  padding: 0.75rem;
  border-radius: 6px;
  border-left: 3px solid #ffc107;
  margin: 1rem 0 0 0;
  font-size: 0.95rem;
}

.technique-steps ol {
  margin-left: 1.5rem;
}

/* ========================================
   🎯 CONCLUSION HIGHLIGHTS
======================================== */
.conclusion-highlights {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border: 2px solid var(--primary-color);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.conclusion-highlights h3 {
  margin-top: 0;
  color: var(--text-color);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.conclusion-highlights ul {
  margin-left: 1.5rem;
  margin-bottom: 0;
}

.conclusion-highlights ul li {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

/* ========================================
   🎯 CTA BOX
======================================== */
.cta-box {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border: 2px solid var(--primary-color);
  border-radius: 12px;
  padding: 2rem;
  margin: 3rem 0;
  text-align: center;
}

.cta-box h3 {
  margin-top: 0;
  color: var(--text-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.cta-box p {
  margin-bottom: 1.5rem;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border-bottom: none !important;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: white;
}

/* ========================================
   📢 FINAL CTA
======================================== */
.final-cta {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 152, 0, 0.1) 100%);
  border: 2px solid #ffc107;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: center;
}

.final-cta p {
  margin: 0;
  font-size: 1.05rem;
}

/* ========================================
   ❓ FAQ SECTION
======================================== */
.faq-section {
  margin-top: 3rem;
  background: var(--bg-color);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 2.5rem;
}

.faq-section h2 {
  font-size: 2rem;
  color: var(--text-color);
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 700;
  border-bottom: none;
  padding-bottom: 0;
}

.faq-item {
  background: white;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: var(--shadow);
  transform: translateX(3px);
}

.faq-item h3 {
  margin-top: 0;
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.faq-item p {
  margin: 0;
  color: var(--text-color);
  line-height: 1.8;
}

/* ========================================
   📚 RELATED POSTS
======================================== */
.related-posts {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 3px solid var(--border-color);
}

.related-posts h3 {
  font-size: 1.8rem;
  color: var(--text-color);
  margin-bottom: 2rem;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.related-card {
  padding: 1.5rem;
  background: var(--bg-color);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.related-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.related-card h4 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.related-card p {
  color: var(--text-light);
  margin: 0;
  font-size: 0.95rem;
}

/* ========================================
   📱 RESPONSIVE - TABLETS (640px+)
======================================== */
@media (min-width: 640px) {
  .blog-post h1 {
    font-size: 3rem;
  }

  .blog-post h2 {
    font-size: 2.2rem;
  }

  .concept-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .comparison-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .security-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .usecase-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========================================
   💻 RESPONSIVE - DESKTOP (768px+)
======================================== */
@media (min-width: 768px) {
  .blog-post {
    padding: 4rem 3.5rem;
  }

  .blog-post h1 {
    font-size: 3.5rem;
  }

  .featured-image {
    height: 500px;
  }

  .concept-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .usecase-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========================================
   📱 RESPONSIVE - MOBILE (<640px)
======================================== */
@media (max-width: 640px) {
  .blog-post-container {
    margin: 2rem auto;
    padding: 0 1rem;
  }

  .blog-post {
    padding: 2rem 1.5rem;
  }

  .blog-post h1 {
    font-size: 2rem;
  }

  .blog-post h2 {
    font-size: 1.5rem;
  }

  .featured-image {
    height: 250px;
  }

  .post-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .step-item {
    flex-direction: column;
    gap: 1rem;
  }

  .step-number {
    position: static;
  }

  .encoding-table {
    font-size: 0.85rem;
  }

  .encoding-table th,
  .encoding-table td {
    padding: 0.5rem;
  }

  .faq-section {
    padding: 1.5rem;
  }

  .faq-item {
    padding: 1rem;
  }
}

/* ========================================
   ✨ ANIMATIONS
======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ========================================
   ♿ ACCESSIBILITY
======================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}