/* ===================================
   Header Redesign - Clean & Modern
   =================================== */

/* Restore normal content typography for standard pages/posts */
.entry-content,
.page-content,
.post-content,
.single-content,
.content-area,
.blog-details-text,
article .entry-content,
article .post-content,
article .page-content {
    line-height: 1.8;
}

.entry-content p,
.page-content p,
.post-content p,
.single-content p,
.content-area p,
.blog-details-text p,
article .entry-content p,
article .post-content p,
article .page-content p {
    margin: 0 0 1rem;
}

.entry-content ul,
.entry-content ol,
.page-content ul,
.page-content ol,
.post-content ul,
.post-content ol,
.single-content ul,
.single-content ol,
.content-area ul,
.content-area ol,
.blog-details-text ul,
.blog-details-text ol,
article .entry-content ul,
article .entry-content ol,
article .post-content ul,
article .post-content ol,
article .page-content ul,
article .page-content ol,
.wp-block-list {
    list-style-position: outside !important;
    margin: 1rem 0 1rem 1.5rem !important;
    padding-left: 1.5rem !important;
}

.entry-content ul,
.page-content ul,
.post-content ul,
.single-content ul,
.content-area ul,
.blog-details-text ul,
article .entry-content ul,
article .post-content ul,
article .page-content ul {
    list-style-type: disc !important;
}

.entry-content ol,
.page-content ol,
.post-content ol,
.single-content ol,
.content-area ol,
.blog-details-text ol,
article .entry-content ol,
article .post-content ol,
article .page-content ol {
    list-style-type: decimal !important;
}

.entry-content li,
.page-content li,
.post-content li,
.single-content li,
.content-area li,
.blog-details-text li,
article .entry-content li,
article .post-content li,
article .page-content li {
    margin: 0.4rem 0 !important;
    display: list-item !important;
    list-style-position: outside !important;
}

.entry-content a,
.page-content a,
.post-content a,
.single-content a,
.content-area a,
.blog-details-text a,
article .entry-content a,
article .post-content a,
article .page-content a {
    text-decoration: underline;
}

/* Ensure page/post text is readable on mobile devices */
@media (max-width: 767px) {
    body,
    .entry-content,
    .page-content,
    .post-content,
    .single-content,
    .content-area,
    .blog-details-text,
    article .entry-content,
    article .post-content,
    article .page-content,
    .entry-content p,
    .page-content p,
    .post-content p,
    .single-content p,
    .content-area p,
    .blog-details-text p,
    article .entry-content p,
    article .post-content p,
    article .page-content p,
    .entry-content li,
    .page-content li,
    .post-content li,
    .single-content li,
    .content-area li,
    .blog-details-text li,
    article .entry-content li,
    article .post-content li,
    article .page-content li {
        font-size: 1.125rem !important;
        line-height: 1.8 !important;
    }
}

/* Header Top Bar */
.header-top {
    background: #07294D;
    padding: 8px 0;
}

.header-top-wrapper {
    min-height: 35px;
}

.header-link {
    color: #fff;
}

/* Polylang Language Switcher */
.language-switcher ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
    align-items: center;
}

.language-switcher li {
    margin: 0;
    padding: 0;
    display: inline-block;
}

.language-switcher li a {
    display: block;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.2s ease;
    line-height: 1;
}

.language-switcher li a:hover,
.language-switcher li.current-lang a {
    opacity: 1;
    transform: scale(1.15);
}

