/* Neosoft Dynamic Menu Card Container */
.neosoft-dynamic-menu-card {
    width: 393px;
    max-width: 100%;
    margin-left: auto;
    font-family: inherit;
}

/* Case Study Card CSS (Exact from casestudies.css) */
.case-card {
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    background: transparent;
}

.case-carousel-img {
    position: relative;
    overflow: hidden;
    height: 238px;
}

.case-carousel-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.case-card:hover .case-carousel-img img {
    transform: scale(1.05);
}

.case-studies-carousel-text {
    padding: 3.2rem 2.1rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(34, 34, 36, 0.29);
    height: 200px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
    transform: translateY(-148px);
}

.case-card:hover .case-studies-carousel-text {
    transform: translateY(-84%);
    height: 78%;
    background-color: rgba(0, 0, 0, 0.45);
    padding-top: 24px;
}

.case-studies-carousel-text .case-studies-desc {
    opacity: 0;
    visibility: hidden;
    font-size: 0.875rem;
    transition: all 0.4s ease;
    position: absolute;
    left: 20px;
    right: 24px;
    margin: 0;
    color: #fff;
}

.case-card:hover .case-studies-carousel-text .case-studies-desc {
    opacity: 1;
    visibility: visible;
}

.tag-date {
    display: flex;
    gap: 10px;
    color: #fff;
    margin-bottom: 20px;
}

.tag-badge {
    font-size: 14px;
    color: #fff;
}

.card-heading-flex {
    font-size: 1.8rem;
    line-height: 1.4;
    margin-bottom: 1.8rem;
    margin-top: 0;
    color: #fff;
}

/* Article Card CSS */
.artl-card {
    width: 380px;
    background: #2a2a2f;
    overflow: hidden;
    padding: 3rem;
}

.artl-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.artl-content {
    padding: 25px 0 0;
}

.artl-content .date {
    color: #9d9d9d;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    line-height: 1;
    font-weight: 200;
}

.artl-title {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 1.8rem;
    line-height: 1.4;
    font-weight: 400;
    margin-top: 0;
}

.artl-card .card-footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.artl-card .card-footer .btn {
    font-size: 1.6rem !important;
    line-height: 2.2rem;
    width: 160px;
}

#primary-menu .artl-card .card-footer a {
    padding: .3rem !important;
}

/* News Image Card CSS */
.image-card {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
}

.image-card img {
    width: 100%;
    height: 238px;
    object-fit: cover;
}

.image-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
}

.nr-date {
    font-size: 12px;
    margin-bottom: 5px;
}

.image-content h3 {
    font-size: 18px;
    margin: 0 0 10px;
}

.image-content p {
    font-size: 13px;
    margin: 0;
    opacity: 0.9;
}

/* New Card CSS */
.card0 {
    width: 380px;
    overflow: hidden;
    background: #1b1b1b;
    position: relative;
}

.card0 img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
}

.card-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 25px;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.card-content .btn {
    font-size: 1.6rem !important;
    line-height: 2.2rem !important;
    padding: 1rem 1.5rem !important;
}

.btn span {
    font-size: 18px;
}

/* Event Card CSS */
.eventmenu-card {
    background: #fff;
    transition: 0.4s;
    width: 380px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.eventmenu-image img {
    width: 100%;
    display: block;
    height: 200px;
    object-fit: cover;
}

.eventmenu-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.eventmenu-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #000;
    padding-bottom: 25px;
    margin: 0;
    line-height: 1.4;
}

.eventmenu-info {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    color: #2B2B2B;
    font-size: 1.2rem;
    line-height: 1.1;
}

.eventmenu-info i {
    color: #2B2B2B;
    line-height: 1;
}

.eventmenu-info-icon::before {
    content: "";
    width: 15px;
    height: 15px;
    display: inline-flex;
    margin: 0;
    padding: 0;
    max-width: 100%;
}

i.fa-calendar::before {
    background: url(/wp-content/themes/neosoft/app/images/event-calendar-icon.svg);
    background-size: contain;
    background-repeat: no-repeat;
}

.eventmenu-info span {
    font-size: 1.5rem;
    font-weight: 400;
}

i.fa-location-dot::before {
    background: url(/wp-content/themes/neosoft/app/images/event-location-icon.svg);
    background-size: contain;
    background-repeat: no-repeat;
}

.eventmenu-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    flex-wrap: nowrap;
}

.eventmenu-booth-btn {
    background: #EF1119;
    color: #fff;
    border: none;
    height: 40px;
    padding: 0 20px;
    font-size: 1.3rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: 0.3s;
    cursor: pointer;
    text-decoration: none;
}

#primary-menu li.menu-item-has-children .submenu-wrapper .custom-content .right-side-cont a.eventmenu-register-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2B2B2B;
    font-size: 1.6rem;
    font-weight: 400;
    white-space: nowrap;
    transition: 0.3s;
    cursor: pointer;
    margin-left: auto;
    line-height: 1;
    padding: 0;
}

@media (max-width: 1024px) {
    .eventmenu-card {width: 310px;}
    .eventmenu-content {padding: 2rem;}
    .eventmenu-image img {height: 150px;}
    .eventmenu-title {font-size: 1.6rem;}
}

/* Blog Card CSS */
.blog-card {
    background: #28282c;
    transition: 0.4s;
    width: 380px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 2.5rem;
}

.blog-image img {
    width: 100%;
    display: block;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 25px 0 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.menu-blogsection__date {
    font-size: 1.2rem;
    font-weight: 200;
    color: #9f9f9f;
    line-height: 1;
    padding-bottom: 0;
}

.blog-title {
    font-size: 1.8rem;
    font-weight: 400;
    color: #fff;
    padding-bottom: 25px;
    margin: 0;
    line-height: 1.4;
    height: 50px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

/* Responsive on small device */

@media (min-width: 1900px) {
    .eventmenu-content {padding: 2rem;}
    .eventmenu-title {padding-bottom: 15px;}
    .blog-card {padding: 2rem;}
 .blog-title {margin-bottom: 18px; height: 55px;}
.artl-card {padding: 2rem;}
}

@media only screen and (max-width: 1024px) {

    .card-content .btn,
    .card-footer .btn {
        padding: 1rem 1.5rem !important;
        width: 140px;
        font-size: 1.4rem !important;
    }
}

@media (max-width: 1024px) {
    .neosoft-dynamic-menu-card {
        width: 310px;
    }

    .card0 {
        width: 100%;
        height: 320px;
    }

    .card-heading-flex {
        font-size: 1.6rem;
    }

   /* Article Card CSS */
 .neosoft-dynamic-menu-card {
        width: 310px;
    }

    .artl-card {
        width: 100%;
        padding: 2rem;
    }

    .artl-title {
        font-size: 1.6rem;
    }

    .artl-content {
        padding: 15px 0 15px;
    }

    .card-footer .btn {
        padding: 1rem 1.5rem !important;
    }
    
    .eventmenu-card {width: 310px;}
    .eventmenu-content {padding: 2rem;}
    .eventmenu-image img {height: 150px;}
    .eventmenu-title {font-size: 1.6rem;}

    .blog-card {width: 310px;padding: 2rem;}
    .blog-image img {height: 150px;}
    .blog-title {font-size: 1.6rem;}
}