/* ============================================================
   FLOATING NEWS BOX — LIGHT THEME
   ============================================================ */
.floating-news-box {
    position: fixed;
    right: -350px;
    bottom: 20px;
    width: 320px;
    padding: 20px;
    border-radius: 12px;

    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(245,245,245,0.95));
    border: 1px solid rgba(0,150,200,0.35);
    box-shadow: 0 0 20px rgba(0,150,200,0.25);
    color: #004455;

    z-index: 9999;

    opacity: 0;
    transform: translateY(20px);
    transition:
        right .85s cubic-bezier(0.22, 1, 0.36, 1),
        opacity .6s ease-out,
        transform .6s ease-out;
}

.floating-news-box.show {
    right: 20px;
    opacity: 1;
    transform: translateY(0);
}
.floating-news-box.show {
    animation: floatingNewsBounceLight .9s ease-out;
}

@keyframes floatingNewsBounceLight {
    0%   { transform: translateY(30px); opacity: 0; }
    60%  { transform: translateY(-6px); opacity: 1; }
    80%  { transform: translateY(3px); }
    100% { transform: translateY(0); }
}

.floating-news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    color: #0088bb;
    text-shadow: 0 0 6px rgba(0,150,200,0.4);
}

.floating-news-thumb {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 0 10px rgba(0,150,200,0.25);
}

.floating-news-actions {
    display: flex;
    gap: 8px;
}

.close-news-box {
    background: transparent;
    border: none;
    color: #0088bb;
    cursor: pointer;
    font-size: 14px;
    transition: .2s;
}

.close-news-box:hover {
    color: #cc3333;
    text-shadow: 0 0 8px rgba(255,80,80,0.6);
}

.btn-floating-news {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 14px;
    border-radius: 6px;
    background: rgba(0,150,200,0.15);
    border: 1px solid #0099cc;
    color: #0077aa;
    text-decoration: none;
    transition: .3s;
}

.btn-floating-news:hover {
    background: rgba(0,150,200,0.3);
    box-shadow: 0 0 12px rgba(0,150,200,0.6);
}


/* ============================================================
  NEWS DETAIL PAGE
   ============================================================ */

.news-full-card {
    max-width: 720px;
    margin: 0 auto;
    padding: 25px;
    border-radius: 12px;
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(0,150,200,0.25);
    box-shadow: 0 0 20px rgba(0,150,200,0.2);
    animation: fadeIn .6s ease-out;
}

.news-breadcrumb {
    display: flex;
    gap: 6px;
    margin-bottom: 15px;
    font-size: .9rem;
    color: #006688;
}

.news-breadcrumb a {
    color: #0088bb;
    text-decoration: none;
}

.news-breadcrumb a:hover {
    text-shadow: 0 0 6px rgba(0,150,200,0.5);
}

.news-category-top {
    text-align: center;
    margin-bottom: 10px;
}

.news-badge-category {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 600;
    background: rgba(0,150,200,0.12);
    border: 1px solid #0099cc;
    color: #0077aa;
    box-shadow: 0 0 10px rgba(0,150,200,0.2);
}

.news-meta-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: .9rem;
    color: #006688;
}

.news-meta-row i {
    margin-right: 6px;
}

.news-title {
    text-align: center;
    margin-bottom: 20px;
    color: #0088bb;
    text-shadow: 0 0 8px rgba(0,150,200,0.4);
}

.news-hero-image {
    width: 70%;
    max-height: 260px;
    margin: 0 auto 20px;
    display: block;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(0,150,200,0.25);
    animation: floatIn .7s ease-out;
}

.news-content {
    color: #003344;
    line-height: 1.7;
    margin-top: 20px;
}

.news-footer-row {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    align-items: center;
}

.news-share-icons {
    display: flex;
    gap: 14px;
    align-items: center;
}

.news-share-icons a {
    margin: 0;
    font-size: 1.3rem;
    color: #00eaff;
    transition: .3s;
    text-decoration: none;
}

.news-share-icons a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px #00eaff;
}

.btn-back-galactic {
    padding: 8px 14px;
    border-radius: 6px;
    background: rgba(0,150,200,0.12);
    border: 1px solid #0099cc;
    color: #0077aa;
    text-decoration: none;
    font-weight: 600;
    transition: .25s ease;
    text-shadow: 0 0 4px rgba(0,150,200,0.4);
}

.btn-back-galactic:hover {
    background: rgba(0,150,200,0.25);
    box-shadow: 0 0 12px rgba(0,150,200,0.5);
    transform: translateX(-3px);
}


/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes floatIn {
    from { opacity: 0; transform: scale(0.97); }
    to   { opacity: 1; transform: scale(1); }
}

.news-list-title {
    text-align: center;
    color: #0088bb;
    text-shadow: 0 0 6px rgba(0,150,200,0.4);
    margin-bottom: 30px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.news-card {
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(0,150,200,0.25);
    border-radius: 12px;
    box-shadow: 0 0 18px rgba(0,150,200,0.15);
    overflow: hidden;
    transition: .3s ease;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 25px rgba(0,150,200,0.35);
}

.news-card-thumb img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.news-card-body {
    padding: 18px;
    color: #003344;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: .85rem;
}

.news-card-category {
    background: rgba(0,150,200,0.12);
    border: 1px solid #0099cc;
    padding: 4px 8px;
    border-radius: 6px;
    color: #0077aa;
    font-weight: 600;
}

.news-card-date {
    color: #006688;
}

.news-card-title {
    font-size: 1.2rem;
    color: #0088bb;
    margin-bottom: 10px;
    text-shadow: 0 0 6px rgba(0,150,200,0.3);
}

.news-card-teaser {
    font-size: .95rem;
    color: #004455;
    margin-bottom: 15px;
}

.news-card-btn {
    display: inline-block;
    padding: 8px 12px;
    background: rgba(0,150,200,0.12);
    border: 1px solid #0099cc;
    color: #0077aa;
    border-radius: 6px;
    text-decoration: none;
    transition: .25s ease;
}

.news-card-btn:hover {
    background: rgba(0,150,200,0.25);
    box-shadow: 0 0 12px rgba(0,150,200,0.4);
}
.floating-news-icon {
    position: fixed;
    right: 20px;
    bottom: 20px;

    background: rgba(0,150,200,0.15);
    border: 1px solid #0099cc;
    color: #0077aa;

    padding: 10px 12px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;

    box-shadow: 0 0 12px rgba(0,150,200,0.25);
    transition: 0.3s;
    z-index: 9998;

    animation: pulseIconLight 2.5s infinite ease-in-out;
}

@keyframes pulseIconLight {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.08); }
}

.floating-news-icon:hover {
    background: rgba(0,150,200,0.28);
    box-shadow: 0 0 16px rgba(0,150,200,0.45);
}

@media (max-width: 480px) {
    .floating-news-box {
        position: fixed;
        z-index: 9999;
        width: 90%;
        right: -100%;
        left: 5%;
        bottom: 10px;
        padding: 16px;
        border-radius: 10px;

        pointer-events: none;
    }

    .floating-news-box.show {
        right: 5%;
        left: 5%;
        pointer-events: auto;
    }

    .floating-news-thumb {
        height: 120px;
    }

    .floating-news-icon {
        position: fixed;
        z-index: 10000;
        right: 15px;
        bottom: 15px;
        padding: 8px 10px;
        font-size: 18px;
    }
  header {
    padding: 1rem;
    background-color: #ffffff;
    box-shadow: 0 0 12px rgba(0, 95, 163, 0.1);
  }
}
