/* General Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #222;
}

/* Navigation */
.navbar {
    height: 60px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 100;
    background: linear-gradient(90deg,
            rgba(0, 0, 0, 0) 40%,
            rgba(14, 14, 14, 0.6) 60%,
            #222222);
}

.logo-container {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}

.logo {
    color: rgba(0, 0, 0, 0.4);
    font-weight: bold;
    font-size: clamp(3rem, 11vw, 18.1rem);
    -webkit-text-stroke: 6px rgb(255, 255, 255);
    text-shadow: 12px 12px 14px rgba(0, 0, 0, 0.4);
}

.logo-text {
    color: white;
    font-weight: bold;
    font-size: clamp(1.2rem, 4vw, 3.4rem);
    text-transform: uppercase;
}

.nav-links {
    scroll-behavior: smooth;
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-right: 30px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ffd700;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: 0.3s;
}

/* Events Container */
.events-container {
    display: flex;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.event-col {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 16.6vh;
    align-items: center;
    text-align: center;
    color: white;
    transition: flex 0.5s ease, filter 0.3s ease;
    cursor: pointer;
    transform: skewX(-10deg);
    margin: 0 -1px;
    filter: brightness(0.8);
    overflow: hidden;
}

.event-col:last-child {
    border-right: none;
}

.event-col:first-child {
    border-left: none;
}

.event-col::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 140%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: skewX(10deg) scale(1.2);
    z-index: 0;
}

.event-col:hover {
    flex: 2.8;
    filter: brightness(1.1);
    z-index: 10;
}

.event-col:hover::before {
    background: rgba(0, 0, 0, 0.3);
}

.content {
    position: relative;
    z-index: 2;
    padding: 30px;
    min-width: 550px;
    transform: skewX(10deg);
}

h2 {
    font-size: 2vw;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-style: italic;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

p.date {
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    font-weight: bold;
    color: #ffd700;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.98);
}

.btn {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 25px;
    background: white;
    color: #111;
    text-decoration: none;
    font-weight: 900;
    text-transform: uppercase;
    transform: skewX(-10deg);
    transition: transform 0.3s, background 0.3s;
}

.btn span {
    display: inline-block;
    transform: skewX(10deg);
}

.btn:hover {
    background: #ffd700;
    transform: skewX(-10deg) translateY(-3px);
}

.btn--disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.btn--disabled:hover {
    background: white;
    transform: skewX(-10deg);
}

/* History Section */
.history-grid {
    padding: 0;
}

.history-card {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.5)), url('ekut.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 80px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.history-card .logo-history {
    max-width: 140px;
    height: auto;
}

.history-card p {
    font-size: clamp(1rem, 2vw, 1.4rem);
    line-height: 1.6;
    max-width: 800px;
    text-align: left;
    margin: 0;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Combined History Table */
.full-width {
    width: 100% !important;
    max-width: none !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
}

.table-container {
    width: 95%;
    margin: 20px auto;
    overflow-x: auto;
    border-radius: 8px;
}

#combinedTable {
    width: 100%;
    border-collapse: collapse;
    color: #ddd;
    background: #1a1a1a;
    border: 1px solid #333;
    min-width: 800px;
    font-size: 0.95rem;
}

#combinedTable th {
    padding: 20px;
    text-align: left;
    background-color: #323232;
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #ffd700;
}

#combinedTable td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #333;
    vertical-align: middle;
    font-size: 1.2rem;
    line-height: 1.6;
}

#combinedTable>tbody>tr:nth-child(even) {
    background-color: #222;
}

#combinedTable>tbody>tr:hover {
    background-color: #2a2a2a;
    transition: background 0.2s ease;
}

#combinedTable a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}

#combinedTable a:hover {
    color: #ffd700;
    border-bottom: 1px solid #ffd700;
}

#combinedTable td:nth-child(1) {
    font-weight: bold;
    text-align: left;
    vertical-align: middle;
    color: #ffd700;
}

#combinedTable ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#combinedTable ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

