/* ============================== News Page Styles ============================== */
.news-hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, rgba(14, 22, 66, 0.9), rgba(3, 3, 16, 0.85)), url('../images/header-design.png') center/cover no-repeat;
  color: #fff;
  position: relative;
}
.featured-tag {
  display: inline-block;
  background: linear-gradient(45deg, #8a2be2, #00bfff);
  color: #fff;
  padding: 8px 14px;
  border-radius: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}
.news-title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.news-text {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}
.hero-news img { width: 100%; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.search-box { max-width: 420px; }
.search-box input {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(0,191,255,0.35);
  color: #fff;
}
.search-box input::placeholder { color: rgba(255,255,255,0.7); }

.custom-tabs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.tab-btn {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(0,191,255,0.25);
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.tab-btn:hover { transform: translateY(-2px); }
.tab-btn.active { background: linear-gradient(45deg, #8a2be2, #00bfff); }

.section-title { font-weight: 800; margin-bottom: 24px; }
.section-title .highlight {
  background: linear-gradient(45deg, #8a2be2, #00bfff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.news-card { border-radius: 12px; overflow: hidden; background: #0e1533; border: 1px solid rgba(0,191,255,0.18); box-shadow: 0 10px 24px rgba(0,0,0,0.2); transition: transform 0.25s ease; }
.news-card:hover { transform: translateY(-6px); }
.news-image { width: 100%; height: 200px; object-fit: cover; }
.news-content { padding: 16px; }
.news-category { display: inline-block; padding: 6px 12px; border-radius: 14px; font-size: 0.8rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.category-release { background: linear-gradient(45deg, #ff6a00, #ff3c00); }
.category-updates { background: linear-gradient(45deg, #00c853, #64dd17); }
.category-events { background: linear-gradient(45deg, #00d4ff, #0066ff); }
.category-media { background: linear-gradient(45deg, #8a2be2, #c026d3); }
.news-item-title { font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.news-excerpt { color: #cbd5e1; font-size: 0.95rem; }
.news-meta { display: flex; align-items: center; justify-content: space-between; color: #9aa7b2; margin-top: 10px; }
.news-views i { margin-right: 6px; }
.news-link { display: inline-block; margin-top: 12px; text-decoration: none; font-weight: 700; color: #00d4ff; }
.news-link:hover { color: #8a2be2; }

.view-all-btn { display: inline-block; margin-top: 6px; padding: 10px 16px; border-radius: 24px; background: linear-gradient(45deg, #8a2be2, #00bfff); color: #fff; text-decoration: none; font-weight: 700; }
.view-all-btn:hover { filter: brightness(1.1); }

@media (max-width: 768px) {
  .news-title { font-size: 2rem; }
  .news-image { height: 180px; }
}

/* News Modal Styles */
.news-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.news-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #ffffff;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    position: sticky;
    top: 0;
    background: #ffffff;
    padding: 20px 30px 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    z-index: 10;
}

.close-modal {
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.close-modal:hover {
    color: #333;
}

.modal-body {
    padding: 0 30px 30px;
}

.modal-news-image {
    margin-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
}

.modal-news-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.modal-category {
    margin-bottom: 15px;
}

.modal-category .category-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-category .category-badge.press-release {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
}

.modal-category .category-badge.updates {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
}

.modal-category .category-badge.events {
    background: linear-gradient(135deg, #45b7d1, #3498db);
    color: white;
}

.modal-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
}

.modal-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.modal-meta .views,
.modal-meta .date {
    font-size: 14px;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    gap: 5px;
}

.modal-meta .views::before {
    content: "👁";
}

.modal-meta .date::before {
    content: "📅";
}

.modal-description {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
    font-weight: 500;
}

.modal-full-content {
    font-size: 15px;
    color: #444;
    line-height: 1.7;
}

.modal-full-content p {
    margin-bottom: 15px;
}

.modal-full-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.modal-full-content li {
    margin-bottom: 8px;
    color: #555;
}

/* Modal Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile Modal Styles */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
        margin: 10px;
    }
    
    .modal-header {
        padding: 15px 20px 10px;
    }
    
    .modal-body {
        padding: 0 20px 20px;
    }
    
    .modal-news-image img {
        height: 200px;
    }
    
    .modal-title {
        font-size: 24px;
    }
    
    .modal-meta {
        flex-direction: column;
        gap: 10px;
    }
}