/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
    margin-top: calc(var(--header-height) * -1);
    /* Pull behind header */
    padding-top: var(--header-height);
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transform: scale(1.1);
    /* Slight Zoom */
    filter: brightness(0.8) contrast(1.1);
}

/* Glassy Gradient Overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(12, 36, 97, 0.2) 0%, rgba(12, 36, 97, 0.6) 80%);
    backdrop-filter: blur(2px);
    z-index: -1;
}

.hero-content {
    text-align: center;
    z-index: 1;
    position: relative;
    max-width: 900px;
    padding: 0 20px;
}

.hero-surtitle {
    display: inline-block;
    color: var(--c-accent);
    font-family: var(--f-eng);
    letter-spacing: 0.3em;
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-title {
    font-family: var(--f-serif);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 30px;
    font-weight: 700;
}

/* Responsive Font Sizes */
@media (min-width: 768px) {
    .hero-title {
        font-size: 6rem;
    }

    .hero-title-lg {
        font-size: 8rem;
    }
}

.hero-desc {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 500;
    margin-top: 20px;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Section Common */
.section-py {
    padding: 100px 0;
}

.sec-header {
    margin-bottom: 60px;
    text-align: center;
    position: relative;
}

/* Decorative Line for Headers */
.sec-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--c-accent);
    margin: 20px auto 0;
    border-radius: 3px;
}

.sec-title-eng {
    font-family: var(--f-eng);
    font-size: 3.5rem;
    color: var(--c-primary-dark);
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.sec-subtitle {
    color: #666;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

/* Tournament Grid - Glass Cards */
.tour-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* Replacing .card-note with new Glass Card Style - Compact Version */
.card-note {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.card-note:hover {
    transform: translateY(-8px) scale(1.01);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 15px 40px rgba(31, 38, 135, 0.15);
    border-color: #fff;
}

/* Ink Splash Decoration on Hover (Pseudo) */
.card-note::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(30, 55, 153, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    transition: transform 0.5s ease;
}

.card-note:hover::before {
    transform: scale(1.5);
}

.card-note h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--c-primary-dark);
    font-weight: 700;
    font-family: var(--f-sans);
    line-height: 1.4;
}

.card-note-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.rule-icons {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card-note-action {
    margin-top: 25px;
    text-align: right;
}

/* Mobile Responsive - Compact Card Display */
@media (max-width: 768px) {
    .tour-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .card-note {
        padding: 15px;
        border-radius: 12px;
    }

    .card-note h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .card-note-content>div {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }

    .rule-icons {
        margin-top: 10px;
        gap: 6px;
    }

    .rule-icons img {
        width: 24px !important;
        height: 24px !important;
    }

    .card-note-action {
        margin-top: 15px;
    }

    .btn-sm {
        font-size: 0.8rem;
        padding: 5px 14px;
    }
}

/* Timeline - Glass Nodes */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: rgba(30, 55, 153, 0.1);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 28px;
    width: 16px;
    height: 16px;
    background: #fff;
    border: 4px solid var(--c-primary);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(30, 55, 153, 0.1);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -8px;
}

/* Timeline Content Box (Glass) */
.timeline-content {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 20px;
    border-radius: 12px;
    transition: transform 0.3s;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.9);
}

.timeline-date {
    font-family: var(--f-eng);
    color: var(--c-primary);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 5px;
    display: block;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        text-align: left !important;
        padding-left: 60px;
    }

    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 12px;
        right: auto;
        top: 28px;
    }
}

/* News List on Index - Card Grid Design */
#newsList {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

@media (max-width: 768px) {
    #newsList {
        grid-template-columns: 1fr;
    }
}

.news-item {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--c-primary) 0%, var(--c-primary-light) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 35px rgba(30, 55, 153, 0.15);
    border-color: #fff;
}

.news-item:hover::before {
    opacity: 1;
}

.news-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.news-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.news-date {
    font-family: var(--f-eng);
    color: #999;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.news-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--c-primary-dark);
    line-height: 1.6;
    margin: 0;
    font-family: var(--f-sans);
}

/* Scroll Trigger */
.js-scroll-trigger {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.js-scroll-trigger.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Floating Entry Button Styles - Keeping logic,/* Floating Entry Button - Redesigned */
.floating-entry-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: none;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.floating-entry-btn.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.floating-entry-container {
    position: relative;
    width: 320px;
    max-width: calc(100vw - 40px);
}

.floating-entry-cards {
    position: relative;
    width: 100%;
}

.floating-entry-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.8);
    padding: 20px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: none;
    opacity: 0;
    transform: translateX(20px);
}

.floating-entry-card.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.floating-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.floating-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-counter {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--c-primary);
    background: rgba(30, 55, 153, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
}

.floating-entry-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

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

    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

.floating-minimize-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #999;
    transition: all 0.2s;
}

.floating-minimize-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.floating-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #999;
    transition: all 0.2s;
}

.floating-close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
    transform: rotate(90deg);
}

.floating-entry-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--c-primary-dark);
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.floating-entry-date {
    font-size: 0.85rem;
    color: #666;
    margin: 0 0 16px 0;
}

.floating-entry-action {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s;
}

.floating-entry-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Indicators for multiple tournaments */
.floating-entry-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.indicator-dot.active {
    background: var(--c-primary);
    width: 24px;
    border-radius: 4px;
}

.indicator-dot:hover {
    background: rgba(0, 0, 0, 0.4);
}

/* Restore Button (Minimized State) */
.floating-restore-btn {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 700;
    color: var(--c-primary);
}

.floating-restore-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.restore-icon {
    font-size: 1.1rem;
}

.restore-text {
    font-size: 0.9rem;
}

/* Minimized State */
.floating-entry-btn.minimized .floating-entry-container {
    display: none;
}

.floating-entry-btn.minimized .floating-restore-btn {
    display: flex;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .floating-entry-btn {
        bottom: 15px;
        right: 15px;
        left: 15px;
        display: flex;
        justify-content: center;
    }

    .floating-entry-container {
        width: 100%;
        max-width: 100%;
    }

    .floating-entry-card {
        padding: 16px;
    }

    .floating-entry-title {
        font-size: 1rem;
    }

    .card-counter {
        font-size: 0.7rem;
        padding: 3px 8px;
    }

    .floating-restore-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}