/*
Theme Name: Bóng Đá V3
Description: Giao diện website wordpress cho trang web về tin tức bóng đá - News Portal Layout
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bongda_v3
Tags: responsive-layout, custom-menu, post-formats, news
*/

/* GLOBAL STYLES */
body {
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-weight: 400;
}

/* --- Match Schedule Enhancements --- */

.match-card-glow {
    position: relative;
}

.match-card-glow::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    z-index: -1;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.5s;
}

.group:hover .match-card-glow::after {
    opacity: 1;
}

/* Glassmorphism utility */
.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Smooth transitions for all interactive elements */
a,
button,
.group {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom selection color */
::selection {
    background-color: rgba(59, 130, 246, 0.3);
    color: inherit;
}

/* Animation for the "Live" pulse */
@keyframes pulse-soft {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

.animate-pulse-soft {
    animation: pulse-soft 2s infinite;
}

/* Pagination modern styling */
.pagination-custom .page-numbers {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border-width: 1px;
    border-color: #e2e8f0;
}

.dark .pagination-custom .page-numbers {
    border-color: #1e293b;
}

/* --- Match Schedule Fixtures (User Provided) --- */

/* Layout tổng thể */
.league-content.loading-content {
    background: #fff;
    padding: 10px;
    display: block !important;
    /* Đảm bảo luôn hiển thị */
}

.widget-fixtures {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    margin-bottom: 20px;
    overflow: hidden;
}

/* Header Vòng đấu */
.section-category {
    background-color: #f7f7f7;
    border-bottom: 1px solid #e1e1e1;
    display: flex;
    padding: 8px 12px;
}

.section-category .category-title strong {
    color: #c00;
    text-transform: uppercase;
    font-size: 14px;
}

/* Fix lỗi thụt lề li của theme Flatsome/WordPress */
.league-content .widget-fixtures ul,
.league-content .list_match {
    margin-left: 0 !important;
    padding-left: 0 !important;
    list-style: none !important;
}

.league-content .widget-fixtures ul li {
    margin-left: 0 !important;
    /* Xóa bỏ 1.3em margin-left */
    list-style-type: none !important;
    text-indent: 0 !important;
}

/* Header Ngày tháng - Căn giữa dọc */
.caption-days {
    background: #f1f1f1;
    display: flex !important;
    justify-content: space-between;
    align-items: center !important;
    /* Vertical middle */
    padding: 5px 12px;
    font-size: 13px;
    color: #666;
    border-bottom: 1px solid #eee;
    min-height: 30px;
}

/* Dòng thông tin trận đấu - Căn giữa dọc toàn bộ */
.match-info {
    display: flex !important;
    align-items: center !important;
    /* Vertical middle cho toàn dòng */
    border-bottom: 1px solid #f2f2f2;
    padding: 10px 0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.match-info:hover {
    background-color: #f9f9f9;
}

.match-info:last-child {
    border-bottom: none;
}

.match-info .time {
    width: 65px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

/* Khu vực đội bóng và tỉ số */
.match-info .group {
    display: flex !important;
    flex: 1;
    align-items: center !important;
    /* Vertical middle */
    justify-content: center;
    position: relative;
    z-index: 1;
}

.match-info .team {
    flex: 1;
    display: flex !important;
    align-items: center !important;
    /* Vertical middle cho Logo và Tên */
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.match-info .team-a {
    justify-content: flex-end;
    text-align: right;
}

.match-info .team-b {
    justify-content: flex-start;
}

.match-info .team img {
    width: 25px;
    height: 25px;
    object-fit: contain;
    display: block;
}

.match-info .team-a img {
    margin-left: 10px;
    order: 2;
}

.match-info .team-b img {
    margin-right: 10px;
}

/* Tỉ số giữa 2 đội - Ép Inline & Căn giữa dọc */
.match-info .score {
    width: 70px;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    /* Căn giữa dọc ? - ? */
    white-space: nowrap !important;
    /* Không cho rớt dòng */
    font-weight: 700;
    font-size: 16px;
    background: #eee;
    margin: 0 10px;
    border-radius: 3px;
    padding: 4px 0;
    min-height: 30px;
}

.match-info .score span,
.match-info .score small {
    display: inline-block !important;
    line-height: 1 !important;
    margin: 0 2px !important;
}

.match-info .score span {
    color: #c00;
}

/* Xóa bỏ khoảng trống do thẻ br rác gây ra */
.score br {
    display: none !important;
}

/* Ẩn các nút không cần thiết */
.match-info .more,
.icon-barr-right {
    display: none !important;
}

/* Đảm bảo dòng ngày tháng trải dài hết chiều ngang */
ul.list_match>li {
    margin-left: 0 !important;
}

/* Dark mode support for Fixtures */
.dark .league-content.loading-content {
    background: #0f172a !important;
}

.dark .widget-fixtures {
    background: #0f172a !important;
    border-color: #1e293b;
}

.dark .section-category {
    background-color: #1e293b !important;
    border-bottom-color: #334155;
}

.dark .caption-days {
    background: #020617 !important;
    color: #94a3b8;
    border-bottom: 1px solid #1e293b;
}

.dark .match-info {
    border-bottom-color: #1e293b;
}

.dark .match-info:hover {
    background-color: #1e293b;
}

.dark .match-info .time,
.dark .match-info .team {
    color: #f1f5f9;
}

.dark .match-info .score {
    background: #1e293b !important;
}

/*VIDEO*/
/* 1. Ẩn ảnh */
/* .content-post figure {
    display: none !important;
}
 */
/* 2. Video full width */
.video-box {
    width: 100% !important;
}

.video-box .row {
    display: block !important;
}

.video-box .clip-box {
    width: 100% !important;
    max-width: 100% !important;
}

.video-box iframe {
    width: 100% !important;
    height: 500px;
    /* chỉnh tùy ý */
}

/* 3. Ẩn phần nội dung bên phải (title + desc nếu muốn) */
.clip-info .title {
    font-weight: bold;
}

.clip-info>div:not(.hash-tags) {
    display: none !important;
}

/* 4. Xóa Tags */
.hash-tags {
    display: none !important;
}

/* 5. Xóa Bình luận + Xem thêm */
.cont-view,
s #postComment,
.view-more,
.xcap {
    display: none !important;
}

.expNoEdit {
    display: none;
}

.expNoEdit+div {
    display: none !important;
}

#content_detail figure.expNoEdit {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

#content_detail figure.expNoEdit img {
    width: 100% !important;
    height: auto !important;
    display: block;
}

.txt_content div:has(> p:empty) {
    display: none !important;
}

/* Home Page Video Section Styles */
#videoSliderContainer img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    opacity: 1 !important;
}


/* ==========================================================================
   SINGLE POST CONTENT STYLING (Sports News Theme - Red Edition)
   ========================================================================== */

/* Typography & Layout */
.content-post {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 1.125rem !important;
    /* 18px */
    line-height: 1.8 !important;
    color: #374151;
}

/* Paragraphs & Sapo */
.content-post p {
    margin-bottom: 1.75rem !important;
}

/* First paragraph (Sapo) - Bold and impact for sports news */
.content-post>p:first-of-type {
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    color: #e53935 !important;
    /* Primary Red */
    line-height: 1.6 !important;
    border-left: 5px solid #e53935;
    padding-left: 1.5rem;
    margin-bottom: 2.5rem !important;
    font-style: italic;
}

/* Headings Hierarchy */
.content-post h2,
.content-post h3,
.content-post h4 {
    color: #111827;
    font-weight: 800 !important;
    margin-top: 3.5rem !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em;
}

.content-post h2 {
    font-size: 2.25rem !important;
    text-transform: uppercase;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 15px;
    position: relative;
}

/* Red accent for H2 */
.content-post h2::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: #e53935;
    margin-bottom: 15px;
}

.content-post h3 {
    font-size: 1.75rem !important;
    color: #e53935 !important;
}

/* Blockquotes */
.content-post blockquote {
    background: #fff5f5 !important;
    border-left: 0 !important;
    padding: 2.5rem !important;
    margin: 3.5rem 0 !important;
    border-radius: 1.5rem;
    position: relative;
    border: 1px solid #fee2e2;
}

.content-post blockquote p {
    font-style: italic !important;
    font-size: 1.5rem !important;
    color: #991b1b !important;
    font-weight: 700 !important;
    margin-bottom: 0 !important;
    line-height: 1.5 !important;
}

.content-post blockquote::after {
    content: 'format_quote';
    font-family: 'Material Symbols Outlined';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 4rem;
    color: #e53935;
    opacity: 0.1;
}

/* Links */
.content-post a {
    color: #e53935;
    text-decoration: none;
    font-weight: 800;
    box-shadow: inset 0 -2px 0 0 #e53935;
    transition: all 0.2s;
}

.content-post a:hover {
    background: #e53935;
    color: white;
}

/* Images & Figures */
.content-post figure {
    margin: 3rem 0 !important;
}

.content-post img {
    border-radius: 1.25rem !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    transition: transform 0.3s ease;
}

.content-post img:hover {
    transform: scale(1.02);
}

.content-post figcaption {
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem !important;
    color: #4b5563 !important;
    margin-top: 1.25rem !important;
    letter-spacing: 0.05em;
    font-style: italic;
}

/* Strong tags */
.content-post strong,
.content-post b {
    color: #000;
    font-weight: 900;
}