body {
            font-family: Arial, sans-serif;
            margin: 0;
            background-color: #fff;
            color: #000;
        }

        h1, h2, h3 {
            margin: 1rem;
        }

        .section {
            margin: 1rem;
        }
        
        .no-top-margin {
            margin-top: 0;     
        }

        /*.table-wrapper {*/
        /*    overflow-x: auto;*/
        /*    margin: 1rem;*/
        /*    padding-bottom: 25px;*/
        /*}*/
        .table-wrapper {
            display: flex;
            align-items: flex-start; /* Align to top */
            justify-content: space-between; /* Pushes image to right */
            gap: 1rem; /* Optional spacing between text and image */
        }

        .team-info {
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            flex: 1;
        }

        .team-image {
            max-width: 250px; /* Adjust based on your layout needs */
            height: auto;
        }

        .table-wrapper p {
            margin: 1rem;
        }

        .section.team-table {
            position: relative;
            background: url('../../images/divider-fade.png') center top no-repeat;
            background-size: cover;
            padding: 2rem;
            overflow: hidden;
        }

        /* Optional: Add a bottom fade using a pseudo-element */
        .section.team-table::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 100px; /* adjust for fade depth */
            background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, white 100%);
            pointer-events: none;
        }


        .table-wrapper.team-table {
            margin: 1rem;
            padding-bottom: 50px;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            min-width: 600px;
        }

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

        th {
            background-color: #111;
            color: #fff;
        }

        .mobile-cards {
            display: none;
            margin: 1rem;
        }

        .card {
            background-color: #f4f4f4;
            /*margin-bottom: 1rem;*/
            padding: 1rem;
            /*border-radius: 10px;*/
            border: 1px solid #ccc;
        }

        .card p {
            margin: 0.25rem 0;
        }

        .player-cards {
            display: none;
        }

        .player-card {
            background-color: #007f7f;
            color: #fff;
            padding: 1rem;
        }

        .player-card:nth-child(even) {
            background-color: #00bfb3;
        }

        .player-card h4 {
            margin-top: 0;
        }

        .player-info p {
            margin: 0.25rem 0;
            font-size: 14px;
        }

        .team-score {
            font-size: 0.75em;
        }
        .position-sections {
            display: flex;
            flex-wrap: wrap;
            gap: 2rem;
            justify-content: space-between;
            align-items: flex-start;
            margin: 2rem 0;
        }

        .position-sections .section {
            flex: auto;
            box-sizing: border-box;
        }

        .position-sections tr {
            background-color: #5b5b5b;
            color: white;
        }

        .spacing {
            padding: 1rem;
        }

        .logo-container {
            text-align: center;
        }

        .logo-image {
            max-width: 100%;
            height: auto;
        }

        .logo-text {
            color: #d71920; /* Matching red from logo */
            font-size: 24px;
            font-weight: bold;
            margin-top: 12px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
            font-family: 'Arial Black', sans-serif;
            letter-spacing: 1px;
        }

        .team-image {
            max-width: 200px;
            cursor: pointer;
            transition: transform 0.2s;
        }
        .team-image:hover {
            transform: scale(1.05);
        }

        /* Modal styles */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            padding-top: 60px;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0,0,0,0.8);
        }

        .modal-content {
            margin: auto;
            display: block;
            width: 750px;
            max-width: 90%;
            border-radius: 8px;
        }

        .close {
            position: absolute;
            top: 30px;
            right: 35px;
            color: #fff;
            font-size: 40px;
            font-weight: bold;
            cursor: pointer;
        }
        .search-container {
            margin: 20px 0;
            text-align: center;
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 10px;
        }

        .search-input {
            padding: 8px;
            font-size: 16px;
            width: 200px;
        }

        .search-button {
            padding: 8px 16px;
            font-size: 16px;
            cursor: pointer;
        }

        .search-results {
            margin-top: 10px;
            font-weight: bold;
            color: #333;
            text-align: center;
            width: 100%;
        }

        .highlight {
            background-color: #fffa90 !important;
            color: #000 !important;
            font-weight: bold;
        }

        .team-table {
            margin: 20px 0;
        }

        /* ----- Desktop View ---- */
        @media (min-width: 769px) {
            .player-cards, .player-card, .mobile-header {
                display: none;
            }
        }
        /* ————— Mobile View ————— */
        @media (max-width: 768px) {
            .table-wrapper {
                display: none;
            }

            .positions-by-sex .table-wrapper {
                display: block;
            }
            .mobile-cards {
                display: block;
            }

            .player-cards, .player-card, .mobile-header {
                display: block;
            }
            .position-sections {
                flex-direction: column;
            }

            .section.team-table {
                display:none;
            }
            /*.position-sections .section {*/
            /*    flex: 1 1 100%;*/
            /*}*/
        }
