
:root {
  --rp-primary-color: #5F2DED;
  --rp-secondary-color: #F2277E;
  --rp-text-color: #212529;
  --rp-bg-color: #ffffff;
}

.news-hero{
  padding: 80px 0;
}

.rp-blog-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
}

.rp-blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 45px rgba(95, 45, 237, 0.25);
}

/* Image Section */
.rp-blog-img {
  height: auto;
  overflow: hidden;
}

.rp-blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.rp-blog-card:hover .rp-blog-img img {
  transform: scale(1.08);
}

/* Body */
.rp-blog-body {
  padding: 22px;
  flex: 1;
}

/* Title */
.rp-blog-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: #111;
  margin-bottom: 14px;
}
.rp-blog-titl a{
  color: var(--rp-primary-color) !important;
}
/* Meta Info */
.rp-blog-meta {
  font-size: 14px;
  color: #666;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

/* Read More Link */
.rp-blog-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--rp-primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.rp-blog-link:hover {
  color: var(--rp-secondary-color);
  padding-left: 6px;
}

.rp-blog-overlay-link{
  text-decoration: none;
}


/* ===========================
   BLOG DETAILS LAYOUT
=========================== */

.blog-details {
    background: #ffffff;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* Blog Title */
.blog-details h1 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    color: var(--rp-primary-color);
}

/* Published info */
.blog-published {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

/* ===========================
   BLOG IMAGE + HOVER FLASH
=========================== */

.blog-image {
    width: 100%;
    min-height: auto;
    max-height: 420px;
  
   
    transition: transform 0.5s ease;
}

/* Flash overlay */
.blog-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255,255,255,0.0),
        rgba(255,255,255,0.6),
        rgba(255,255,255,0.0)
    );
    transform: skewX(-25deg);
}

/* Hover flash animation */
.blog-image:hover::after {
    animation: flashEffect 0.9s ease;
}

.blog-image:hover {
    transform: scale(1.02);
}

@keyframes flashEffect {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

/* ===========================
   BLOG CONTENT TEXT
=========================== */

.blog-content {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.blog-content p {
    margin-bottom: 15px;
}

.blog-content h2,
.blog-content h3,
.blog-content h4 {
    margin-top: 25px;
    margin-bottom: 10px;
    font-weight: 600;
}

/* ===========================
   SIDEBAR
=========================== */

.sticky-blog-sidebar {
    position: sticky;
    top: 110px;
}

/* Sidebar box */
.widget-area {
    background: #ffffff;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* Widget title */
.widget-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    border-left: 4px solid #5F2DED;
    padding-left: 12px;
}

/* ===========================
   RECENT POSTS
=========================== */

.show-featured {
    display: flex;
    gap: 12px;
}

.post-img {
    width: 90px;
    height: 70px;
    overflow: hidden;
    border-radius: 8px;
}

.post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.show-featured:hover .post-img img {
    transform: scale(1.1);
}

.post-desc a {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
}

.post-desc a:hover {
    color: #5F2DED;
}

.post-desc .date {
    font-size: 13px;
    color: #777;
}

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

@media (max-width: 991px) {
    .sticky-blog-sidebar {
        position: static;
        margin-top: 40px;
    }

    .blog-details h1 {
        font-size: 26px;
    }
}



/* ===========================
   SIDEBAR CONTAINER
=========================== */

.widget-area {
    background: #ffffff;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
}

/* Sticky sidebar */
.sticky-blog-sidebar {
    position: sticky;
    top: 110px;
}

/* ===========================
   WIDGET TITLE
=========================== */

.widget-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 22px;
    padding-left: 14px;
    border-left: 5px solid var(--rp-primary-color);
    color: #111;
}

/* ===========================
   RECENT POSTS LIST
=========================== */

.recent-posts-widget {
    margin-top: 25px;
}

/* Individual Post */
.show-featured {
    display: flex;
    gap: 14px;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.35s ease;
    background: #fafafa;
}

.show-featured:not(:last-child) {
    margin-bottom: 14px;
}

/* Hover effect */
.show-featured:hover {
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

/* ===========================
   POST IMAGE
=========================== */

.post-img {
    width: 90px;
    height: 75px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.show-featured:hover .post-img img {
    transform: scale(1.12);
}

/* ===========================
   POST TEXT
=========================== */

.post-desc {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-desc a {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: #111;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-desc a:hover {
    color: var(--rp-primary-color);
}

.post-desc .date {
    font-size: 13px;
    color: #777;
    margin-top: 4px;
}

/* ===========================
   MOBILE FIX
=========================== */

@media (max-width: 991px) {
    .sticky-blog-sidebar {
        position: static;
        margin-top: 40px;
    }
}



.no-news-box {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.no-news-box h3 {
  font-size: 28px;
  font-weight: 600;
  color: #555;
}



@media screen and (max-width:576px){
    .rp-btn{
        display: none;
    }
}
