/* ========================================
   GENERIC MODAL STYLES
======================================== */
.modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex !important;
    opacity: 1;
}

.modal-content {
    background: rgba(14, 36, 53, 0.95);
    padding: 30px;
    border: 1px solid rgba(86, 176, 255, 0.3);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 0 50px rgba(86, 176, 255, 0.25);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #888;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
    z-index: 10;
}

.close-modal:hover {
    color: #56b0ff;
    text-shadow: 0 0 10px rgba(86, 176, 255, 0.5);
}

.modal h2 {
    color: #56b0ff;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(86, 176, 255, 0.2);
    padding-bottom: 10px;
}

#modal-news-content {
    color: #dce3ec;
    font-size: 16px;
    line-height: 1.8;
}

/* ========================================
   NEWS HUB (Merged Section)
======================================== */
#news-hub {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.hub-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

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

.hub-column h2 {
    color: #56b0ff;
    border-bottom: 2px solid rgba(86, 176, 255, 0.3);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* News Grid within Column */
.news-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* COMPACT CARDS */
.news-card,
.latest-card {
    background: rgba(14, 36, 53, 0.6);
    border: 1px solid rgba(86, 176, 255, 0.2);
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    height: 140px;
    overflow: hidden;
}

.news-card:hover,
.latest-card:hover {
    border-color: rgba(86, 176, 255, 0.5);
    box-shadow: 0 0 20px rgba(86, 176, 255, 0.3);
    transform: translateY(-3px);
    cursor: pointer;
}

/* Thumbnails */
.news-thumb,
.latest-thumb {
    width: 120px;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

/* Content Area */
.news-info,
.latest-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.news-card h3,
.latest-card h3 {
    color: #fff;
    font-size: 1.1em;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-card p,
.latest-card p {
    color: #bbb;
    font-size: 0.9em;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.latest-type {
    display: inline-block;
    background: rgba(86, 176, 255, 0.1);
    color: #56b0ff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    text-transform: uppercase;
    margin-bottom: 5px;
    align-self: flex-start;
}

.read-more {
    display: none;
}