.breaking-news {
    background-color: #dc3545;
    /* Bootstrap danger color */
    color: white;
    padding: 10px 0;
    overflow: hidden;
    position: relative;
}

.breaking-news .label {
    font-weight: bold;
    padding-right: 15px;
    white-space: nowrap;
}

.marquee {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-left 80s linear infinite;
}

@keyframes scroll-left {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.breaking_title {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
}
.breaking_text {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    /* text-transform: uppercase; */
}

/* All Post */
/* Container spacing */
.row.pt-60 {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #ddd;
}

/* Post image container */
.sports-content-img .sports-img {
    overflow: hidden;
    border-radius: 12px;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Image hover zoom */
.sports-content-img .sports-img img {
    transition: transform 0.4s ease;
}

.sports-content-img .sports-img:hover img {
    transform: scale(1.05);
}

/* Category tag */
.sports-img .tags {
    top: 10px;
    left: 10px;
    background-color: #ff6b6b;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 5px;
    color: white !important;
    text-transform: uppercase;
}

/* Music/Video icon */
.all-posts-music-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Post title */
.text h3 {
    font-size: 22px;
    font-weight: 700;
    transition: color 0.3s;
}

.text h3 a:hover {
    color: #ff6b6b;
    text-decoration: underline;
}

/* Description */
.text p {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

/* Metadata */
.desc span {
    font-size: 13px;
    color: #666;
}

/* Pagination style */
.pagination {
    justify-content: center;
    gap: 8px;
}

.pagination .page-link {
    border-radius: 6px;
    padding: 8px 14px;
    color: #333;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: #ff6b6b;
    color: #fff;
    border-color: #ff6b6b;
}

/*  */

/* Section heading */
.section-heading h2 {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    border-left: 4px solid #ff6b6b;
    padding-left: 10px;
}

/* Hot categories box */
.hot-categories-post .post {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 10px 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.hot-categories-post .post:hover {
    background-color: #f1f1f1;
}

.hot-categories-post .numbers {
    background-color: #ff6b6b !important;
    color: white;
    width: 30px;
    height: 30px;
    font-size: 13px;
    font-weight: bold;
}

/* News/recommended cards */
.popular-news-post .card {
    background: #fff;
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: 10px;
    transition: box-shadow 0.3s ease;
    overflow: hidden;
}

.popular-news-post .card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.card-img-top img {
    border-radius: 8px;
    object-fit: cover;
    height: 170px;
}

.card-body {
    padding: 15px;
}

.card-body .card-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.card-body .card-title a:hover {
    color: #ff6b6b;
}

.card-body .text-gray {
    font-size: 12px;
    color: #999;
}

/* Tags */
.popular-tags .tag {
    background-color: #ff6b6b;
    color: white;
    font-weight: 500;
    border-radius: 4px;
    transition: background 0.3s;
}

.popular-tags .tag:hover {
    background-color: #e85454;
}

.popular-tags a {
    text-decoration: none;
    color: white;
}

/* Voting poll */
.voting-poll-section {
    background: #fefefe;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.03);
}

.voting-poll p {
    font-size: 16px;
    font-weight: 600;
}

.poll-answer {
    margin-right: 10px;
}

.vote button {
    background-color: #ff6b6b;
    border: none;
    font-weight: bold;
    padding: 6px 20px;
    font-size: 14px;
    border-radius: 6px;
}

.vote button:hover {
    background-color: #e85454;
}

.vote .view-statistic,
.vote .view-option {
    color: #555;
    text-decoration: underline;
    cursor: pointer;
}

/* Poll results progress bar */
.progress {
    background-color: #eee;
    border-radius: 8px;
    height: 18px;
    overflow: hidden;
}

.progress-bar {
    background-color: #28a745;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 8px;
}
/*  */
/* Dark mode */
body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

body.dark-mode .uc-modes-trigger {
    background-color: #333;
    border-color: #555;
}

/* Pool */
.voting-poll {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.voting-poll-section h2 {
    font-size: 22px;
    font-weight: 700;
    border-bottom: 3px solid #1e5f85;
    display: inline-block;
    padding-bottom: 4px;
    margin-bottom: 20px;
    color: #1e2a38;
}

.voting-poll p {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.poll-answer {
    display: none;
}

.form-check {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fff;
}

.form-check:hover {
    border-color: #1e5f85;
}

.form-check-input:checked + label::before {
    background-color: #28a745;
    border-color: #28a745;
    content: "\2713";
    color: white;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-check-label {
    position: relative;
    padding-left: 32px;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    display: block;
    width: 100%;
}

.form-check-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #999;
    background: #fff;
    transition: all 0.3s ease;
}

.vote {
    margin-top: 20px;
}

.poll-submit-btn {
    padding: 6px 20px;
    font-size: 14px;
    font-weight: 600;
    background-color: #1e5f85;
    border: none;
    border-radius: 4px;
    color: #fff;
    transition: background 0.3s ease;
}

.poll-submit-btn:hover {
    background-color: #114663;
}

.view-statistic {
    color: #6c757d;
    font-size: 14px;
    text-decoration: none;
}

.view-statistic:hover {
    text-decoration: underline;
}

.custom-alert-container {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 320px;
    z-index: 999999;
}

.custom-alert {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    color: #333;
    padding: 15px 20px;
    margin-bottom: 12px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    font-family: sans-serif;
    animation: fadeInRight 0.4s ease forwards;
    position: relative;
}

.custom-alert .alert-title {
    font-weight: bold;
    margin-right: 6px;
}

.custom-alert .alert-close {
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    color: #888;
}

.custom-alert-success {
    border-left: 5px solid #2ecc71;
    background: #eafaf1;
    color: #2e7d32;
}
.custom-alert-error {
    border-left: 5px solid #e74c3c;
    background: #fdecea;
    color: #c0392b;
}
.custom-alert-info {
    border-left: 5px solid #3498db;
    background: #eaf4fd;
    color: #2e86de;
}
.custom-alert-warning {
    border-left: 5px solid #f39c12;
    background: #fff4e5;
    color: #e67e22;
}

@keyframes fadeInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* modal */
.lan_button {
    font-size: 10pt;
    display: inline-block;
    padding: 8px 15px !important;
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid #17b978;
    border-radius: 50px;
    background: #0868a2 !important;
    color: #fff;
    min-width: 82px;
    text-align: center;
}

.custom-modal {
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
}

.custom-modal.show {
    opacity: 1;
    visibility: visible;
}

.custom-modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    max-width: 500px;
    position: relative;
    text-align: center;
    transform: translateY(-30px);
    transition: transform 0.4s ease-in-out;
}

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

.custom-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
}

/*  */

.breaking-news-container {
    display: flex;
    align-items: center;
    background-color: #CE0F2E;
    color: white;
    font-family: Arial, sans-serif;
    font-size: 14px;
    height: 55px;
    width: 100%;
    overflow: hidden;
}

.breaking-news-label {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    white-space: nowrap;
    flex-shrink: 0;
}

.breaking-news-arrow {
    width: 0;
    height: 0;
    border-left: 24px solid rgba(0, 0, 0, 0.2);
    border-top: 35px solid transparent;
    border-bottom: 30px solid transparent;
    flex-shrink: 0;
}

.breaking-news-content {
    flex: 1;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.breaking-news-text {
    padding-left: 16px;
    white-space: nowrap;
    animation: scroll-left 60s linear infinite;
    font-size: 16px;
    font-weight: bold;
}

@keyframes scroll-left {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.breaking-news-container:hover .breaking-news-text {
    animation-play-state: paused;
}
