.nt-c61ce4b2-container {
    font-family: sans-serif;
}
.nt-c61ce4b2-tabs-wrap {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto; /* Enable horizontal scroll on mobile */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: none; /* Firefox */
}
.nt-c61ce4b2-tabs-wrap::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.nt-c61ce4b2-tab {
    padding: 8px 16px;
    background: #f5f5f5;
    color: #333;
    border: 1px solid transparent;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    white-space: nowrap; /* Prevent text wrapping */
    flex-shrink: 0; /* Prevent shrinking on mobile */
}
.nt-c61ce4b2-tab i, .nt-c61ce4b2-tab svg {
    margin-right: 8px;
    fill: currentColor;
}
/* Active/Hover states handled by elementor styles */

.nt-c61ce4b2-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-left: 4px solid red;
    padding-left: 10px;
    flex-wrap: wrap; /* Allow wrapping on mobile */
}
.nt-c61ce4b2-title {
    margin: 0;
    font-size: 24px;
    color: #1a2b49;
}
.nt-c61ce4b2-view-all {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s;
}
.nt-c61ce4b2-view-all:hover {
    opacity: 0.8;
}

/* Mobile Adjustments for Header */
@media (max-width: 767px) {
    .nt-c61ce4b2-title {
        width: 100%;
        margin-bottom: 10px;
    }
    .nt-c61ce4b2-view-all {
        width: 100%;
        text-align: left;
    }
}

.nt-c61ce4b2-content {
    position: relative;
}
.nt-c61ce4b2-grid {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}
.nt-c61ce4b2-grid.active {
    display: grid;
    opacity: 1;
}

/* Explicit Column overrides */
.nt-c61ce4b2-col-1 .nt-c61ce4b2-grid { grid-template-columns: repeat(1, 1fr) !important; }
.nt-c61ce4b2-col-2 .nt-c61ce4b2-grid { grid-template-columns: repeat(2, 1fr) !important; }
.nt-c61ce4b2-col-3 .nt-c61ce4b2-grid { grid-template-columns: repeat(3, 1fr) !important; }
.nt-c61ce4b2-col-4 .nt-c61ce4b2-grid { grid-template-columns: repeat(4, 1fr) !important; }

/* Responsive adjustments for dynamic */
@media (max-width: 992px) {
    .nt-c61ce4b2-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 767px) {
    .nt-c61ce4b2-grid { grid-template-columns: 1fr !important; }
}

.nt-c61ce4b2-card {
    /* Updated styles as requested */
    overflow: hidden;
    background: #fff;
    border: 1px solid rgb(15 23 42 / .08);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgb(15 23 42 / .08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}
.nt-c61ce4b2-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgb(15 23 42 / .12);
}
.nt-c61ce4b2-img {
    /* height: handled by elementor */
    background-size: cover;
    background-position: center;
}
.nt-c61ce4b2-card-body {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.nt-c61ce4b2-meta {
    color: red;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 5px;
}
.nt-c61ce4b2-card-title {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.3;
    flex-grow: 1;
}
.nt-c61ce4b2-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}
.nt-c61ce4b2-card-title a:hover {
    color: #007bff; /* Add a subtle hover to titles */
}
.nt-c61ce4b2-date {
    font-size: 12px;
    color: #888;
    margin-top: auto;
    display: flex;
    align-items: center;
}
.nt-c61ce4b2-date i, .nt-c61ce4b2-date svg {
    margin-right: 5px;
    font-size: 14px;
}
.nt-c61ce4b2-date svg {
    width: 14px;
    height: 14px;
}