/* General Container */
.nbw-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin-bottom: 20px;
    color: #333;
    background-color: #f8f9fa; /* Lite background for the widget area */
    padding: 15px;
    border-radius: 16px; /* Round corner div */
}

.nbw-container a {
    text-decoration: none;
    color: #111;
    transition: color 0.2s ease;
}

.nbw-container a:hover {
    color: #d32f2f;
}

.nbw-container img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Universal Card Class for Rounded Corners and Lite Background */
.nbw-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 12px;
}

.nbw-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.nbw-card-content {
    padding: 12px 15px;
}

/* ============================================
   LAYOUT 1: Hero Post + List
   ============================================ */
.nbw-hero-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nbw-hero-thumb img {
    width: 100%;
    height: 180px;
}

.nbw-hero-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.nbw-list-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nbw-list-item {
    display: flex;
    align-items: center;
    padding: 8px;
}

.nbw-list-thumb {
    flex: 0 0 80px;
    margin-right: 12px;
}

.nbw-list-thumb img {
    width: 80px;
    height: 60px;
    border-radius: 8px;
}

.nbw-list-content {
    flex: 1;
}

.nbw-list-title {
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
    font-weight: 600;
}

/* ============================================
   LAYOUT 2: Featured Left + List Right
   ============================================ */
.nbw-side-featured {
    display: flex;
    gap: 12px;
}

.nbw-big-featured {
    flex: 1.2;
    margin-bottom: 0;
}

.nbw-side-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nbw-big-thumb img {
    width: 100%;
    height: 220px;
}

.nbw-big-title {
    font-size: 16px;
    margin: 0;
    font-weight: 700;
}

.nbw-side-item {
    padding: 8px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nbw-side-thumb {
    flex: 0 0 70px;
}

.nbw-side-thumb img {
    width: 70px;
    height: 50px;
    border-radius: 6px;
}

.nbw-side-title {
    font-size: 13px;
    margin: 0;
    font-weight: 600;
    line-height: 1.3;
}

/* ============================================
   LAYOUT 3: Top Card + Bottom List (Image 1)
   ============================================ */
.nbw-top-card-thumb img {
    width: 100%;
    height: 200px;
}

.nbw-top-card-title {
    font-size: 18px;
    margin: 0;
    font-weight: 700;
}

.nbw-card-list-item {
    display: flex;
    align-items: center;
    padding: 8px;
}

.nbw-card-list-thumb {
    flex: 0 0 80px;
    margin-right: 12px;
}

.nbw-card-list-thumb img {
    width: 80px;
    height: 60px;
    border-radius: 8px;
}

.nbw-card-list-title {
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
    font-weight: 600;
}

/* ============================================
   LAYOUT 4: Media Split (Image 2 - Video Gallery Style)
   ============================================ */
.nbw-media-wrapper {
    display: flex;
    gap: 12px;
}

.nbw-media-big {
    flex: 1.4;
    margin-bottom: 0;
}

.nbw-media-big-thumb img {
    width: 100%;
    height: 240px;
}

.nbw-media-big-title {
    font-size: 16px;
    margin: 0;
    font-weight: 700;
}

.nbw-media-small-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nbw-media-small-item {
    padding: 6px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nbw-media-small-thumb {
    flex: 0 0 90px;
}

.nbw-media-small-thumb img {
    width: 90px;
    height: 60px;
    border-radius: 6px;
}

.nbw-media-small-title {
    font-size: 13px;
    margin: 0;
    font-weight: 600;
    line-height: 1.3;
}

/* ============================================
   LAYOUT 5: Grid Layout
   ============================================ */
.nbw-grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.nbw-grid-item {
    margin-bottom: 0;
}

.nbw-grid-thumb img {
    width: 100%;
    height: 120px;
}

.nbw-grid-title {
    font-size: 14px;
    margin: 0;
    line-height: 1.3;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nbw-side-featured, .nbw-media-wrapper {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .nbw-grid-container {
        grid-template-columns: 1fr;
    }
}