.blog-wrapper {
  padding: 100px 20px;
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
}

.blog-container {
  box-shadow: 0px 0px 30px 6px rgba(182, 201, 248, 0.91);
  border-radius: 10px;
}

h1,
h2,
h3 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  /* For better cross-browser support */
  background-clip: text;
  color: transparent;
}

.blog-container h1,
.blog-container h2,
.blog-container h3,
.blog-container h4,
.blog-container h5,
.blog-container h6 {
  text-align: start;
  margin: 20px 0;
}

h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem); /* ~28px to 40px */
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2rem); /* ~24px to 32px */
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem); /* ~20px to 28px */
}

h4 {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem); /* ~18px to 24px */
}

h5 {
  font-size: clamp(1rem, 2vw, 1.25rem); /* ~16px to 20px */
}

h6 {
  font-size: clamp(0.875rem, 1.5vw, 1rem); /* ~14px to 16px */
}

p {
  line-height: 1.6;
  font-size: clamp(1rem, 2vw, 1.125rem); /* ~16px to 18px */
}

.for-image {
  height: 400px;
  width: 100%;
  max-width: 100%;
}

.for-image img {
  border-radius: 10px 10px 0 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.blog-meta {
  display: flex;
  gap: 20px;
  justify-content: start;
}

.blog-meta > span {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.spacer hr {
  margin: 30px 0;
}

hr {
  margin: 20px 0;
}

.blog-content {
  padding: 50px 40px;
  border-radius: 0 0 10px 10px;
}

.blog-text {
  word-break: break-word;
}

.suggested-post p,
.suggested-post h3 {
  word-break: break-word;
  padding: 10px 20px;
}

.suggested-post p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  line-height: 1.5em;
  max-height: 5.2em; /* Adjust based on line-height */
}

.suggested-post {
  box-shadow: 0px 0px 30px 6px rgba(182, 201, 248, 0.91);
  border-radius: 10px;
}

.sugggest-blog {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px; /* Optional spacing between items */
}

.blog-content li {
  list-style: disc;
  margin-left: 1.5rem; /* optional: adds indentation like normal <ul> */
  margin-bottom: 1rem; /* space between list items */
}

.blog-content li p {
  margin: 0;
}

.blog-content a {
  font-weight: bold;
  font-size: 1.25rem;
  text-align: center;
  background: linear-gradient(90deg, #ffd700, #ffa500, #ff8c00, #ffa500, #ffd700);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: moveGradient 3s linear infinite alternate;
}

@keyframes moveGradient {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 100% center;
  }
}



@media (max-width: 991px) {
  .sugggest-blog {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .sugggest-blog {
    grid-template-columns: 1fr;
  }
  .blog-content {
    padding: 32px 16px;
  }

  .blog-wrapper {
    padding: 50px 20px;
  }
  .for-image {
    height: 200px;
  }
}

.img-container-suggest img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}

.suggested-post h3 {
  color: rgb(255, 5, 5);
}

.read-more {
  display: flex;
  gap: 10px;
  padding: 10px 20px 30px;

  justify-content: start;
  align-items: center;
}

.blog-text p {
  margin-bottom: 16px;
}

.blog-text h3 {
  margin-bottom: 28px;
}

.blog-text table {
  width: 100%;
  border-collapse: collapse;
  border-bottom: 2px solid #000;
  /* 2px black border at the bottom */
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: auto;
}

/* Table Head */
.blog-text table thead {
  background-color: #000;
  /* black background */
  color: #fff;
  /* white text */
  text-align: left;
}

.blog-text table thead th {
  padding: 12px 16px;
  font-weight: 600;
  font-size: 16px;
}

/* Table Body */
.blog-text table tbody tr:nth-child(odd) {
  background-color: #f9f9f9;
  /* light grey */
}

.blog-text table tbody tr:nth-child(even) {
  background-color: #ffffff;
  /* white */
}

.blog-text table tbody td {
  padding: 12px 16px;
  font-size: 15px;
  color: #333;
  border-bottom: 1px solid #ddd;
}

/* Optional hover effect */
.blog-text table tbody tr:hover {
  background-color: #e6e6ff;
  /* light violet tint on hover */
}

@media screen and (max-width: 767px) {
  .blog-text table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    /* Only scrolls horizontally */
  }
}
