/* ✅ Main post container - wider layout */
.single-post {
  padding: 60px 20px;
  max-width: 1200px; /* Increased from 900px */
  margin: 0 auto;
}

.single-post .container {
  max-width: 1400px; /* Content width */
  margin: 0 auto;
}

/* ✅ Post title styling */
.post-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #333;
  text-align: center;
}

/* ✅ Post meta (date and categories) */
.post-meta {
  color: #666;
  font-size: 16px;
  margin-bottom: 40px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.post-separator {
  color: #ccc;
  font-weight: bold;
}

.post-date {
  font-weight: 500;
}

.post-meta a {
  color: #0073aa;
  text-decoration: none;
  font-weight: 500;
}

.post-meta a:hover {
  text-decoration: underline;
}

/* ✅ Featured image with 16:9 aspect ratio */
.post-featured {
  margin-bottom: 40px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.post-featured-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio (9/16 = 0.5625) */
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Remove background/styling when gallery is inside */
.post-featured-container--gallery {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  height: auto;
  padding-bottom: 0;
  overflow: visible;
}

.post-featured-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

/* ✅ Post content styling */
.post-content {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 40px;
  color: #444;
}

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

.post-content h2,
.post-content h3,
.post-content h4 {
  margin-top: 30px;
  margin-bottom: 15px;
  color: #333;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
}

/* ✅ Tags styling */
.post-tags {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #eee;
  text-align: center;
}

.post-tags strong {
  color: #333;
  margin-right: 15px;
  font-size: 16px;
}

.post-tags .tag {
  background: #f8f9fa;
  color: #495057;
  padding: 8px 16px;
  border-radius: 25px;
  margin: 5px 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
  display: inline-block;
}

.post-tags .tag:hover {
  background: #0073aa;
  color: #fff;
  border-color: #0073aa;
  transform: translateY(-2px);
}

/* ✅ Back button styling */
.post-back {
  margin-top: 50px;
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid #eee;
}

.btn-back {
  display: inline-block;
  padding: 12px 30px;
  background: #0073aa;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 115, 170, 0.2);
}

.btn-back:hover {
  background: #005f87;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 115, 170, 0.3);
}

/* ========================
   Responsive Design
   ======================== */

/* Tablet Styles (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .single-post {
    padding: 50px 20px;
  }
  
  .single-post .container {
    max-width: 100%;
  }
  
  .post-title {
    font-size: 36px;
    margin-bottom: 18px;
  }
  
  .post-meta {
    font-size: 15px;
    margin-bottom: 35px;
  }
  
  .post-content {
    font-size: 17px;
    line-height: 1.75;
  }
  
  .post-content h2,
  .post-content h3,
  .post-content h4 {
    margin-top: 25px;
    margin-bottom: 12px;
  }
  
  .post-tags {
    margin-top: 35px;
    padding-top: 25px;
  }
  
  .post-tags .tag {
    padding: 7px 14px;
    font-size: 13px;
    margin: 4px 6px;
  }
  
  .btn-back {
    padding: 10px 25px;
    font-size: 15px;
  }
}

/* Mobile Styles (max-width: 767px) */
@media (max-width: 767px) {
  .single-post {
    padding: 30px 15px;
  }
  
  .single-post .container {
    max-width: 100%;
  }
  
  .post-title {
    font-size: 28px;
    margin-bottom: 15px;
    line-height: 1.3;
  }
  
  .post-meta {
    font-size: 14px;
    margin-bottom: 25px;
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }
  
  .post-separator {
    display: none;
  }
  
  .post-featured {
    margin-bottom: 25px;
  }
  
  .post-content {
    font-size: 15px;
    line-height: 1.6;
  }
  
  .post-content p {
    margin-bottom: 15px;
  }
  
  .post-content h2,
  .post-content h3,
  .post-content h4 {
    margin-top: 25px;
    margin-bottom: 12px;
    font-size: 1.3em;
  }
  
  .post-content img {
    margin: 15px 0;
    border-radius: 6px;
  }
  
  .post-tags {
    margin-top: 30px;
    padding-top: 20px;
  }
  
  .post-tags strong {
    font-size: 15px;
    margin-right: 10px;
  }
  
  .post-tags .tag {
    padding: 6px 12px;
    font-size: 12px;
    margin: 3px 5px;
  }
  
  .post-back {
    margin-top: 40px;
    padding-top: 30px;
  }
  
  .btn-back {
    padding: 10px 20px;
    font-size: 14px;
  }
}
