
/* =========================================
   NEWS TICKER STYLES
   ========================================= */
.news-ticker-wrapper {
    display: flex;
    align-items: center;
    background-color: #ffffff; /* සුදු පැහැති පසුබිම */
    height: 45px;
    border-bottom: 2px solid #e17055; /* තැඹිලි/රතු ලයින් එක */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 999;
}

.news-label {
    background: linear-gradient(135deg,  #c62d41, #f44c63);
    color: white;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
    box-shadow: 3px 0 5px rgba(0,0,0,0.1);
}

.news-label i {
    margin-right: 8px;
    animation: shake 2s infinite; /* Icon එක හෙළවෙනවා */
}

.news-content-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.news-content {
    display: inline-flex;
    white-space: nowrap;
    animation: scrollNews 60s linear infinite; /* තත්පර 60කින් Scroll වෙනවා */
    padding-left: 100%; /* දකුණු කෙළවරින් පටන් ගැනීම */
}

/* මවුස් එක ගෙනිච්චම Scroll වෙන එක නවතිනවා */
.news-content-wrapper:hover .news-content {
    animation-play-state: paused;
}

.news-item {
    font-size: 15px;
    color: #2d3436;
    font-weight: 500;
    padding-right: 50px; /* News දෙකක් අතර පරතරය */
}

/* News වෙන් කරන තිත (Separator) */
.news-item::after {
    content: "•";
    color: var(--primary);
    margin-left: 50px;
    font-size: 20px;
    vertical-align: middle;
}

/* අන්තිම News එකට පස්සේ තිත එපා */
.news-item:last-child::after {
    display: none;
}

/* Scrolling Keyframes */
@keyframes scrollNews {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Icon Animation */
@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg); }
    75% { transform: rotate(15deg); }
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .news-ticker-wrapper { height: 35px; }
    .news-label { font-size: 12px; padding: 0 10px; }
    .news-item { font-size: 13px; padding-right: 30px; }
    .news-item::after { margin-left: 30px; }
}

/* --- GOOGLE SHEETS NEWS BAR STYLES --- */
.news-item strong {
    color: var(--primary); /* Title එකට තැඹිලි පාටක් */
    margin-right: 5px;
    font-weight: 800;
}

.news-link {
    color: var(--primary); /* ලින්ක් එකට නිල් පාටක් */
    font-size: 13px;
    margin-left: 10px;
    text-decoration: underline;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.news-link:hover {
    color: #ff7675; /* මවුස් එක ගෙනිච්චම රතු පාට වෙනවා */
}


