img.attachment-300x200.size-300x200.wp-post-image {
    width: 100%;
    height: auto;
}
a {
    color: #484949;
}
section.jumbotron.jumbotron-white.athe {
    background: url(../../images/auth-bluecrest-banner.jpg);
    color: #fff;
}
/* Blog card design */
.card {
    border: 1px solid rgba(119,124,144,.1);
    border-radius: 10px;
    min-height: 435px;
    overflow: hidden;
    position: relative;
}
h5.card-title {
    color: #27649d;
    line-height: 1.2;
    font-weight: 700;
    text-transform: none;
    font-size: 20px;
    margin-top: 0; /* Add this to ensure the title doesn't move when the image scales */
}
.card-img-section {
    height: 200px; /* Adjust height according to your design */
    overflow: hidden;
}

.card-img-top {
   transition: transform 0.3s ease;
    display: block;
    width: 100%;
    height: 233px;
    max-width: 100%;
    aspect-ratio: 16/9;
    height: auto;
    object-fit: cover;
}

.card-body {
    padding: 20px;
}

.card:hover .card-img-top {
    transform: scale(1.1);
}

.card-link {
    text-decoration: none;
    color: inherit;
}

/*POPUP FOR WEBINAR*/
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000; /* INCREASED from 1000 to 10000 */
}

.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-sizing: border-box;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001; /* Ensure close button is clickable */
}

.close-button:hover {
    color: #000;
    background: rgba(255, 255, 255, 1);
}
.popup-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 60vh;
    border-radius: 5px;
    transition: opacity 0.3s ease;
}

.popup-image:hover {
    opacity: 0.9;
}

.popup-buttons {
    margin-top: 20px;
    text-align: center;
}

.popup-button {
    padding: 12px 24px;
    cursor: pointer;
    background-color: #27649d;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.popup-button:hover {
    background-color: #1e4f7a;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.close-button:hover {
    color: #000;
}
ul.mob-hide.pl-2 {
    padding-left: 21px;
}
@media (max-width: 767px) {
   .mob-hide{
       display:none;
   } 
}
/*END WEBINAR DG*/
/* End blog card design */
@media screen and (max-width: 768px)
.carousel .cr-item-container a.btn {
    margin-left: 35px!important;
    padding: 8px;
    min-width: 150px;
    font-size: 9px!important;
}}

.social-widget-placeholder {
    min-height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.social-widget-placeholder p {
    margin-bottom: 15px;
    color: #6c757d;
}

.social-widget-placeholder button {
    font-size: 14px;
    padding: 8px 16px;
}

/* Optimize image loading */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent layout shift */
.card-img-top {
    aspect-ratio: 16/9;
    object-fit: cover;
}