body {
    margin: 0;
    font-family: Segoe UI, Arial, sans-serif;
    background: #f3f4f6;
}

/* HEADER */

.header {
    background: #0f4c81;
    color: white;
    padding: 20px;

    display: flex;
    align-items: center;
    gap: 25px;
}

.logo {
    width: 250px;
    height: auto;
}

.header-text h1 {
    margin: 0;
    font-size: 34px;
}

.header-text p {
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 16px;
}

/* SUMMARY */

#summary {
    background: white;
    margin: 15px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
}

/* TABS */

.tab-bar {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.event-tab {
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    min-width: 180px;
    padding: 18px 25px;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,.15);
    transition: 0.2s;
}

.event-tab:hover {
    background: #218838;
    transform: translateY(-2px);
}

.event-tab.active {
    background: #0f4c81;
}

/* EVENT CARD */

.event {
    background: white;
    margin: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
}

.event-title {
    background: #ececec;
    padding: 20px;
    font-size: 30px;
    font-weight: bold;
    color: #0f4c81;
}

.section-title {
    background: #f7f7f7;
    padding: 14px;
    font-size: 18px;
    font-weight: 700;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.section-body {
    padding: 20px;
}

/* BADGES */

.badge {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: bold;
}

/* BUTTONS */

.button {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    margin-right: 10px;
    margin-top: 10px;
}

.green {
    background: #28a745;
}

.orange {
    background: #fd7e14;
}

.blue {
    background: #0078d4;
}

/* TABLES */

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: white;
}

thead {
    background: #0f4c81;
    color: white;
}

th {
    padding: 12px;
    border: 1px solid #cfcfcf;
    text-align: left;
}

td {
    padding: 10px;
    border: 1px solid #d7d7d7;
    text-align: left;
}

tbody tr:nth-child(even) {
    background: #f8f8f8;
}

tbody tr:hover {
    background: #eaf4ff;
}

/* RIDER TABLE COLUMN WIDTHS */

th:nth-child(1),
td:nth-child(1) {
    width: 80px;
    text-align: center;
}

th:nth-child(2),
td:nth-child(2) {
    width: 120px;
}

th:nth-child(3),
td:nth-child(3) {
    width: 350px;
}

th:nth-child(4),
td:nth-child(4) {
    width: 120px;
}

th:nth-child(5),
td:nth-child(5) {
    width: 250px;
}

/* CONTROLS */

.control {
    padding: 10px;
    border: 1px solid #e3e3e3;
    border-radius: 6px;
    margin-bottom: 8px;
    background: #fafafa;
}

/* MOBILE */

@media (max-width: 768px) {

    .header {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        width: 110px;
    }

    .tab-bar {
        flex-direction: column;
    }

    .event-tab {
        width: 100%;
        min-width: auto;
    }

    .event-title {
        font-size: 24px;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