#combinedTable ul li::before {
    content: '➤';
    position: absolute;
    left: 0;
    color: #ffd700;
    top: 2px;
}

.winner-table {
    width: 100%;
    border-collapse: collapse;
    border: none;
    color: white;
}

.winner-table td {
    border: none !important;
    padding: 5px 10px !important;
    vertical-align: middle !important;
    text-align: left !important;
    color: #fff !important;
}

.winner-table td:nth-child(1) {
    width: 50%;
}

.winner-table td:nth-child(2) {
    width: 50%;
}

.winner-table img {
    vertical-align: middle;
    border-radius: 2px;
    border: 1px solid #444;
}

/* Background Images */
.event-1::after {
    background-image: url('1.jpg');
}

.event-2::after {
    background-image: url('2.jpg');
}

.event-3::after {
    background-image: url('3.jpg');
}

.event-4::after {
    background-image: url('4.jpg');
}

.historic-events {
    background: #2a2a2a;
    border-radius: 10px;
    padding: 10px;
    padding-top: 20px;
    border: 1px solid #444;
}

.historic-events h2 {
    color: #ffd700;
    margin-top: 20px;
}

/* Hero Section */
.hero-section {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    color: #ffffff;
    text-align: center;
    object-position: center;
    margin-top: 10.1rem;
    white-space: nowrap;
}

.info-section {
    color: #ffffff;
    text-align: center;
    background: linear-gradient(to right, #222, #242424);
}

.info-section h2 {
    font-size: 3rem;
    color: #ffd700;
}

.info-section p {
    font-size: 1.1rem;
}

.footer {
    background: #000;
    color: #888;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #333;
}

.footer p {
    margin-bottom: 10px;
}

.footer a {
    color: #ffd700;
    text-decoration: none;
}

/* Layout Specifics */
.event-1 {
    flex: 1.3;
    margin-left: -10vh;
    padding-left: 10vh;
}

.event-2 {
    flex: 1;
    margin-left: -4vh;
    padding-left: 4vh;
    margin-right: -4vh;
    padding-right: 4vh;
}

.event-2 .content {
    margin-left: -100px;
}

.event-3 {
    flex: 0.9;
    margin-left: -4vh;
    padding-left: 4vh;
    margin-right: -4vh;
    padding-right: 4vh;
}

.event-3 .content {
    margin-left: -60px;
}

.event-4 {
    flex: 1;
    margin-right: -10vh;
    padding-right: 10vh;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .events-container {
        flex-direction: column;
        height: auto;
    }

    .navbar {
        padding: 0 15px;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #000;
        padding: 20px 0;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0;
        padding: 15px 0;
    }

    .history-card {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }

    .history-card p {
        text-align: center;
        font-size: 1.1rem;
    }

    .history-card .logo-history {
        max-width: 180px;
    }

    .hero-section {
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        z-index: 999;
        color: #ffffff;
        text-align: center;
        object-position: center;
        margin-top: 40px;
        white-space: normal;
        padding: 0 15px;
    }

    .logo {
        color: white;
        -webkit-text-stroke: 0;
        text-shadow: none;
        font-size: 4rem;
    }

    .logo-text {
        font-size: 1.2rem;
        padding-bottom: 10px;
    }

    .event-col {
        width: 100%;
        height: 50vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-bottom: 0;
        transform: none;
        border: none;
        border-bottom: 2px solid white;
        margin: 0;
    }

    .event-1,
    .event-2,
    .event-3,
    .event-4 {
        margin: 0;
        padding: 0;
    }

    .event-2 .content {
        margin-left: 0;
    }

    .event-3 .content {
        margin-left: 0;
    }

    .event-col::after {
        transform: none;
    }

    .content {
        transform: none;
        min-width: auto;
        padding: 20px;
    }

    .content h2 {
        font-size: 2rem;
    }

    .content p {
        font-size: 1rem;
    }

    .event-col:last-child {
        border-bottom: none;
    }
}