/* ========== GENERAL ========== */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

a {
    text-decoration: none;
}

/* ========== BREAKING NEWS TICKER ========== */
.breaking-news {
    background: linear-gradient(90deg, #dc3545, #c82333);
    color: white;
    font-weight: 500;
    padding: 0.6rem 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0.25rem;
}

.breaking-news marquee {
    width: 100%;
}

.breaking-news a {
    color: white;
    font-weight: bold;
}

.breaking-news a:hover {
    text-decoration: underline;
}

/* ========== NEWS CARDS ========== */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    border-radius: 0.5rem;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-title a {
    color: #212529;
    transition: color 0.2s;
}

.card-title a:hover {
    color: #0d6efd;
}

.badge.bg-danger {
    background-color: #dc3545 !important;
}

/* ========== SINGLE POST ========== */
.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.like-btn {
    transition: all 0.3s;
    border-radius: 2rem;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

.like-btn:hover {
    transform: scale(1.05);
}

.like-btn.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.comments-section .comment {
    background: white;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

/* ========== ADMIN PANEL ========== */
.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* ========== LOGIN / REGISTER FORMS ========== */
.form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* ========== PAGINATION ========== */
.pagination .page-link {
    color: #0d6efd;
    border-radius: 0.25rem;
    margin: 0 2px;
}

.pagination .active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* ========== FOOTER ========== */
footer {
    background-color: #212529;
    color: rgba(255,255,255,0.8);
}

/* ========== RESPONSIVE ADJUSTMENTS ========== */
@media (max-width: 768px) {
    .card-img-top {
        height: 160px;
    }

    h1 {
        font-size: 1.75rem;
    }
}

.ticker-wrap {
    position: relative;
    height: 1.5em;
}
.ticker {
    position: absolute;
    white-space: nowrap;
    animation: ticker-scroll 20s linear infinite;
}
.ticker a {
    padding-right: 2rem;
}
@keyframes ticker-scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}