/* ===== SECTION WRAPPER ===== */
.subcategory-heading {
    border-bottom: 1px solid #ddd;
    margin-bottom: 25px;
}

.subcategory-heading h2 {
            text-align: center;
            margin-bottom: 20px;
}

.finance-section {
    padding: 30px 0;
}

/* List item */
.finance-item {
    display: flex;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid #e5e5e5;
}
.finance-item:last-of-type {
    border-bottom-color: #ffffff; /* any color you want */
}

/* Image */
.finance-img-link img {
  width: 200px;
  height: 170px;
  object-fit: cover;
  display: block;
}
/* Title */
.finance-title {
    color: #111;
    text-decoration: none;
    
    display: block;
}

.finance-title:hover {
    text-decoration: underline;
}

/* Description */
.finance-desc {
    margin: 6px 0;
    color: #555;
}

/* Author */
.finance-author {
    color: var(--primary-bg-color);
    text-decoration: none;
    display: block;
    margin-top: 4px;   /* small space above author */
}
.finance-author:hover {
    text-decoration: underline;
}

/* Sub-category */
.finance-tag {
    margin-top: 8px;   /* <-- This creates vertical gap */
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: #999;
}

.finance-tag i {

}

.finance-tag:hover {
    text-decoration: none;
    color: #999;
}

/* ===== RIGHT AD ===== */
.finance-ad {
    position: sticky;
    top: 90px;
    background: #000;
    color: #fff;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Mobile view */
@media (max-width: 576px) {

    .finance-item {
        flex-direction: column;   /* Stack image on top */
        gap: 10px;
    }

    .finance-img-link img {
        width: 100%;              /* Full width image */
        height: auto;             /* Keep aspect ratio */
    }

    .finance-text {
        width: 100%;
    }
}
