/* ===============================================
   News Section - Premium Redesign 2026
   =============================================== */

.portfolio {
    padding: 80px 0;
    background-color: #f9f9f9;
}

/* Card Container */
.news-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

/* Hover Effect */
.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* Image Wrapper */
.news-img {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .news-img img {
    transform: scale(1.1);
}

/* Category Badge */
.portfolio .news-card .news-img .category-badge {
    position: absolute !important;
    bottom: 10px !important;
    right: 10px !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    max-width: 80%;

    background: #ffffff !important;
    color: #e91e63 !important;

    padding: 5px 12px !important;
    border-radius: 50px !important;
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
    z-index: 10;
    backdrop-filter: none;
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

/* Content Area */
.news-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Date */
.news-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.news-date i {
    margin-right: 8px;
    color: #e91e63;
    font-size: 1rem;
}

/* Title */
.news-content h5 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-card:hover .news-content h5 {
    color: #e91e63;
}

/* Summary Text */
.news-content p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* "Read More" link implied by card click or add specific if needed */
/* For now, whole card isn't a link, but usually index cards are summaries. */

/* Section Button Alignment */
.portfolio .btn-outline-primary {
    border-color: #e91e63;
    color: #e91e63;
    border-radius: 50px;
    padding: 12px 35px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-width: 2px;
}

.portfolio .btn-outline-primary:hover {
    background: #e91e63;
    color: white;
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.3);
    transform: translateY(-2px);
}

/* Link wrapper adjustments */
.news-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.news-card-link:hover {
    text-decoration: none;
    color: inherit;
}