
/* Description Section */
.term-description {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.term-description p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.term-description p br {
    display: block;
    margin-bottom: 10px;
    content: "";
}

/* First line of description as a heading */
.term-description p::first-line {
    font-weight: 700;
    font-size: 2rem;
    color: #111;
    line-height: 2.5;
}

/* Product Grid */
.wd-products {
    display: grid !important;
    /* Override existing flex/grid styles */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

/* Product Card */
.wd-product {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.wd-product:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.product-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Image Area */
.product-element-top {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.product-element-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.wd-product:hover .product-element-top img {
    transform: scale(1.05);
}

/* Content Area */
.product-element-bottom {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Title */
.wd-entities-title {
    margin: 0 0 12px 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.wd-entities-title a {
    text-decoration: none;
    color: #111;
    transition: color 0.2s;
}

.wd-entities-title a:hover {
    color: #0056b3;
    /* Accent color */
}

/* Description Text */
.product-element-bottom p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .term-description p::first-line {
        font-size: 1.5rem;
    }

    .wd-products {
        grid-template-columns: 1fr;
    }
}