/* TOP GHI BAN PAGE STYLES - ĐỒNG BỘ VỚI CÁC TRANG KHÁC */

/* GENERAL PAGE STYLING */
body.page-template-top-ghi-ban {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #1e3c72 100%) !important;
    background-attachment: fixed !important;
    min-height: 100vh !important;
    color: #ffffff !important;
}

/* CONTAINER AND GRID LAYOUT */
.page-template-top-ghi-ban .container {
    max-width: 1200px !important;
}

.page-template-top-ghi-ban .row {
    margin-left: -15px !important;
    margin-right: -15px !important;
}

.page-template-top-ghi-ban .col-lg-8,
.page-template-top-ghi-ban .col-lg-4 {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* PAGE TITLE */
.page-title {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #4c935c !important;
    text-align: center !important;
    margin-bottom: 30px !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) !important;
    padding: 20px 0 !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 15px !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* HIGHLIGHT LIST */
.highlight-list {
    margin-bottom: 40px !important;
}

.highlight-list .row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

/* Reset any potential spacing issues */
.highlight-list .col-md-6,
.highlight-list .col-xl-4 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.highlight-item {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    padding: 0 !important;
}

.video-link {
    text-decoration: none !important;
    color: inherit !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.highlight-item:hover {
    transform: translateY(-5px) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    border-color: rgba(76, 147, 92, 0.3) !important;
}

/* VIDEO THUMBNAIL */
.highlight-thumbnail {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 15px !important;
    aspect-ratio: 16/9 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
}

.highlight-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    transition: transform 0.3s ease !important;
    border-radius: 15px !important;
    display: block !important;
    margin: 0 !important;
}

.highlight-item:hover .highlight-thumbnail img {
    transform: scale(1.05) !important;
}

/* PLAY BUTTON */
.play-button {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 60px !important;
    height: 60px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
    color: #1e3c72 !important;
    opacity: 0.8 !important;
    transition: all 0.3s ease !important;
}

.highlight-item:hover .play-button {
    opacity: 1 !important;
    transform: translate(-50%, -50%) scale(1.1) !important;
    background: #4c935c !important;
    color: white !important;
}

/* VIDEO DURATION */
.video-duration {
    position: absolute !important;
    bottom: 10px !important;
    right: 10px !important;
    background: rgba(0, 0, 0, 0.8) !important;
    color: white !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

/* HIGHLIGHT CAPTION */
.highlight-caption {
    padding: 15px 20px !important;
    color: #ffffff !important;
    text-align: center !important;
    line-height: 1.4 !important;
    min-height: 60px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    background: rgba(0, 0, 0, 0.2) !important;
    border-radius: 0 0 15px 15px !important;
    flex: 1 !important;
    margin: 0 !important;
    gap: 5px !important;
}

.video-title {
    font-weight: 700 !important;
    font-size: 15px !important;
    color: #ffffff !important;
    margin-bottom: 3px !important;
    line-height: 1.3 !important;
}

.video-teams {
    font-weight: 500 !important;
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    line-height: 1.2 !important;
}

/* PAGINATION */
.highlight-pagination {
    margin-bottom: 40px !important;
}

.pagination .page-link {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    padding: 10px 15px !important;
    margin: 0 5px !important;
    border-radius: 8px !important;
    backdrop-filter: blur(10px) !important;
    transition: all 0.3s ease !important;
}

.pagination .page-link:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: #4c935c !important;
    color: #4c935c !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(76, 147, 92, 0.3) !important;
}

.pagination .page-item.active .page-link {
    background: #4c935c !important;
    border-color: #4c935c !important;
    color: white !important;
    box-shadow: 0 5px 15px rgba(76, 147, 92, 0.4) !important;
}

.pagination .page-item.disabled .page-link {
    color: #666666 !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* RESPONSIVE STYLES FOR SLIDER AND RELATED VIDEOS */
@media (max-width: 768px) {
    /* Featured Slider Mobile */
    .featured-video-item {
        padding: 15px !important;
    }
    
    .featured-thumbnail img {
        height: 200px !important;
    }
    
    .featured-info {
        padding-left: 0 !important;
        margin-top: 15px !important;
    }
    
    .featured-title {
        font-size: 18px !important;
    }
    
    .featured-play-button {
        width: 50px !important;
        height: 50px !important;
    }
    
    .featured-play-button i {
        font-size: 20px !important;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 8% !important;
    }
    
    .carousel-indicators {
        bottom: -40px !important;
    }
    
    /* Related Videos Mobile */
    .related-thumbnail img {
        height: 120px !important;
    }
    
    .related-title {
        font-size: 13px !important;
    }
    
    .related-teams,
    .related-meta {
        font-size: 11px !important;
    }
    
    .section-title {
        font-size: 18px !important;
        padding: 12px 15px !important;
    }
}

@media (max-width: 576px) {
    /* Extra small devices */
    .featured-thumbnail img {
        height: 180px !important;
    }
    
    .featured-title {
        font-size: 16px !important;
    }
    
    .featured-teams,
    .featured-league,
    .featured-date {
        font-size: 13px !important;
    }
    
    .featured-description {
        font-size: 13px !important;
    }
    
    .related-thumbnail img {
        height: 100px !important;
    }
    
    .carousel-item {
        padding: 10px !important;
    }
    
    .section-title {
        font-size: 16px !important;
        padding: 10px 12px !important;
    }
}

/* ANIMATION ENHANCEMENTS */
@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.featured-videos-slider,
.related-videos,
.all-videos {
    animation: slideInUp 0.6s ease-out !important;
}

.related-videos .related-video-item {
    animation: slideInUp 0.6s ease-out !important;
    animation-delay: calc(var(--delay, 0) * 0.1s) !important;
}

/* HOVER EFFECTS */
.featured-video-item:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4) !important;
}

