.single-post-page {
  max-width: 1200px;
  margin: auto;
  padding: 30px;
  font-family: Arial, sans-serif;
}
.single-post .post-content-left a {
    color: #AE2843;
}
.single-post .post-meta-top a {
    color: #AE2843;
}
/* Top meta */
.post-meta-top {
display: flex;
    justify-content: center;
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
    gap: 20px;
}

/* Title & Short Description */
.post-title {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 15px;
  text-align: center;
}

.post-short-description {
  font-size: 18px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 20px;
      padding: 10px 20px;
      text-align: center;
}
.post-short-description p {
    padding: 10px 20px;
}
/* Featured Image */
.post-featured-image img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 30px;
}

/* Content + Sidebar */
.post-content-wrapper {
  display: flex;
  gap: 30px;
}

.post-content-left {
  flex: 2;
  font-size: 18px;
  line-height: 1.8;
}
aside.post-sidebar .related-date {
    font-size: 12px;
    color: #555;
    float: right;
    text-align: start;
}
aside.post-sidebar .related-image img {
    max-width: 160px;
    width: auto;
    height: 125px !important;
}
aside.post-sidebar .right_aside {
    padding-bottom: 20px;
}
/* Sticky Sidebar */
.post-sidebar {
  flex: 1;
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

.sidebar-post {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.sidebar-post:hover {
  transform: translateY(-4px);
}

.sidebar-post a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.right_aside .related-title {
    color: #AE2843;
}
aside.post-sidebar h3 {
    font-size: 32px;
    font-weight: 700;
}
.sidebar-post-image img {
  width: 100%;
  object-fit: cover;
  height: 150px;
}

.sidebar-post-info {
  padding: 10px 12px;
}

.sidebar-post-category {
  font-size: 12px;
  color: #FF5722;
  margin-bottom: 5px;
}

.sidebar-post-title {
  font-size: 16px;
  font-weight: 600;
}

/* Read More Section */
.single-post-page .rx-meta {
    width: 100%;
    display: flex;
}


/* Make sure images scale */
.related-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.read-more-posts {
  margin-top: 50px;
}

.read-more-wrapper {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.read-more-card {
  flex: 1 1 calc(25% - 20px);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.read-more-card:hover {
  transform: translateY(-4px);
}

.read-more-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.read-more-title {
  padding: 10px;
  font-weight: 600;
  font-size: 16px;
  color: #333;
}
.related-posts {
  margin-top: 50px;
}

.related-wrapper {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.related-card {
  flex: 1 1 calc(33.33% - 20px); /* 3 per row */
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}



.related-card a {
  text-decoration: none;
  color: inherit;
  display: flex;

  
}

.related-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.related-content {
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.related-category {
  font-size: 12px;
  color: #b22222; /* category color */
  margin-bottom: 3px;
  width: 50%;
}

.related-date {
  font-size: 12px;
  color: #555;
  margin-bottom: 10px;
  width: 50%;
    float: right;
    text-align: end;
}

.related-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.related-excerpt {
  font-size: 14px;
  color: #555;
  margin-bottom: 12px;
  line-height: 1.5;
}

.related-button span {
  background-color: #b22222; /* button color */
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
  display: inline-block;
  transition: background 0.2s;
}

.related-button span:hover {
  background-color: #8a1616;
}

.related-image img.attachment-large.size-large:hover {
    transform: scale(1.05);
}

.related-image img.attachment-large.size-large {
    border-radius: 25px 25px 0 0;
    transition: transform 0.5s;
}
aside.post-sidebar .related-image img {
    border-radius: 15px 0px 0px 15px;
    transition: transform 0.5s;
}

aside.post-sidebar .related-image img:hover {
    transform: scale(1.05);
}
.featured_post {
        display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    gap: 10px;
    padding-left: 10px;
}
.related-posts h3 {
    text-align: center;
    font-size: 40px;
    padding-bottom: 30px;
    font-weight:700;
}
.post-content-left h2 {
    font-size: 30px;
    font-weight: 700;
}
.post-content-left h3 {
    font-size: 28px;
    font-weight: 700;
}
.post-content-left h4 {
    font-size: 24px;
    font-weight: 700;
}
.post-sidebar {
  margin-top: 40px;
}

.sidebar-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #111;
}

/* Card */
.rx-featured-card {
  margin-bottom: 24px;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.rx-featured-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.14);
}

.rx-featured-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Image */
.rx-featured-image img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

/* Content */
.rx-featured-content {
  padding: 16px 18px 20px;
}

.rx-featured-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  margin-bottom: 8px;
}

.rx-featured-cat {
  color: #ff5a5f;
  font-weight: 600;
  text-transform: uppercase;
}

.rx-featured-date {
  color: #888;
}

.rx-featured-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: #111;
}

/*Newsletter Css*/

/* ReadX Style Newsletter Box */
.rx-newsletter {
  background: #8d288a;
  padding: 25px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  margin-bottom: 35px;
  text-align: center;
}

.rx-newsletter h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

.rx-newsletter p {
  font-size: 14px;
  color: #fff;
  margin-bottom: 18px;
  line-height: 1.5;
}

/* Input styling */
.rx-newsletter input[type="email"],
.rx-newsletter input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 12px;
}

/* Button styling */
.rx-newsletter input[type="submit"],
.rx-newsletter button {
  width: 100%;
  padding: 12px;
 background: #b1334c;
  font-family: 'Fira Sans';
    font-weight: 700;
    font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s ease;
}

/* Remove plugin extra spacing */
.rx-newsletter form {
  margin: 0;
}
.tnp.tnp-subscription .tnp-field.tnp-field-email label {
    display: none;
}

/*Ipad*/
@media (max-width: 1200px) {
    .post-content-left {
    flex: 2;
    font-size: 18px;
    line-height: 1.8;
    width: 60%;
}
 aside.post-sidebar .related-image img {
    max-width: 160px;
    width: auto;
    height: 140px !important;
}   
}
/* Mobile */
@media (max-width: 768px) {
    .post-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 0px;
    text-align: center;
    line-height: 40px;
}
    
    .post-content-wrapper {
    display: flex;
    gap: 30px;
    flex-direction: column;
}
    .post-content-left {
        flex: 2;
        font-size: 18px;
        line-height: 1.8;
        width: 100%;
        margin-top: -40px;
    }
    .post-content-left h2 {
    font-size: 28px;
    font-weight: 700;
    line-height: 35px;
}
    .post-sidebar {
    margin-top: 0px;
    width: 100%;
}

  .rx-featured-image img {
    height: 170px;
  }

  .rx-featured-title {
    font-size: 15px;
  }
  .related-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
    transition: transform 0.2s;
    width: 48%;
    flex: unset;
}
aside.post-sidebar .right_aside .related-card {
    width: 100%;
}
}
@media (max-width: 767px) {
    
    .single-post-page {
    max-width: 1200px;
    margin: auto;
    font-family: Arial, sans-serif;
    padding: 40px 10px;
}
    .post-short-description p {
    padding: 10px 0px;
    font-size: 16px;
}
    .post-content-left h2 {
        font-size: 24px;
        font-weight: 700;
        line-height: 35px;
    }
.post-content-left p {
    font-size: 16px;
}
    .related-card {
        background: #fff;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
        transition: transform 0.2s;
        width: 100%;
        flex: unset;
    }
    .related-posts {
    margin-top: 0px;
}
}

