/* ============================================
   NEWS CARDS - BLOG STYLE DESIGN
   ============================================ */

/* Section Title */
.newest-news .section-title {
    text-align: center;
    margin-bottom: 50px;
    color: #fff;
}

.newest-news .section-title span {
    color: #110e7f !important;
}

/* Remove yellow line from section title */
.newest-news .section-title:after {
    display: none !important;
}

.newest-news {
    background-image: url(../img/newsbg.png);
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 50px 0;
}

/* News Cards Container - Flex Layout */
.newest-news-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
    align-items: stretch;
}

/* Individual News Card */
.news-card {
    position: relative;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    flex: 0 0 calc(33.333% - 20px);
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* News Card Image */
.news-card-img {
    position: relative;
    overflow: hidden;
    height: 250px;
    flex-shrink: 0;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-img img {
    transform: scale(1.05);
}

/* News Card Content */
.news-card-content {
    padding: 25px;
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* News Card Title */
.news-card-title {
    margin: 0 0 15px 0;
}

.news-card-title a {
    color: #110e7f;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: color 0.3s ease;
    display: block;
    line-height: 1.3;
}

.news-card-title a:hover {
    color: #2c3e8f;
}

/* News Card Description */
.news-card-description {
    color: #58595b;
    line-height: 1.6;
    margin-bottom: 20px;
    max-height: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.news-card-description p {
    margin: 0;
    color: inherit;
}

/* News Card Button - Menu Style */
.news-card-btn {
    background: linear-gradient(135deg, #3B82F6, #1D4ED8, #1E40AF, #1E3A8A) !important;
    background-size: 300% 300% !important;
    animation: menuActiveGlow 4s ease infinite !important;
    color: white !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
    padding: 12px 24px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 14px;
    text-align: center;
    align-self: flex-start;
    margin-top: auto;
}

.news-card-btn:hover {
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb, #f5576c) !important;
    background-size: 300% 300% !important;
    animation: menuHoverGlow 3s ease infinite !important;
    color: white !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
    transform: translateY(-2px) !important;
}

/* News List Card (Sidebar) */
.news-list-card {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.news-list-title {
    color: #110e7f;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid #110e7f;
}

.news-short {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.news-short:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.news-short-desc {
    color: #58595b;
    line-height: 1.5;
    margin-bottom: 10px;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}

.news-short-desc:hover {
    color: #110e7f;
}

.news-short .more {
    color: #110e7f;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-short .more:hover {
    color: #2c3e8f;
}

/* ============================================
   ANIMATIONS - Menu Style
   ============================================ */

@keyframes menuHoverGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes menuActiveGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet Styles */
@media (max-width: 992px) {
    .news-card {
        flex: 0 0 calc(50% - 15px);
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .newest-news-wrapper {
        gap: 20px;
    }
    
    .news-card {
        flex: 0 0 100%;
    }
}
