  /* Card Base Styling */
  .blog-card {
    position: relative;
    color: white; /* Text color inside the card */
    border: 1px solid white; /* FULLY WHITE BORDER ADDED */
    overflow: hidden;
}
.blog-card-lg {
    min-height: 350px; /* Desktop height for large card */
}

.blog-card-sm {
    min-height: 170px; /* Desktop height for small cards */
}

/* Image Background with Dark Overlay */
.card-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: rgba(0, 0, 0, 0.4); 
    background-blend-mode: darken;
}


/* Content Positioning (Always at the bottom) */
.card-content {
    background: rgba(0, 0, 0, 0.8);
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    position: absolute;
    left: 0;
    bottom: 0;
    color: #fff;
    font-weight: 600;
    line-height: 1.2; /* Adjusted line-height for better fit */
}

.category, .date {
    display: block;
    font-size: 0.8rem; /* Slightly smaller text for better fit */
    opacity: 0.8;
    line-height: 1.5;
}

.card-title {
    font-weight: 700;
    margin-top: 0; /* Remove default margin top */
}

/* Slider Dot Styling */
.dot {
    height: 10px;
    width: 10px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: white;
}

/* Mobile Responsiveness for heights */
@media (max-width: 768px) {
    .blog-card-lg {
        min-height: 250px; 
    }
    .blog-card-sm {
        min-height: 120px; /* Reduced for mobile stacking */
    }
}
@media (min-width: 992px) {
.px-lg-5 {
    padding-right: 8rem !important;
    padding-left: 8rem !important;
}
}

.section{
padding:20px 0px !important;
}
/* Custom CSS for Recent Posts Section */

/* Use h-100 on the card class in HTML to make all cards the same height */
.post-card {
border-radius: 8px; /* Smooth rounded corners */
transition: transform 0.2s;
display: flex;
flex-direction: column;
}
.post-card .card-body {
display: flex;
flex-direction: column;
flex-grow: 1;
}

.post-card .full_story_bt {
margin-top: auto; /* pushes button to the bottom */
}

.image-wrapper {
  height: 180px; /* Adjust as needed */

overflow: hidden; /* Keeps zoomed image inside the wrapper */
border-radius: 8px; /* optional, for rounded corners */
}

.recent-card-img {

object-fit: cover; /* Maintains aspect ratio and fills the area */
padding: 10px; /* Optional spacing */
transition: transform 0.5s ease; /* Smooth zoom */
}

.recent-card-img:hover {
transform: scale(1.1); /* Zoom on hover */
}

.recent-card-title {
font-size: 1.1rem;
font-weight: 600;
line-height: 1.4;
color: #333;
}

.recent-meta {
margin-bottom: 5px;
}

.recent-snippet {
font-size: 0.9rem;
color: #666;
/* Limit the snippet text to a certain height/line count (optional) */
display: -webkit-box;
-webkit-line-clamp: 3; /* Show up to 3 lines */
-webkit-box-orient: vertical;
overflow: hidden;
}

.btn-primary {
/* Optional: Custom color for the Read Full Story button */
background-color: #3c70c2; 
border-color: #3c70c2;
font-size: 0.9rem;
}
.page_title{
position: relative;
padding-bottom: 5px;
display: flex
;
}
.page_title:after {
content: '';
position: absolute;
left: 0;
bottom: 0;
height: 3px;
width: 45px;
background: #95b2f5;
}
.page_title h2{
font-size: 22px;
color: #333;
line-height: 20px;
font-weight: 400;
margin-bottom: 5px;
}
.titlelink{
color: #03c;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
 -webkit-line-clamp: 2;
-webkit-box-orient: vertical;
font-size: 16px;
font-weight: 700;
line-height: 25px;
margin-bottom: 7px;
text-decoration: none;
}
.list_type{
font-size: 14px;
color: #ddd;
}
.list_type span:first-child {
padding-left: 0px;
color: #666;
font-weight: 500;
}
.list_type span{
padding: 0px 5px;
color: #999;
}

.full_story_bt{
display: inline-block;
color: #1d5bb7;
background: #fff;
border: solid 1px #3b71c1;
width: 145px;
font-size: 14px;
font-weight: 500;
border-radius: 5px;
transition: all 0.3s 
ease;
}

.full_story_bt:hover {
background-color: #164bab !important; 
border-color: #164bab !important;
color: white !important;
}


@media (max-width: 575.98px) {
.post-card {
flex-direction: row; 
}
.image-wrapper {
width: 40%; 
height: auto;
}
.card-body {
width: 60%;
padding-left: 10px;
}
.recent-card-img {
height: 100%; 
}
}
.blog-container {
opacity: 0;
visibility: hidden;
position: absolute; /* stack on top of each other */
top: 0;
left: 0;
width: 100%;
transition: opacity 1s ease-in-out, visibility 1s ease-in-out;

}

.blog-container.active {
opacity: 1;
visibility: visible;
position: relative; /* only active container takes space */
}

.custom-blog-section {
position: relative; /* for absolute containers inside */
}
.dot {
display: inline-block;
width: 10px;
height: 10px;
background: #fff;
opacity: 0.5;
border-radius: 50%;
transition: opacity 0.3s;
}
.dot.active {
opacity: 1;
}
.page_title a {
color: #03c;
margin-left: 10px;
font-size: 16px;
}
@media (max-width: 576px) {
/* For small screens */
.page_title  {
 margin-left: 10px;
}
}
@media screen and (max-width: 800px) {
.page_title {
    justify-content: space-between;
    padding: 0px 10px;
    align-items: center;
}
.page_title:after{
    left: 10px;

}

}
