* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f4f4;
    color: #222;
    font-size: 18px;
    line-height: 1.6;
}

/* Banner */
.banner {
    width: 100% !important;
    height: auto !important;
    background: #071d3f !important;
    overflow: visible !important;
    text-align: center;
}

.banner img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: unset !important;
    display: block !important;
}

/* Layout */
.site-container {
    display: flex;
    min-height: calc(100vh - 150px);
}

.sidebar {
    width: 250px;
    background: #222;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.sidebar a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 16px;
    margin-bottom: 10px;
    background: #333;
    border-radius: 6px;
    font-size: 1.25rem;
    font-weight: 700;
}

.sidebar a:hover {
    background: #cc0000;
}

.content {
    flex: 1;
    background: white;
    padding: 30px;
}

.footer {
    background: #111;
    color: white;
    text-align: center;
    padding: 18px;
}

/* Sidebar Login */
.sidebar-login {
    margin-top: auto;
    color: white;
    padding-top: 20px;
    border-top: 2px solid #444;
}

.sidebar-login p {
    color: white;
    font-weight: bold;
    margin-bottom: 5px;
}

.sidebar-login input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    font-size: 1rem;
    border-radius: 5px;
    border: none;
}

.sidebar-login button {
    width: 100%;
    padding: 12px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    background: #cc0000;
    color: white;
    cursor: pointer;
}

.logged-in-box {
    color: white;
}

.logged-in-box strong,
.logged-in-box .username {
    font-weight: bold;
}

/* Home */
.home-hero {
    background: transparent;
    color: #222;
    padding: 0;
    margin-bottom: 30px;
}

.home-hero h1 {
    font-size: 3rem;
    font-weight: 800;
}

.home-hero p {
    font-size: 1.9rem;
    font-weight: 800;
    color: #444;
}

.home-section {
    margin-bottom: 40px;
}

.section-header {
    border-bottom: 3px solid #222;
    margin-bottom: 18px;
}

.section-header h2 {
    font-size: 2.4rem;
    font-weight: 800;
}

/* Announcements */
.announcement-list {
    display: grid;
    gap: 22px;
}

.announcement-card {
    background: #fff;
    border: 2px solid #ccc;
    border-left: 8px solid #cc0000;
    padding: 28px;
    border-radius: 10px;
}

.pinned-card {
    background: #fff8f8;
}

.pin-label {
    display: inline-block;
    background: #cc0000;
    color: white;
    padding: 10px 18px;
    font-size: 1.25rem;
    font-weight: bold;
    border-radius: 5px;
    margin-bottom: 12px;
}

.announcement-card h3 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.announcement-content,
.announcement-content p,
.announcement-content div,
.announcement-content li {
    font-size: 1.8rem;
    line-height: 2;
    font-weight: 600;
}

/* Featured Tournament */
.featured-tournament {
    border: 3px solid #cc0000;
    background: #fff8f8;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 35px;
}

.section-label {
    display: inline-block;
    background: #cc0000;
    color: #fff;
    padding: 8px 14px;
    font-weight: bold;
    border-radius: 5px;
    margin-bottom: 18px;
}

.featured-grid {
    display: grid;
    grid-template-columns: minmax(220px, 360px) 1fr;
    gap: 25px;
}

.featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.event-date {
    font-size: 1.25rem;
    font-weight: bold;
    color: #cc0000;
}

/* Sponsors */
.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.sponsor-card {
    border: 2px solid #ddd;
    background: #fff;
    padding: 22px;
    text-align: center;
    border-radius: 10px;
}

.sponsor-logo img {
    max-width: 100%;
    max-height: 250px;
    object-fit: contain;
}

/* Buttons */
.button-link {
    display: inline-block;
    background: #222;
    color: white;
    padding: 12px 18px;
    text-decoration: none;
    border-radius: 6px;
    margin-top: 12px;
    font-weight: bold;
}

.button-link:hover {
    background: #cc0000;
}

/* Admin Menu */
.admin-top-menu,
.admin-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.admin-top-menu a,
.admin-card {
    display: block;
    background: #222;
    color: white;
    text-decoration: none;
    padding: 18px;
    border-radius: 8px;
    text-align: center;
    font-size: 1.15rem;
    font-weight: bold;
}

.admin-top-menu a:hover,
.admin-card:hover {
    background: #cc0000;
}

.admin-frame {
    width: 100%;
    height: 900px;
    border: 2px solid #ccc;
    border-radius: 8px;
    background: white;
}

/* Calendar */
.calendar-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin-bottom: 30px;
}

.calendar-table th {
    background: #222;
    color: white;
    padding: 12px;
    font-size: 1.1rem;
}

.calendar-table td {
    width: 14.28%;
    height: 75px;
    vertical-align: top;
    border: 1px solid #ccc;
    padding: 3px;
}

.day-number {
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.calendar-event {
    display: block;
    background: #333;
    color: white;
    text-decoration: none;
    padding: 2px 4px;
    margin-bottom: 2px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
}

.calendar-event:hover,
.featured-calendar-event {
    background: #cc0000;
}

.empty-day {
    background: #eee;
}

.tourney-frame {
    width: 100%;
    min-height: 1400px;
    height: 80vh;
    border: 2px solid #ccc;
    border-radius: 8px;
    background: white;
}
/* Mobile */
@media (max-width: 768px) {
    .site-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .content {
        padding: 20px;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .home-hero h1 {
        font-size: 2.3rem;
    }

    .home-hero p {
        font-size: 1.35rem;
    }

    .announcement-card h3 {
        font-size: 1.8rem;
    }

    .announcement-content,
    .announcement-content p,
    .announcement-content div,
    .announcement-content li {
        font-size: 1.35rem;
    }

    .calendar-table,
    .calendar-table tr,
    .calendar-table td,
    .calendar-table th {
        display: block;
        width: 100%;
    }

    .calendar-table th {
        display: none;
    }

.calendar-table td {
    width: 14.28%;
    height: 45px;
    vertical-align: top;
    border: 1px solid #ccc;
    padding: 2px;
}

    .admin-frame,
    .tourney-frame {
        height: 700px;
    }
}
.tourney-thumb {
    max-width: 100px;
    max-height: 80px;
    cursor: pointer;
    border: 2px solid #ccc;
    border-radius: 4px;
    transition: 0.2s;
}

.tourney-thumb:hover {
    border-color: #cc0000;
    transform: scale(1.05);
}