@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

body {
    background: #F8F8F8;
    font-family: 'poppins', sans-serif;
}

a {
    text-decoration: none;
    color: black;
}




.heading {
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
}

.s-heading {
    position: relative;
    background-color: #f1f1f1;
    padding: 15px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    overflow: hidden;
    font-weight: bold;
}

.s-heading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 100%;
    background-color: black;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: top;
}

.s-heading:hover::before,
.courses-thumb:hover::before {
    transform: scaleY(1);
}


.x900 {
    font-size: 51px;
    font-weight: 700;
    line-height: 62px;
}

.columns .title {
    background-color: #eeeeee;
    color: black;
    padding: 1rem;
    text-align: left;
    width: 100%;
    display: block;
    transition: 0.2s;
    border-left: 0px solid var(--dark);
    border-radius: 8px;
}

.columns section {
    padding: 1rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.columns .recent-posts a {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 10px;
}

.columns .recent-posts a:hover{
    color: black !important;
}

.posts .rpImg {
    width: 80px;
    height: 40px;
    border-radius: 5px;
    margin-right: 10px;
}
img, .img-responsive {
    max-width: 100%;
    height: auto;
}

/* Responsive Layout */
.container, .blog-container, .columns section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
.posts p{
    font-size:14px;
}

.categories a {
    display: flex;
    padding: 0.2rem 1rem;
    border-radius: 40px;
    background-color: #eeeeee;
    margin: 5px 3px;
    font-size: 12px;
    line-height: 18px;
    white-space: nowrap;
    width: max-content;
}

.categories a:hover {
    background-color: #000000;
    color: white;
    transition: 0.5s;
}

.courses-thumb {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.courses-thumb .courses-image {
    position: relative;
    height: 200px; /* Fixed height for image */
    overflow: hidden;
}

.courses-thumb .courses-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures no stretching */
    display: block;
}

.courses-thumb .courses-detail {
    padding: 10px 15px;
    flex-grow: 1;
}

.courses-thumb .courses-detail h3 {
    font-size: 18px;
    margin: 10px 0;
    font-weight: bold;
}

.courses-thumb .courses-info {
    padding: 0 15px 15px;
}

.courses-thumb .section-btn {
    background-color: #000;
    color: #fff;
    padding: 10px 0;
    text-align: center;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.courses-thumb .section-btn:hover {
    background-color: #333;
}

/* Optional overlay (can remove if not needed) */
.courses-thumb .courses-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    font-weight: bold;
    z-index: 10;
    text-shadow: 1px 1px 3px #000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.courses-thumb .courses-image:hover .courses-image-overlay {
    opacity: 1;
}


.img-responsive {
    width: 100%;
    height: 180px;
    border-radius: 5px;
}

.courses-detail {
    background: white;
    color: #212529;
    padding: 15px 25px;
}

.card-padding {
    padding: 0 50px;
}

.courses-info {
    border-top: 1px solid rgb(240, 234, 234);
    display: flex;
    justify-content: center;
    padding: 25px 25px 15px 25px;
    background: white;
}

.courses-info .section-btn {
    background: black;
    color: white;
    padding: 6px 12px;
    width: 100%;
}

.courses-info .section-btn:hover {
    background: white;
    color: #000;
    transition: .5s ease;
    border: 1px solid #000000;
}

.columns section {
    padding: 10px 0px;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.columns section > * {
    flex: 1 1 calc(33.333% - 1rem); /* 3 items per row */
    display: flex;
    flex-direction: column;
}



@media (max-width: 992px) {
    .columns section > * {
        flex: 1 1 calc(50% - 1rem); /* 2 columns on tablets */
    }
}

@media (max-width: 600px) {
    .columns section > * {
        flex: 1 1 100%; /* Stack on small screens */
    }
}

.w-100 {
    width: 100%;
    height: 45vh;
}