/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #fff;
  color: #333;
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 10px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

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

/* Header Section */
.header {
  background-color: #46166C;
  padding: 30px 0;
  text-align: left;
  margin-bottom: 60px;
}

.header h1 {
  font-size: 2.3rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 10px;
  text-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.subtitle {
  color: rgba(255, 255, 255, 0.9);
  margin: 0 auto;
  font-weight: 400;
}

/* Main Content Layout */
.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: center;
}

/* Blog List Page */
.blog-list-container {
  padding: 40px 0;
  width: 100%;
  max-width: 1320px;
}

.blog-posts {
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px 40px;
  justify-content: center;
  width: 100%;
}

.blog-post-item {
  display: flex;
  gap: 25px;
  margin-bottom: 0;
  padding: 25px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  align-items: flex-start;
}

.blog-post-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.post-image {
  flex: 0 0 280px;
}

.post-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.blog-post-item:hover .post-image img {
  transform: scale(1.05);
}

.post-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 0;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
  font-size: 0.8rem;
  flex-wrap: nowrap;
}

.post-category {
  background: #46166C;
  color: #fff;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: none;
  white-space: nowrap;
}

.post-date {
  color: #888;
  font-weight: 500;
  white-space: nowrap;
}

.read-time {
  color: #888;
  font-weight: 500;
  white-space: nowrap;
}

.post-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.post-title a {
  color: #333;
  transition: color 0.3s ease;
}

.post-title a:hover {
  color: #46166C;
  text-shadow: none;
}

.post-excerpt {
  color: #666;
  line-height: 1.5;
  margin-bottom: 15px;
  font-size: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.post-author span {
  color: #888;
  font-size: 0.8rem;
  font-weight: 500;
}

.read-more {
  background: #E8A317;
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 18px;
  border: none;
  border-radius: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 3px 12px rgba(232, 163, 23, 0.3);
  text-decoration: none;
  display: inline-block;
}

.read-more:hover {
  background: #d4920f;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(232, 163, 23, 0.4);
}

/* Single Post Page */
.single-post-container {
  background: #fff;
  padding: 40px 0;
}

.single-post-container .main-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px;
  display: block;
}

.single-post-container .blog-posts {
  display: block;
  grid-template-columns: none;
  gap: 0;
  justify-content: initial;
  width: 100%;
}

.single-post {
  max-width: 100%;
  margin: 0 auto;
}

.post-header {
  margin-bottom: 30px;
}

.single-post-title {
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 15px;
  text-align: center;
}

.single-post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.single-post .post-image {
  margin: 30px 0;
  flex: none;
}

.single-post .post-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
}

.single-post .post-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
}

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


/* Social Icons (from the design) */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px;
}

.social-icons a {
  font-size: 1.2rem;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Comments Section */
.comments-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.comments-section h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.comment {
  display: flex;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(184, 184, 184, 0.375);
  background: transparent;
  border-left: none;
  border-radius: 0;
  margin-bottom: 20px;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.comment-author {
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 0.95rem;
}

.comment-text {
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.comment-date {
  font-size: 0.85rem;
}

/* Add Comment Form */
.add-comment {
  display: flex;
  align-items: flex-end;
  gap: 15px;
  margin-bottom: 30px;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #aeaeae;
  /* border-top: 2px solid #aeaeae; */
}

.add-comment textarea {
  flex: 1;
  padding: 15px auto;
  border: none;
  border-radius: 8px;
  background: none;
  font-family: inherit;
  font-size: 0.95rem;
  resize: none;
  min-height: 10px;
  outline: none;
}

.add-comment button {
  font-family: inherit;
  color: #2a004e;
  border: none;
  padding: 15px 25px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.add-comment button:hover {
  transform: translateY(-2px);
}


/* Related Posts Section */
.related-posts {
  margin-top: 50px;
  padding-top: 30px;
}

.related-posts h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #46166C;
  margin-bottom: 30px;
}

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

.related-card p{
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 0.85rem;
  font-weight: 400;
}


/* ===== RESPONSIVE ===== */

/* Mobile Phones (up to 768px) */
@media screen and (max-width: 768px) {
  .header {
    padding: 40px 20px;
    margin-bottom: 40px;
  }
  
  .header h1 {
    font-size: 2rem;
  }
  
  .main-content {
    padding: 0 20px;
  }
  
  .single-post-container .main-content {
    padding: 0 20px;
  }
  
  .blog-list-container {
    max-width: 100%;
  }
  
  .blog-posts {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .blog-post-item {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }
  
  .post-image {
    flex: none;
  }
  
  .post-image img {
    height: 180px;
  }
  
  .single-post .post-image img {
    height: 250px;
  }
  
  .post-title {
    font-size: 1.3rem;
  }
  
  .single-post-title {
    font-size: 1.8rem;
  }
  
  .post-excerpt {
    font-size: 0.9rem;
    -webkit-line-clamp: 4;
  }
}

/* Tablets (769px to 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .main-content {
    padding: 0 30px;
  }
  
  .single-post-container .main-content {
    padding: 0 30px;
    max-width: 700px;
  }
  
  .blog-list-container {
    max-width: 100%;
  }
  
  .blog-posts {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .blog-post-item {
    padding: 25px;
    gap: 25px;
  }
  
  .post-image {
    flex: 0 0 250px;
  }
  
  .post-image img {
    height: 180px;
  }
  
  .single-post .post-image img {
    height: 350px;
  }
  
  .post-title {
    font-size: 1.2rem;
  }
  
  .single-post-title {
    font-size: 2rem;
  }
  
  .post-excerpt {
    font-size: 0.85rem;
  }
}