.language-switcher li a img {
    display: block;
    width: 24px;
    height: auto;
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Header right content */
.header-right-content {
    gap: 15px;
}

/* Search Icon Button */
.header-search-icon .search-toggle-btn {
    background: transparent;
    border: none;
    color: #07294D;
    font-size: 20px;
    cursor: pointer;
    padding: 8px 12px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.header-search-icon .search-toggle-btn:hover {
    background: rgba(7, 41, 77, 0.1);
    transform: scale(1.1);
}

/* Mobile header right section */
.header-right-mobile {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 98;
}

.header-right-mobile .nav-toggle {
    position: relative;
    right: auto;
    top: auto;
    margin-top: 0;
    transform: none;
}

.header-right-mobile .header-search-icon .search-toggle-btn {
    padding: 8px;
}
.search-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
}

.search-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.search-popup-content {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.search-popup-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    padding: 10px;
    transition: transform 0.3s ease;
    z-index: 10;
}

.search-popup-close:hover {
    transform: rotate(90deg);
}

.search-popup-content .search-popup-form {
    position: relative;
    width: 100%;
}

.search-popup-content form {
    position: relative;
    width: 100%;
}

.search-popup-content input[type="search"] {
    width: 100%;
    padding: 20px 70px 20px 25px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.search-popup-content input[type="search"]:focus {
    outline: none;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.search-popup-content button[type="submit"] {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #007cba;
    border: none;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

.search-popup-content button[type="submit"]:hover {
    background: #005a87;
    transform: translateY(-50%) scale(1.1);
}

/* Polylang Language Switcher */
.language-switcher ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
    align-items: center;
}

.language-switcher li {
    margin: 0;
    padding: 0;
    display: inline-block;
}

.language-switcher li a {
    display: block;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.2s ease;
    line-height: 1;
}

.language-switcher li a:hover,
.language-switcher li.current-lang a {
    opacity: 1;
    transform: scale(1.15);
}

.language-switcher li a img {
    display: block;
    width: 24px;
    height: auto;
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Responsive optimizations */
@media (max-width: 991px) {
    .header-right-content {
        margin-top: 10px;
    }
}

@media (max-width: 767px) {
    .search-popup-content {
        padding: 15px;
    }
    
    .search-popup-content input[type="search"] {
        font-size: 16px;
        padding: 15px 60px 15px 20px;
    }
    
    .search-popup-content button[type="submit"] {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

.header-top-left .search-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-top-left .search-field {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 250px;
    transition: border-color 0.3s ease;
}

.header-top-left .search-field:focus {
    outline: none;
    border-color: #007cba;
}

.header-top-left .search-submit {
    padding: 6px 15px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.header-top-left .search-submit:hover {
    background: #005a87;
}

/* Polylang Language Switcher */
.language-switcher ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
    align-items: center;
}

.language-switcher li {
    margin: 0;
    padding: 0;
    display: inline-block;
}

.language-switcher li a {
    display: block;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.2s ease;
    line-height: 1;
}

.language-switcher li a:hover,
.language-switcher li.lang-item-first a {
    opacity: 1;
    transform: scale(1.1);
}

.language-switcher li a img {
    display: block;
    width: 20px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Responsive header kontakt */
@media (max-width: 767px) {
    .header-meta {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .header-meta li a {
        font-size: 13px;
    }
}

/* Header bez kontakt informacija */
.header-top-wrapper.no-contact-info {
    justify-content: flex-end !important;
}

.header-top-wrapper.no-contact-info .header-top-left {
    display: none;
}

/* Tournament title spacing and mobile optimization */
.tournament-title {
    padding-top: 1rem !important;
    margin-top: 1rem !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
    text-align: center !important;
}

@media (max-width: 768px) {
    .tournament-title {
        padding-top: 2rem !important;
        margin-top: 0 !important;
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

@media (max-width: 480px) {
    .tournament-title {
        padding-top: 2.5rem !important;
        margin-top: 0 !important;
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        max-width: 100% !important;
    }
}

/* Tournament subtitle (location) mobile optimization */
.tournament-subtitle {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    text-align: center !important;
}

@media (max-width: 480px) {
    .tournament-subtitle {
        font-size: 1rem !important;
        margin-top: 0.8rem !important;
    }
}

/* Tournament Archive Sections Styling */
.tournament-section {
    margin-bottom: 3rem !important;
}

.section-header {
    border-left: 4px solid #007cba !important;
    padding: 1rem !important;
    border-radius: 8px !important;
    margin-bottom: 1.5rem !important;
}

.tournament-card {
    background: white !important;
    border-radius: 10px !important;
    padding: 1.5rem !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    height: 100% !important;
    position: relative !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.tournament-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.no-tournaments-message {
    text-align: center !important;
    padding: 3rem 1rem !important;
    background: #f8f9fa !important;
    border-radius: 8px !important;
    border: 2px dashed #dee2e6 !important;
}

/* Mobile optimizations for archive */
@media (max-width: 768px) {
    .tournament-section {
        margin-bottom: 2rem !important;
    }
    
    .section-header {
        padding: 0.8rem !important;
        margin-bottom: 1rem !important;
    }
    
    .section-header h2 {
        font-size: 1.3rem !important;
    }
    
    .tournament-card {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .tournament-card h4 {
        font-size: 1.1rem !important;
        min-height: auto !important;
        margin-bottom: 0.6rem !important;
    }
    
    .no-tournaments-message {
        padding: 2rem 1rem !important;
    }
    
    .no-tournaments-message div:first-child {
        font-size: 2rem !important;
    }
    
    .no-tournaments-message h4 {
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.8rem !important;
    }
    
    .tournament-card {
        padding: 0.8rem !important;
    }
    
    .section-header h2 {
        font-size: 1.2rem !important;
        flex-direction: column !important;
        gap: 0.3rem !important;
    }
    
    .tournament-card h4 {
        font-size: 1rem !important;
    }
    
    .tournament-status {
        font-size: 0.7rem !important;
        padding: 0.2rem 0.6rem !important;
    }
}

/* Tournament Archive Hero Section - ONLY for archive pages */
.post-type-archive-bg_tournament .page-banner-area {
    position: relative !important;
    overflow: hidden !important;
    margin-top: 80px !important;
}

.post-type-archive-bg_tournament .page-banner-bg {
    min-height: 400px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 120px 0 60px 0 !important;
    background: linear-gradient(140deg, #0a1628 0%, #0e3460 55%, #005a87 100%) !important;
}

.post-type-archive-bg_tournament .banner-content {
    padding: 2rem 0 !important;
    margin-top: 40px !important;
}

.post-type-archive-bg_tournament .banner-content .title {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3) !important;
}

.breadcrumb-custom {
    display: inline-block !important;
}

.breadcrumb-custom a {
    color: rgba(255,255,255,0.8) !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.breadcrumb-custom a:hover {
    color: white !important;
}

.breadcrumb-sep {
    margin: 0 0.5rem !important;
    color: rgba(255,255,255,0.6) !important;
}

/* Mobile optimizations for hero - ONLY for archive pages */
@media (max-width: 768px) {
    .post-type-archive-bg_tournament .page-banner-area {
        margin-top: 70px !important;
    }
    
    .post-type-archive-bg_tournament .page-banner-bg {
        min-height: 300px !important;
        padding: 100px 0 40px 0 !important;
    }
    
    .post-type-archive-bg_tournament .banner-content {
        padding: 1.5rem 0 !important;
        margin-top: 20px !important;
    }
    
    .post-type-archive-bg_tournament .banner-content .title {
        font-size: 2rem !important;
    }
    
    .post-type-archive-bg_tournament .banner-content p {
        font-size: 1rem !important;
        padding: 0 1rem !important;
    }
}

@media (max-width: 480px) {
    .post-type-archive-bg_tournament .page-banner-area {
        margin-top: 60px !important;
    }
    
    .post-type-archive-bg_tournament .page-banner-bg {
        min-height: 250px !important;
        padding: 150px 0 30px 0 !important;
    }
    
    .post-type-archive-bg_tournament .banner-content {
        padding: 1rem 0 !important;
        margin-top: -20px !important;
    }
    
    .post-type-archive-bg_tournament .banner-content .title {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
    }
    
    .post-type-archive-bg_tournament .banner-content p {
        font-size: 0.9rem !important;
        margin-bottom: 1rem !important;
    }
}

/* Event Archive (Revijalni Turniri) Hero Section */
.post-type-archive-bg_event .page-banner-area {
    position: relative !important;
    overflow: visible !important;
    margin-top: 80px !important;
}

.post-type-archive-bg_event .page-banner-bg {
    min-height: 400px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 120px 0 60px 0 !important;
}

.post-type-archive-bg_event .banner-content {
    padding: 2rem 0 !important;
    margin-top: 40px !important;
}

.post-type-archive-bg_event .banner-content .title {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3) !important;
}

@media (max-width: 991px) {
    .post-type-archive-bg_event .page-banner-area {
        margin-top: 60px !important;
    }
    
    .post-type-archive-bg_event .page-banner-bg {
        min-height: 350px !important;
        padding: 100px 0 50px 0 !important;
    }
    
    .post-type-archive-bg_event .banner-content {
        padding: 1.5rem 0 !important;
        margin-top: 50px !important;
    }
    
    .post-type-archive-bg_event .banner-content .title {
        font-size: 2rem !important;
    }
    
    .post-type-archive-bg_event .banner-content p {
        font-size: 1rem !important;
    }
}

@media (max-width: 767px) {
    .post-type-archive-bg_event .page-banner-area {
        margin-top: 60px !important;
    }
    
    .post-type-archive-bg_event .page-banner-bg {
        min-height: 300px !important;
        padding: 140px 0 40px 0 !important;
    }
    
    .post-type-archive-bg_event .banner-content {
        padding: 1rem 0 !important;
        margin-top: 50px !important;
    }
    
    .post-type-archive-bg_event .banner-content .title {
        font-size: 1.75rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .post-type-archive-bg_event .banner-content p {
        font-size: 0.9rem !important;
        margin-bottom: 1rem !important;
    }
}

/* Turniri u toku - sekcija */
.ongoing-tournaments-wrapper {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 1.5rem !important;
    margin-bottom: 3rem !important;
}

.single-ongoing-tournament {
    background: #fff !important;
    border-radius: 10px !important;
    padding: 1.5rem !important;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2) !important;
    border-left: 4px solid #ffc107 !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.single-ongoing-tournament:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3) !important;
}

.tournament-status {
    background: rgba(255, 193, 7, 0.1) !important;
    color: #ffc107 !important;
    padding: 0.3rem 0.8rem !important;
    border-radius: 15px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    display: inline-block !important;
    margin-bottom: 1rem !important;
    animation: pulse 2s infinite !important;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.ongoing-tournaments-wrapper a[href]:hover {
    background: #005a8b !important;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-2px) !important;
}

/* Mobilni prikaz za turnire u toku */
@media (max-width: 768px) {
    .ongoing-tournaments-wrapper {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        margin-bottom: 2rem !important;
    }
    
    .single-ongoing-tournament {
        padding: 1rem !important;
        margin-bottom: 0 !important;
    }
    
    .single-ongoing-tournament h4 {
        font-size: 1.1rem !important;
        line-height: 1.3 !important;
    }
    
    .tournament-status {
        font-size: 0.75rem !important;
        padding: 0.2rem 0.6rem !important;
    }
}

@media (max-width: 480px) {
    .ongoing-tournaments-wrapper {
        gap: 0.8rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .single-ongoing-tournament {
        padding: 0.8rem !important;
    }
    
    .single-ongoing-tournament h4 {
        font-size: 1rem !important;
        margin-bottom: 0.6rem !important;
    }
}

@media (max-width: 480px) {
    .tournament-subtitle {
        font-size: 1rem !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
}

/* Page Sidebar Styling */
.page-sidebar {
    padding-left: 2rem;
}

.sidebar-widget {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #007cba;
}

.sidebar-widget .widget-title h3 {
    color: #007cba;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f8f9fa;
}

/* Latest Posts Widget */
.single-recent-post {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.single-recent-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.single-recent-post .post-thumb {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
}

.single-recent-post .post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.single-recent-post .post-thumb:hover img {
    transform: scale(1.1);
}

.single-recent-post .post-content {
    flex: 1;
}

.single-recent-post .post-title {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.single-recent-post .post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.single-recent-post .post-title a:hover {
    color: #007cba;
}

.single-recent-post .post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: #666;
}

.single-recent-post .post-meta i {
    margin-right: 0.3rem;
}

.single-recent-post .post-excerpt {
    font-size: 0.85rem;
    color: #777;
    line-height: 1.4;
}

/* Tournament Widget */
.single-tournament-widget {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.single-tournament-widget:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.single-tournament-widget .tournament-title {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.single-tournament-widget .tournament-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.single-tournament-widget .tournament-title a:hover {
    color: #007cba;
}

.single-tournament-widget .tournament-date,
.single-tournament-widget .tournament-location {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.3rem;
}

.single-tournament-widget .tournament-date i,
.single-tournament-widget .tournament-location i {
    margin-right: 0.5rem;
    color: #007cba;
}

/* View All Buttons */
.btn-view-all {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: #007cba;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .page-sidebar {
        padding-left: 0;
        margin-top: 2rem;
    }
    
    .sidebar-widget {
        padding: 1.25rem;
    }
    
    .single-recent-post {
        flex-direction: column;
        text-align: center;
    }
    
    .single-recent-post .post-thumb {
        align-self: center;
        width: 80px;
        height: 80px;
    }
}

/* Hero sekcija - uvek rastegni sliku na celu površinu */
.single-slider.bg_cover {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    min-height: 775px !important;
    height: 775px;
    position: relative;
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .single-slider.bg_cover {
        height: 600px;
        min-height: 600px !important;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .single-slider.bg_cover {
        height: 500px;
        min-height: 500px !important;
    }
}

@media (max-width: 767px) {
    .single-slider.bg_cover {
        height: auto;
        min-height: 400px !important;
    }
}

.single-slider.bg_cover::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1;
}

.single-slider .slider-content {
    position: relative;
    z-index: 2;
}

/* About sekcija - sakrij preliv slika iz kontejnera */
body .about-image .single-image {
    overflow: hidden !important;
}

/* About sekcija - kontra-rotacija za slike da poništi rotaciju kontejnera */
body .about-section .about-image .single-image img,
body .about-image .single-image img {
    -webkit-transform: rotate(-45deg) scale(1.42) !important;
    transform: rotate(-45deg) scale(1.42) !important;
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    z-index: 2 !important;
    border-radius: 30px !important;
    -webkit-box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.15) !important;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Responsive kontra-rotacije */
@media only screen and (min-width: 992px) and (max-width: 1199px) {
  body .about-image .single-image img {
    -webkit-transform: rotate(-45deg) scale(1.42) !important;
    transform: rotate(-45deg) scale(1.42) !important;
    border-radius: 30px !important;
    -webkit-box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.15) !important;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.15) !important;
  }
}

/* Category and Tag pages styling */
.current-category-info,
.current-tag-info {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    margin-bottom: 15px;
}

.current-category-info h5,
.current-tag-info h5 {
    color: #007bff;
    margin-bottom: 10px;
    font-weight: 600;
}

.current-category-info .post-count,
.current-tag-info .post-count {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 0;
    font-weight: 500;
}

.tags-items .current-tag a {
    background-color: #007bff;
    color: white !important;
    border-radius: 4px;
    padding: 5px 10px;
}

.no-posts-found {
    padding: 40px 20px;
}

.no-posts-found h3 {
    margin-bottom: 15px;
    color: #333;
}

.no-posts-found p {
    margin-bottom: 25px;
    color: #666;
}

@media (max-width: 767px) {
  body .about-image .single-image img {
    -webkit-transform: rotate(-45deg) scale(1.42) !important;
    transform: rotate(-45deg) scale(1.42) !important;
    border-radius: 30px !important;
    -webkit-box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.15) !important;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.15) !important;
  }
}

@media only screen and (min-width: 576px) and (max-width: 767px) {
  body .about-image .single-image img {
    -webkit-transform: rotate(-45deg) scale(1.42) !important;
    transform: rotate(-45deg) scale(1.42) !important;
    border-radius: 30px !important;
    -webkit-box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.15) !important;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.15) !important;
  }
}

/* Stil za naslov i podnaslov sa tamnom, transparentnom pozadinom */
.slider-content-2 .hero-text-wrap {
    background: rgba(0,0,0,0.55);
    display: inline-block;
    padding: 1.2em 2em;
    border-radius: 0.9em;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.10);
    margin-bottom: 1em;
}
.slider-content-2 .title,
.slider-content-2 .slider-subtitle {
    background: none;
    color: #fff;
    margin: 0;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
    display: block;
}
.slider-content-2 .slider-subtitle {
    font-size: 1.2em;
    font-weight: 400;
    margin-top: 0.5em;
}

/* Pomeri hero sliku na mobilnim uređajima malo na dole */
@media (max-width: 767px) {
    .single-slider.bg_cover {
        background-position: center 30%; /* pomeri fokus slike na dole, prilagodi procenat po potrebi */
    }
    .slider-content-2 .hero-text-wrap {
        padding: 1em 1em;
    }
}

/* ===== Hero – novi elementi (tagline, colored title, buttons, badge) ===== */

/* Tagline iznad naslova */
.hero-tagline {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #EAB830;
    margin-bottom: 1.1rem;
}
.hero-tagline-line {
    display: inline-block;
    width: 36px;
    height: 2px;
    background: #EAB830;
    flex-shrink: 0;
}

/* Naslov – formatiranje */
.slider-content-2 .title {
    font-size: 3rem;
    line-height: 1.18;
    margin-bottom: 1.1rem;
    color: #fff;
}

/* Zlatni deo naslova na novom redu */
.hero-title-colored {
    display: block;
    color: #EAB830;
}

/* Podnaslov */
.slider-content-2 .slider-subtitle {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.65;
    color: rgba(255,255,255,0.82);
    margin-top: 0;
    margin-bottom: 2rem;
    max-width: 420px;
}

/* Dugmad */
.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
    margin-top: 0.5rem;
}
.hero-btn-primary,
.hero-btn-secondary {
    display: inline-block;
    min-width: 200px;
    padding: 0 28px;
    height: 54px;
    line-height: 54px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 4px;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}
.hero-btn-primary {
    background: #EAB830;
    color: #07294D;
    border: 2px solid #EAB830;
}
.hero-btn-primary:hover {
    background: #d4a720;
    border-color: #d4a720;
    color: #07294D;
    text-decoration: none;
}
.hero-btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.55);
}
.hero-btn-secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.8);
    color: #fff;
    text-decoration: none;
}

/* Turnir badge – apsolutno pozicioniran u gornjem desnom uglu hero sekcije */
.hero-tournament-badge {
    position: absolute;
    top: 32px;
    right: 40px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(7, 41, 77, 0.72);
    border: 1px solid rgba(201, 168, 76, 0.5);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 30px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.badge-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #EAB830;
    flex-shrink: 0;
}

/* Responsive – hero novi elementi */
@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .slider-content-2 .title { font-size: 2.4rem; }
}
@media only screen and (min-width: 768px) and (max-width: 991px) {
    .slider-content-2 .title { font-size: 2rem; }
    .hero-tournament-badge { top: 20px; right: 20px; }
}
@media (max-width: 767px) {
    .slider-content-2 .title { font-size: 1.7rem; }
    .hero-tournament-badge { top: 14px; right: 14px; font-size: 0.75rem; padding: 6px 12px; }
    .hero-btn-primary,
    .hero-btn-secondary { width: 100%; min-width: unset; }
    .hero-buttons { width: 100%; }
}
/* ===== / Hero – novi elementi ===== */

/* Custom breadcrumb stilovi */
.breadcrumb-custom {
    text-align: center;
    color: #fff;
    font-size: 1.05em;
    margin-bottom: 1.5em;
}
.breadcrumb-custom a {
    color: #fff;
    text-decoration: underline;
    transition: color 0.2s;
}
.breadcrumb-custom a:hover {
    color: #ffd700;
}
.breadcrumb-custom .breadcrumb-sep {
    margin: 0 0.4em;
    color: #fff;
}
.breadcrumb-custom .breadcrumb-home {
    color: #fff;
    font-weight: bold;
}
.breadcrumb-custom i.fas.fa-home {
    margin-right: 0.3em;
}

/* Match Results - Winner Highlighting */
.match-player.winner {
    color: #27ae60;
    font-weight: bold;
}

.match-score .winner-score {
    color: #27ae60 !important;
    font-weight: bold;
}

/* Loser score - inherit text color (not blue) */
.match-score .loser-score {
    color: #333 !important;
    font-weight: normal;
}

/* Masters Groups Container */
.masters-groups-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

.masters-group-standings {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    width: 100%;
}

.masters-group-standings h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #007cba;
}

@media (max-width: 768px) {
    .masters-groups-container {
        gap: 1.5rem;
    }
}

/* Masters Rounds (Kola) */
.masters-rounds-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.masters-group-rounds {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.match-pairing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.pairing-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
}

.pairing-result-badge {
    background: #007cba;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Masters Match Players Display */
.match-players {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin: 1rem 0;
}

.match-player {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.match-player.winner .player-name {
    color: #28a745;
    font-weight: 700;
}

.match-player .player-name {
    font-size: 1rem;
    font-weight: 600;
}

.match-player .player-wins {
    font-size: 1.3rem;
    font-weight: 700;
    color: #007cba;
    min-width: 30px;
    text-align: center;
}

.match-vs {
    color: #999;
    font-weight: 600;
    font-size: 0.9rem;
}

.match-games {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 1.5rem;
}

.game-score-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.game-label {
    color: #666;
    font-weight: 600;
}

.game-score-row .score {
    font-weight: 700;
    min-width: 25px;
    text-align: center;
}

@media (max-width: 768px) {
    .match-games {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Masters Match Table */
.masters-match-table {
    margin-bottom: 1.5rem;
}

.masters-match-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.masters-match-table thead th {
    background: #f8f9fa;
    padding: 10px;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
}

.masters-match-table tbody td {
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
}

.masters-match-table tbody tr:last-child td {
    border-bottom: none;
}

.masters-match-table .winner-row {
    background: #f0f9ff;
}

.masters-match-table .winner-row td:first-child {
    color: #28a745;
    font-weight: 700;
}

@media (max-width: 768px) {
    .masters-match-table {
        overflow-x: auto;
    }
    
    .masters-match-table table {
        min-width: 600px;
    }
}

/* Masters Pairing Card Layout */
.masters-pairing-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.pairing-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 2px solid #ddd;
}

.player-name-left {
    text-align: right;
    font-weight: 600;
    font-size: 1rem;
}

.player-name-right {
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
}

.player-name-left.winner,
.player-name-right.winner {
    color: #28a745;
    font-weight: 700;
}

.pairing-score {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #007cba;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.2rem;
    min-width: 80px;
    justify-content: center;
}

.score-separator {
    color: white;
    font-weight: 700;
}

.pairing-games {
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
    max-width: 600px;
}

.game-row:last-child {
    border-bottom: none;
}

.game-label {
    font-weight: 600;
    color: #666;
    text-align: right;
}

.game-scores {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    min-width: 80px;
    justify-self: center;
}

.game-score {
    min-width: 30px;
    text-align: center;
}

.game-separator {
    color: #999;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .pairing-header {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }
    
    .player-name-left,
    .player-name-right {
        text-align: center;
    }
    
    .pairing-score {
        margin: 0 auto;
    }
    
    .game-row {
        grid-template-columns: 80px 1fr;
    }
}

/* ========================================
   EVENT SINGLE PAGE STYLES
   ======================================== */

/* Event Single Page Styling */
.event-single {
    padding: 2rem 0;
    background: #f5f7fa;
    min-height: calc(100vh - 80px);
}

/* Event Status Badge */
.event-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
}

.status-draft {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.status-open {
    background: rgba(40, 167, 69, 0.3);
    color: #28a745;
    border: 2px solid rgba(40, 167, 69, 0.5);
}

.status-closed {
    background: rgba(220, 53, 69, 0.3);
    color: #dc3545;
    border: 2px solid rgba(220, 53, 69, 0.5);
}

.status-in-progress {
    background: transparent;
    color: #28a745;
}

.status-completed {
    background: transparent;
    color: #6c757d;
}

/* Event Title & Meta */
.page-banner .banner-content .event-title,
.page-banner .banner-content .title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center !important;
    margin: 0 auto !important;
    width: 100%;
    display: block;
}

.event-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 1.1rem;
    text-align: center;
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Breadcrumb Styling */
.breadcrumb-custom {
    display: inline-block;
}

.breadcrumb-custom a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-custom a:hover {
    color: white;
}

.breadcrumb-sep {
    margin: 0 0.5rem;
    color: rgba(255,255,255,0.6);
}

/* ===================================================
   Single Event Banner
   Problem: .page-banner { background: #07294D } je tamno mornarsko i
   stvara vidljiv prsten ispod navigacije (17px). Gradijent je na
   unutrašnjem .page-banner-bg, ali ne pokriva celu sekciju.

   Rešenje: gradient prebačen CSS-om na .page-banner sekciju (!important
   overrideuje inline style na .page-banner-bg). Pokriva i 155px header
   offset zonu — bez tamnog proreza. Smanjujemo .banner-content padding
   sa 150px/140px na kompaktnih 20px/25px.
   =================================================== */

/* Gradient na sekciju = popunjava i 155px header offset zonu */
.single-bg_event .page-banner {
    background: linear-gradient(140deg, #0a1628 0%, #0e3460 55%, #005a87 100%) !important;
    height: auto !important;
}

/* .bg_cover klasa postavlja height: 100% što nateže baner na visinu viewporta.
   Poništavamo to i transparentišemo pozadinu (gradient dolazi od .page-banner). */
.single-bg_event .page-banner-bg {
    background: transparent !important;
    height: auto !important;
}

/* Na mobilnom uređaju header je kraći od padding-top sekcije (155-190px),
   pa postoji vidljiva zona iznad .page-banner-bg bez overlay-a (čisti gradijent)
   i zona sa overlay-om (malo tamniji). Overlay sakrivamo da baner bude ujednačen. */
.single-bg_event .page-banner-overlay {
    display: none !important;
}

/* Kalibrisan da sadržaj počne ispod loga/navigacije (~120px)
   uz kompaktniji donji prostor (50px vs originalnih 140px) */
.single-bg_event .banner-content {
    padding-top: 120px !important;
    padding-bottom: 50px !important;
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .single-bg_event .banner-content {
        padding-top: 100px !important;
        padding-bottom: 40px !important;
    }

    /* ===================================================
       Mobile Hero Compaction
       Learning templates and single tournament were inheriting the default
       page-banner + banner-content top spacing, which creates a visible empty
       strip before the hero content on smaller screens.
       =================================================== */
    @media (max-width: 768px) {
        body.page-template-page-learning .page-banner,
        body.page-template-page-learning-php .page-banner,
        body.page-template-page-learning-first .page-banner,
        body.page-template-page-learning-first-php .page-banner,
        body.single-bg_tournament .page-banner {
            position: relative !important;
            overflow: hidden !important;
            padding-top: 95px !important;
            background: linear-gradient(140deg, #0a1628 0%, #0e3460 55%, #005a87 100%) !important;
        }

        body.page-template-page-learning .page-banner::before,
        body.page-template-page-learning-php .page-banner::before,
        body.page-template-page-learning-first .page-banner::before,
        body.page-template-page-learning-first-php .page-banner::before,
        body.single-bg_tournament .page-banner::before {
            content: '';
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.2);
            z-index: 0;
        }

        body.page-template-page-learning .page-banner-bg,
        body.page-template-page-learning-php .page-banner-bg,
        body.page-template-page-learning-first .page-banner-bg,
        body.page-template-page-learning-first-php .page-banner-bg,
        body.single-bg_tournament .page-banner-bg {
            min-height: auto !important;
            height: auto !important;
            position: relative !important;
            z-index: 1 !important;
        }

        body.page-template-page-learning .banner-content,
        body.page-template-page-learning-php .banner-content,
        body.page-template-page-learning-first .banner-content,
        body.page-template-page-learning-first-php .banner-content,
        body.single-bg_tournament .banner-content {
            padding-top: 48px !important;
            padding-bottom: 42px !important;
        }
    }

    @media (max-width: 480px) {
        body.page-template-page-learning .page-banner,
        body.page-template-page-learning-php .page-banner,
        body.page-template-page-learning-first .page-banner,
        body.page-template-page-learning-first-php .page-banner,
        body.single-bg_tournament .page-banner {
            padding-top: 88px !important;
        }

        body.page-template-page-learning .banner-content,
        body.page-template-page-learning-php .banner-content,
        body.page-template-page-learning-first .banner-content,
        body.page-template-page-learning-first-php .banner-content,
        body.single-bg_tournament .banner-content {
            padding-top: 36px !important;
            padding-bottom: 34px !important;
        }
    }
}

    @media (max-width: 768px) {
        body.page-template-page-learning .page-banner-overlay,
        body.page-template-page-learning-php .page-banner-overlay,
        body.page-template-page-learning-first .page-banner-overlay,
        body.page-template-page-learning-first-php .page-banner-overlay,
        body.single-bg_tournament .page-banner-overlay {
            display: none !important;
        }
    }

@media (max-width: 767px) {
    .single-bg_event .banner-content {
        padding-top: 80px !important;
        padding-bottom: 30px !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .single-bg_event .event-meta {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }

    .single-bg_event .breadcrumb-custom {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        text-align: center;
    }
}

/* Tabs Navigation */
.event-tabs {
    background: white;
    border-radius: 15px;
    padding: 0;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.event-tabs-nav-wrapper {
    display: flex;
    align-items: stretch;
}

.tabs-scroll-arrow {
    display: none; /* desktop: always hidden */
}

.event-tabs-nav {
    display: flex;
    flex: 1;
    border-bottom: 2px solid #e0e0e0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.event-tabs-nav::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.event-tab-btn {
    flex: 1;
    min-width: 120px;
    padding: 1.2rem 1.5rem;
    background: white;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.event-tab-btn:hover {
    background: #f8f9fa;
    color: #007cba;
}

.event-tab-btn.active {
    color: #007cba;
    border-bottom-color: #007cba;
    background: #f8f9fa;
}

.event-tab-content {
    padding: 2rem;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.event-players-search {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 14px;
    margin-bottom: 18px;
    padding: 18px;
    background: linear-gradient(135deg, #f6fbff 0%, #eef6fb 100%);
    border: 1px solid #d7e8f4;
    border-radius: 12px;
}

.event-players-search-field {
    flex: 1 1 320px;
    max-width: 520px;
}

.event-players-search-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #0e3460;
}

.event-players-search-field input {
    width: 100%;
    min-height: 46px;
    padding: 0.8rem 0.95rem;
    border: 1px solid #c6d9e6;
    border-radius: 10px;
    background: #fff;
    color: #1b1b1b;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.event-players-search-field input:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.14);
    outline: none;
}

.event-players-search-status {
    margin-left: auto;
    font-weight: 600;
    color: #0e3460;
    white-space: nowrap;
}

/* Standings Table */
.standings-table {
    width: 100%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.standings-table table {
    width: 100%;
    border-collapse: collapse;
}

.standings-table thead {
    background: #007cba;
    color: white;
}

.standings-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.standings-table th.text-center {
    text-align: center;
}

.standings-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.2s ease;
}

.standings-table tbody tr:hover {
    background: #f8f9fa;
}

.standings-table tbody tr.eliminated-player {
    opacity: 0.5;
    background: #f5f5f5;
}

.standings-table tbody tr.eliminated-player td {
    text-decoration: line-through;
    color: #999;
}

.standings-table td {
    padding: 1rem;
    font-size: 0.95rem;
}

.standings-table td.text-center {
    text-align: center;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1rem;
}

@media (max-width: 782px) {
    .event-players-search {
        padding: 14px;
        gap: 12px;
    }

    .event-players-search-field,
    .event-players-search-status {
        flex: 1 1 100%;
        width: 100%;
    }

    .event-players-search-status {
        margin-left: 0;
    }

    .rank-badge {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .rank-badge {
        width: 26px;
        height: 26px;
        font-size: 0.85rem;
    }
}

.rank-1 { background: #ffd700; color: #333; }
.rank-2 { background: #c0c0c0; color: #333; }
.rank-3 { background: #cd7f32; color: white; }
.rank-default { background: #f0f0f0; color: #666; }

.player-name {
    font-weight: 600;
    color: #333;
}

.player-number {
    color: #999;
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

.eliminated-badge {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.2rem 0.6rem;
    background: #dc3545;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 3px;
}

.match-points {
    font-size: 1.3rem;
    font-weight: 700;
    color: #007cba;
}

.record-stats {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.stat-win { color: #28a745; font-weight: 600; }
.stat-loss { color: #dc3545; font-weight: 600; }
.stat-bye { color: #ffc107; font-weight: 600; }

/* Rounds Section */
.rounds-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.round-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.round-card.collapsible .round-header,
.round-section.collapsible .round-header {
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
    padding: 0.5rem;
    margin: -0.5rem;
    margin-bottom: 1rem;
    border-radius: 10px;
}

.round-card.collapsible .round-header:hover,
.round-section.collapsible .round-header:hover {
    background: #f8f9fa;
}

.round-collapse-icon,
.collapse-icon {
    font-size: 1rem;
    transition: transform 0.3s;
    display: inline-block;
    cursor: pointer;
}

.round-card.collapsed .round-collapse-icon,
.round-card.collapsed .collapse-icon,
.round-section.collapsed .collapse-icon {
    transform: rotate(-90deg);
}

.round-card.collapsed .round-content,
.round-section.collapsed .round-content {
    display: none !important;
}

.round-content {
    padding: 20px;
}

.round-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.round-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.player-record {
    font-size: 0.8rem;
    color: #999;
    font-weight: 400;
}

.round-status-badge,
.round-status {
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.round-status-pending,
.round-status.status-pending { 
    background: #e9ecef; 
    color: #495057;
    border: 1px solid #dee2e6;
}

.round-status-in-progress,
.round-status.status-in-progress { 
    background: #d1ecf1; 
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.round-status-completed,
.round-status.status-completed { 
    background: #d4edda; 
    color: #155724;
    border: 1px solid #c3e6cb;
}

.next-round-notice {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    animation: slideIn 0.5s ease-out;
}

.next-round-notice .notice-icon {
    font-size: 3rem;
    animation: pulse 2s ease-in-out infinite;
}

.next-round-notice .notice-content {
    color: white;
}

.next-round-notice .notice-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.next-round-notice .notice-content p {
    margin: 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.tournament-completed-notice {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #8B4513 0%, #D4AF37 100%);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    animation: slideIn 0.5s ease-out;
}

.tournament-completed-notice .notice-icon {
    font-size: 3rem;
    animation: bounce 1s ease-in-out infinite;
}

.tournament-completed-notice .notice-content {
    color: white;
}

.tournament-completed-notice .notice-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.tournament-completed-notice .notice-content p {
    margin: 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Swiss Phase Completed Notice (Two-Stage Tournaments) */
.swiss-phase-completed-notice {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
    animation: slideIn 0.5s ease-out;
}

.swiss-phase-completed-notice .notice-icon {
    font-size: 3rem;
    animation: pulse 2s ease-in-out infinite;
}

.swiss-phase-completed-notice .notice-content {
    color: white;
}

.swiss-phase-completed-notice .notice-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.swiss-phase-completed-notice .notice-content p {
    margin: 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Cup Bracket Refresh Spinner */
@keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.refresh-spinner {
    animation: spin 1s linear infinite !important;
}

.cup-live-indicator {
    animation: pulse 2s infinite !important;
}

/* Toast notification animations */
@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Phase banner fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.matches-grid {
    display: grid;
    gap: 1rem;
}

.match-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #007cba;
}

.match-table {
    font-size: 0.9rem;
    color: #999;
    font-weight: 600;
    min-width: 60px;
}

.match-players {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.5rem;
}

.match-player {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.match-player:first-child {
    align-items: flex-end;
    text-align: right;
    justify-self: end;
}

.match-player:last-child {
    align-items: flex-start;
    text-align: left;
    justify-self: start;
}

.player-rank {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.player-name {
    font-weight: 600;
    color: #333;
}

.match-player.winner .player-name {
    color: #28a745;
    font-weight: 700;
}

.match-score {
    font-size: 1.5rem;
    font-weight: 700;
    color: #007cba;
    text-align: center;
    white-space: nowrap;
}

.match-vs {
    color: #999;
    font-weight: 600;
    text-align: center;
}

.match-bye {
    background: #fffbcc;
    border-left-color: #ffc107;
}

/* Info Cards */
.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
}

.info-card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.info-card-label {
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.info-card-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.empty-state-text {
    color: #666;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .page-banner .banner-content .event-title,
    .page-banner .banner-content .title {
        font-size: 2rem !important;
        line-height: 1.3;
        padding: 0 1rem;
        text-align: center !important;
    }
    
    .event-meta {
        font-size: 0.95rem;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .event-status-badge {
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
    }
    
    .event-tabs-nav {
        flex-wrap: nowrap;
    }

    .tabs-scroll-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 28px;
        background: white;
        border: none;
        border-bottom: 2px solid #e0e0e0;
        font-size: 1.6rem;
        line-height: 1;
        color: #007cba;
        cursor: pointer;
        padding: 0;
        transition: opacity 0.2s ease, color 0.2s ease;
    }

    .tabs-scroll-arrow:active {
        color: #005a87;
    }

    .tabs-scroll-arrow.tabs-arrow-hidden {
        opacity: 0;
        pointer-events: none;
    }

    .tabs-scroll-arrow--left {
        box-shadow: 3px 0 6px -2px rgba(0,0,0,0.12);
    }

    .tabs-scroll-arrow--right {
        box-shadow: -3px 0 6px -2px rgba(0,0,0,0.12);
    }

    .event-tab-btn {
        font-size: 0.9rem;
        padding: 1rem 0.75rem;
    }
    
    .event-tab-content {
        padding: 1rem;
    }
    
    .standings-table {
        overflow-x: auto;
    }
    
    .match-card {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .match-players {
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
    }
    
    .match-score {
        font-size: 1.2rem;
    }
    
    .player-rank {
        font-size: 0.75rem;
    }
    
    .player-name {
        font-size: 0.95rem;
    }
    
    .player-record {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .page-banner .banner-content .event-title,
    .page-banner .banner-content .title {
        font-size: 1.6rem !important;
        line-height: 1.4;
        text-align: center !important;
    }
    
    .event-meta {
        font-size: 0.9rem;
        gap: 0.8rem;
    }
    
    .event-status-badge {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }
    
    .match-players {
        grid-template-columns: 1fr auto 1fr;
        gap: 0.5rem;
    }
    
    .match-player {
        gap: 0.2rem;
    }
    
    .match-score {
        font-size: 1.1rem;
    }
    
    .player-rank {
        font-size: 0.7rem;
    }
    
    .player-name {
        font-size: 0.85rem;
    }
    
    .player-record {
        font-size: 0.65rem;
    }
    
    .match-table {
        font-size: 0.75rem;
    }
}

/* ========================================
   MASTERS TOURNAMENT ROUNDS STYLES
   ======================================== */

/* Masters Group Cards */
.masters-group-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
    overflow: hidden;
}

.masters-group-card .group-header {
    background: linear-gradient(135deg, #007cba 0%, #005a8b 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-bottom: 3px solid #004d73;
}

.masters-group-card .group-header h3 {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.masters-group-card .group-format-info {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    margin: 0;
}

.masters-group-card .group-content {
    padding: 2rem;
}

/* Masters Round Cards within Groups */
.masters-group-card .round-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border-left: 4px solid #007cba;
}

.masters-group-card .round-card .round-header {
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
    padding: 0.5rem;
    margin: -0.5rem -0.5rem 1rem -0.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 1rem;
}

.masters-group-card .round-card .round-header:hover {
    background: rgba(0,124,186,0.05);
}

.masters-group-card .round-card .round-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    flex: 1;
}

.masters-group-card .round-card.collapsed .collapse-icon {
    transform: rotate(-90deg);
}

.masters-group-card .round-card.collapsed .round-content {
    display: none;
}

/* Round Progress Info */
.round-progress {
    background: #fff;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

/* Match Cards in Masters Rounds */
.round-matches .match-card {
    background: white;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    overflow: hidden;
}

/* Masters match table */
.masters-match-table {
    width: 100%;
    border-collapse: collapse;
}

.masters-match-table thead th {

    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.masters-match-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.masters-match-table tbody tr:last-child {
    border-bottom: none;
}

.masters-match-table tbody tr.winner-row {
    font-weight: 700;
}

/* Mobile responsive for Masters match table */
@media (max-width: 768px) {
    .masters-match-table {
        font-size: 0.85rem;
        border-radius: 6px !important;
    }
    
    .masters-match-table thead th {
        padding: 0.5rem 0.3rem !important;
        font-size: 0.7rem !important;
    }
    
    .masters-match-table tbody td {
        padding: 0.6rem 0.3rem !important;
        font-size: 0.95rem !important;
    }
    
    .masters-match-table tbody td:first-child {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        font-size: 0.9rem !important;
    }
    
    /* Reduce badge size on mobile */
    .masters-match-table tbody td span[style*="min-width"] {
        min-width: 32px !important;
        height: 32px !important;
        font-size: 1rem !important;
        padding: 0 10px !important;
    }
}

@media (max-width: 480px) {
    .masters-match-table {
        font-size: 0.8rem;
    }
    
    .masters-match-table thead th {
        padding: 0.4rem 0.2rem !important;
        font-size: 0.65rem !important;
    }
    
    .masters-match-table tbody td {
        padding: 0.5rem 0.2rem !important;
        font-size: 0.85rem !important;
    }
    
    .masters-match-table tbody td:first-child {
        padding-left: 0.4rem !important;
        padding-right: 0.3rem !important;
        font-size: 0.8rem !important;
    }
    
    .masters-match-table tbody td span[style*="min-width"] {
        min-width: 28px !important;
        height: 28px !important;
        font-size: 0.9rem !important;
        padding: 0 8px !important;
    }
}

.round-matches .match-card .match-header {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

/* Legacy support - old player list layout */
.round-matches .match-card .match-players-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.round-matches .match-card .match-players-list .player-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.round-matches .match-card .match-players-list .player-row:hover {
    background: #e9ecef;
}

.round-matches .match-card .match-players-list .player-row.winner {
    background: #d4edda;
    border-left: 4px solid #28a745;
}

.round-matches .match-card .match-players-list .player-row.winner:hover {
    background: #c3e6cb;
}

.round-matches .match-card .match-players-list .player-name {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
}

.round-matches .match-card .match-players-list .player-row.winner .player-name {
    color: #28a745;
    font-weight: 700;
}

.round-matches .match-card .match-players-list .player-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #6c757d;
    color: white;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1.1rem;
}

.round-matches .match-card .match-players-list .player-row.winner .player-score {
    background: #28a745;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

/* Legacy support for old layout */
.round-matches .match-card .match-players {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.round-matches .match-card .match-players .player1,
.round-matches .match-card .match-players .player2 {
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.round-matches .match-card .match-players .player1.winner,
.round-matches .match-card .match-players .player2.winner {
    color: #28a745;
}

.round-matches .match-card .match-players .score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #999;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
}

.round-matches .match-card .match-players .player1.winner .score,
.round-matches .match-card .match-players .player2.winner .score {
    background: #28a745;
}

.round-matches .match-card .match-players .vs {
    color: #999;
    font-weight: 600;
    font-size: 0.85rem;
}

.round-matches .match-card .match-result {
    font-size: 0.9rem;
    color: #666;
}

.round-matches .match-card .match-result .winner-label {
    margin-right: 0.5rem;
}

.round-matches .match-card .match-result strong {
    color: #28a745;
}

/* Match Games (Individual Game Results) */
.round-matches .match-card .match-games {
    display: flex;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
    flex-wrap: wrap;
}

.round-matches .match-card .match-games .game-result {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.5rem 0.8rem;
    background: #f8f9fa;
    border-radius: 6px;
    min-width: 120px;
}

.round-matches .match-card .match-games .game-number {
    font-size: 0.75rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
}

.round-matches .match-card .match-games .game-score {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
}

.round-matches .match-card .match-games .game-winner {
    font-size: 0.8rem;
    color: #28a745;
    font-weight: 600;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #999;
}

.empty-state p {
    font-size: 1rem;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .masters-group-card .group-header {
        padding: 1rem 1.5rem;
    }
    
    .masters-group-card .group-header h3 {
        font-size: 1.5rem;
    }
    
    .masters-group-card .group-content {
        padding: 1.5rem;
    }
    
    .masters-group-card .round-card {
        padding: 1rem;
    }
    
    .masters-group-card .round-card .round-header h3 {
        font-size: 1.1rem;
    }
    
    /* Masters Rounds (Kola) - reduce padding on mobile */
    .masters-round.round-card {
        padding: 0.75rem !important;
    }
    
    .masters-group-rounds {
        padding: 0 !important;
        box-shadow: none !important;
    }
    
    .masters-round .round-header {
        padding-bottom: 0.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    .masters-round .round-content {
        padding: 0.5rem !important;
    }
    
    .masters-round .match-card.hierarchical-match {
        padding: 0.75rem !important;
        margin-bottom: 1rem !important;
    }
    
    .round-matches .match-card {
        padding: 1rem;
    }
    
    .round-matches .match-card .match-players {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .round-matches .match-card .match-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .round-matches .match-card .match-games {
        gap: 1rem;
    }
}

/* Knockout Bracket Styles */
.knockout-container {
    margin-top: 2rem;
}

.bracket-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.bracket-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #007cba;
}

.bracket-grid {
    display: flex;
    gap: 3rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.bracket-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.bracket-round h4.round-label {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bracket-match {
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    min-width: 200px;
}

.bracket-match.empty-match {
    border-style: dashed;
    opacity: 0.5;
    text-align: center;
    color: #999;
}

.bracket-match .match-label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.bracket-match .match-status {
    display: inline-block;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 3px;
    margin-bottom: 0.5rem;
}

.bracket-match .match-status.completed {
    background: #d4edda;
    color: #155724;
}

.bracket-match .match-status.in-progress {
    background: #fff3cd;
    color: #856404;
}

.bracket-match .match-status.pending {
    background: #e0e0e0;
    color: #666;
}

.bracket-match .match-players {
    margin: 0.5rem 0;
}

.bracket-match .match-player {
    padding: 0.5rem;
    margin: 0.25rem 0;
    border-left: 3px solid transparent;
}

.bracket-match .match-player {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bracket-match .match-player .score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #999;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.95rem;
    margin-left: 0.5rem;
}

.bracket-match .match-player.winner {
    background: #d4edda;
    border-left-color: #28a745;
    font-weight: 700;
}

.bracket-match .match-player.winner .score {
    background: #28a745;
}

.bracket-match .match-score {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #007cba;
    margin-top: 0.5rem;
}

/* ===== Accessibility Improvements ===== */
/* Poboljšan kontrast za zeleno dugme (WCAG AA compliant) */
.main-btn.main-btn-2 {
    background-color: #067A3E !important; /* Tamnija zelena - kontrast ratio 4.54:1 */
}

.main-btn.main-btn-2:hover {
    background-color: #056432 !important; /* Još tamnija na hover */
}
.page-content .wp-block-heading{
margin-top: 40px;
}
.page-content a {
    color: #007cba;
}
/* WordPress Block Lists - lepše formatiranje */
.page-content ul.wp-block-list,
.page-content ol.wp-block-list {
    margin: 1.5em 0;
    padding-left: 2em;
    line-height: 1.8;
}

.page-content ul.wp-block-list {
    list-style-type: disc;
}

.page-content ul.wp-block-list li {
    margin-bottom: 0.8em;
}

/* Nested liste (podliste) */
.page-content ul.wp-block-list ul.wp-block-list {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    list-style-type: circle;
}

/* Linkovi u listama - podvučeni */
.page-content ul.wp-block-list a,
.page-content ol.wp-block-list a {
    text-decoration: underline;
    color: #007cba;
}

.page-content ul.wp-block-list a:hover,
.page-content ol.wp-block-list a:hover {
    color: #005a8b;
    text-decoration: underline;
}
/* ===== Accessibility Fix: aria-hidden sa fokusabilnim elementima ===== */
/* Slick slider accessibility - prevent focus on hidden slides */
.slick-slide[aria-hidden="true"] a,
.slick-slide[aria-hidden="true"] button,
.slick-slide[aria-hidden="true"] input,
.slick-slide[aria-hidden="true"] select,
.slick-slide[aria-hidden="true"] textarea,
.slick-slide[aria-hidden="true"] [tabindex="0"] {
    pointer-events: none !important;
    visibility: hidden;
}

/* Osiguraj da aktivni slide ima fokus */
.slick-slide[aria-hidden="false"] a,
.slick-slide[aria-hidden="false"] button,
.slick-slide[aria-hidden="false"] input,
.slick-slide[aria-hidden="false"] select,
.slick-slide[aria-hidden="false"] textarea {
    pointer-events: auto !important;
    visibility: visible;
}

/* ===== Contrast Fix: Top Courses zelene kartice ===== */
/* Zameni svetlo zelenu (#0C8B51) sa tamnijom (#067A3E) za WCAG AA kontrast */
.courses-wrapper .courses-col:nth-child(8n+2) .single-courses-2,
.courses-wrapper .courses-col:nth-child(8n+2) .single-courses {
    background-color: #067A3E !important;
}

.courses-wrapper .courses-col:nth-child(8n+2) .single-courses-2 .courses-content .duration-rating,
.courses-wrapper .courses-col:nth-child(8n+2) .single-courses .courses-content .duration-rating {
    background-color: #067A3E !important;
}

/* Courses menu hover/active */
.courses-menu .menu-items li:hover,
.courses-menu .menu-items li.active {
    background-color: #067A3E !important;
    border-color: #067A3E !important;
}

/* ===== Contrast Fix: Sve course kartice sa lo�im kontrastom ===== */

/* 8n+3: Plava - zatamniti za bolji kontrast */
.courses-wrapper .courses-col:nth-child(8n+3) .single-courses-2,
.courses-wrapper .courses-col:nth-child(8n+3) .single-courses {
    background-color: #1E5FA8 !important; /* Tamnija plava */
}
.courses-wrapper .courses-col:nth-child(8n+3) .single-courses-2 .courses-content .duration-rating,
.courses-wrapper .courses-col:nth-child(8n+3) .single-courses .courses-content .duration-rating {
    background-color: #1E5FA8 !important;
}

/* 8n+4: Tirkizna - zatamniti */
.courses-wrapper .courses-col:nth-child(8n+4) .single-courses-2,
.courses-wrapper .courses-col:nth-child(8n+4) .single-courses {
    background-color: #1A8A7C !important; /* Tamnija tirkizna */
}
.courses-wrapper .courses-col:nth-child(8n+4) .single-courses-2 .courses-content .duration-rating,
.courses-wrapper .courses-col:nth-child(8n+4) .single-courses .courses-content .duration-rating {
    background-color: #1A8A7C !important;
}

/* 8n+5: Svetlo tirkizna - zatamniti */
.courses-wrapper .courses-col:nth-child(8n+5) .single-courses-2,
.courses-wrapper .courses-col:nth-child(8n+5) .single-courses {
    background-color: #1292A8 !important; /* Tamnija cyan */
}
.courses-wrapper .courses-col:nth-child(8n+5) .single-courses-2 .courses-content .duration-rating,
.courses-wrapper .courses-col:nth-child(8n+5) .single-courses .courses-content .duration-rating {
    background-color: #1292A8 !important;
}

/* 8n+6: Roze - zatamniti */
.courses-wrapper .courses-col:nth-child(8n+6) .single-courses-2,
.courses-wrapper .courses-col:nth-child(8n+6) .single-courses {
    background-color: #B53582 !important; /* Tamnija roze */
}
.courses-wrapper .courses-col:nth-child(8n+6) .single-courses-2 .courses-content .duration-rating,
.courses-wrapper .courses-col:nth-child(8n+6) .single-courses .courses-content .duration-rating {
    background-color: #B53582 !important;
}

/* 8n+7: �uta - MORA biti tamnija, �uta je najgora za kontrast */
.courses-wrapper .courses-col:nth-child(8n+7) .single-courses-2,
.courses-wrapper .courses-col:nth-child(8n+7) .single-courses {
    background-color: #B8910F !important; /* Tamno zlatna umesto svetlo �ute */
}
.courses-wrapper .courses-col:nth-child(8n+7) .single-courses-2 .courses-content .duration-rating,
.courses-wrapper .courses-col:nth-child(8n+7) .single-courses .courses-content .duration-rating {
    background-color: #B8910F !important;
}

/* 8n+8: Ljubicasta - malo zatamniti */
.courses-wrapper .courses-col:nth-child(8n+8) .single-courses-2,
.courses-wrapper .courses-col:nth-child(8n+8) .single-courses {
    background-color: #5C2E5D !important; /* Tamnija ljubicasta */
}
.courses-wrapper .courses-col:nth-child(8n+8) .single-courses-2 .courses-content .duration-rating,
.courses-wrapper .courses-col:nth-child(8n+8) .single-courses .courses-content .duration-rating {
    background-color: #5C2E5D !important;
}

/* ===== Logo Responsive Fix ===== */
/* Ukloni fiksnu veličinu sa logo slike i omogući responsive scaling */
.custom-logo-link img,
.site-logo img {
    width: auto !important;
    height: auto !important;
    max-width: 195px;
    max-height: 195px;
}

/* Za manje ekrane */
@media (max-width: 991px) {
    .custom-logo-link img,
    .site-logo img {
        max-width: 130px;
        max-height: 130px;
    }
}