.related-video-item:hover .related-title a {
    color: #aaff77 !important;
}

/* LOADING STATES */
.featured-thumbnail.loading::before,
.related-thumbnail.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* PAGINATION STYLES */
.highlight-pagination {
    margin-top: 40px !important;
    margin-bottom: 40px !important;
}

.pagination {
    justify-content: center !important;
}

.pagination .page-link {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    padding: 10px 15px !important;
    margin: 0 5px !important;
    border-radius: 8px !important;
    backdrop-filter: blur(10px) !important;
    transition: all 0.3s ease !important;
}

.pagination .page-link:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: #4c935c !important;
    color: #4c935c !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(76, 147, 92, 0.3) !important;
}

.pagination .page-item.active .page-link {
    background: #4c935c !important;
    border-color: #4c935c !important;
    color: white !important;
    box-shadow: 0 5px 15px rgba(76, 147, 92, 0.4) !important;
}

.pagination .page-item.disabled .page-link {
    color: #666666 !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* CONTENT SECTION */
.content-section {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 15px !important;
    padding: 30px !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-bottom: 40px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

.content-section h2,
.content-section h3 {
    color: #4c935c !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.content-section h2 {
    font-size: 24px !important;
    margin-top: 0 !important;
}

.content-section h3 {
    font-size: 20px !important;
    margin-top: 25px !important;
}

.content-section p {
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
    font-size: 16px !important;
}

.about-image img {
    border: 3px solid rgba(76, 147, 92, 0.3) !important;
}

.about-caption {
    color: rgba(255, 255, 255, 0.7) !important;
    font-style: italic !important;
    font-size: 14px !important;
}

/* ADS SECTION */
.ads-section {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 15px !important;
    padding: 30px !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-bottom: 40px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    text-align: center !important;
}

/* SIDEBAR STYLES */
.sidebar-section {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 15px !important;
    padding: 25px !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-bottom: 30px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

.sidebar-section h4 {
    color: #4c935c !important;
    font-weight: 700 !important;
    font-size: 20px !important;
    margin-bottom: 20px !important;
    text-align: center !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3) !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid rgba(76, 147, 92, 0.3) !important;
}

/* SIDEBAR LINKS */
.sidebar-link {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    display: block !important;
    padding: 12px 15px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease !important;
    margin-bottom: 8px !important;
}

.sidebar-link:hover {
    color: #4c935c !important;
    background: rgba(76, 147, 92, 0.1) !important;
    border-color: rgba(76, 147, 92, 0.3) !important;
    transform: translateX(5px) !important;
    text-decoration: none !important;
}

/* POPULAR VIDEOS - LAYOUT NGANG */
.popular-videos {
    margin-top: 20px !important;
}

.popular-video-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 15px !important;
    padding: 15px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border-radius: 10px !important;
    margin-bottom: 15px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.popular-video-item .video-link {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 15px !important;
    width: 100% !important;
    text-decoration: none !important;
    color: inherit !important;
    box-sizing: border-box !important;
}

.popular-video-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    transform: translateX(3px) !important;
}

.video-thumbnail {
    position: relative !important;
    width: 90px !important;
    height: 50px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
}

.video-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.play-icon {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 22px !important;
    height: 22px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 9px !important;
    color: #1e3c72 !important;
}

.video-info {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-width: 0 !important;
}

.video-info h6 {
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    margin-bottom: 5px !important;
    line-height: 1.3 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.video-info span {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 12px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .page-title {
        font-size: 22px !important;
        padding: 15px 0 !important;
    }
    
    /* Popular Videos Mobile */
    .popular-video-item {
        padding: 12px !important;
        gap: 12px !important;
    }
    
    .popular-video-item .video-link {
        gap: 12px !important;
    }
    
    .video-thumbnail {
        width: 80px !important;
        height: 45px !important;
    }
    
    .video-info h6 {
        font-size: 13px !important;
    }
    
    .video-info span {
        font-size: 11px !important;
    }
    
    .play-button {
        width: 50px !important;
        height: 50px !important;
        font-size: 20px !important;
    }
    
    .highlight-caption {
        font-size: 13px !important;
        padding: 12px 15px !important;
    }
    
    .content-section,
    .ads-section,
    .sidebar-section {
        padding: 20px !important;
    }
    
    .sidebar-section {
        margin-top: 30px !important;
    }
}

/* STATS LIST cho Archive Page */
.stats-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.stat-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 14px !important;
}

.stat-item i {
    color: #4c935c !important;
    width: 16px !important;
    text-align: center !important;
}

.stat-item strong {
    color: #ffffff !important;
}

/* PAGINATION cho Archive */
.highlight-pagination .pagination {
    justify-content: center !important;
}

.highlight-pagination .page-numbers {
    display: inline-block !important;
    padding: 8px 12px !important;
    margin: 0 4px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.highlight-pagination .page-numbers:hover,
.highlight-pagination .page-numbers.current {
    background: #4c935c !important;
    color: white !important;
    border-color: #4c935c !important;
}

.highlight-pagination .page-numbers.dots {
    background: transparent !important;
    border: none !important;
    cursor: default !important;
}

@media (max-width: 480px) {
    .highlight-caption {
        font-size: 12px !important;
        padding: 10px 12px !important;
    }
    
    .video-duration {
        font-size: 10px !important;
        padding: 3px 6px !important;
    }
}

/* LOADING ANIMATIONS */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.highlight-item {
    animation: fadeInUp 0.6s ease-out !important;
}

.highlight-item:nth-child(1) { animation-delay: 0.1s !important; }
.highlight-item:nth-child(2) { animation-delay: 0.2s !important; }
.highlight-item:nth-child(3) { animation-delay: 0.3s !important; }
.highlight-item:nth-child(4) { animation-delay: 0.4s !important; }
.highlight-item:nth-child(5) { animation-delay: 0.5s !important; }
.highlight-item:nth-child(6) { animation-delay: 0.6s !important; }
