/* =========================
   GENERAL
========================= */

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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f2f4f6;
    color: #222;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}


/* =========================
   HEADER
========================= */

.header {
    background: #111827;
    color: white;
    border-bottom: 4px solid #16803c;
}

.header-container {
    max-width: 1200px;
    margin: auto;
    padding: 18px 25px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    width: 100px;
    height: 65px;
    object-fit: contain;
}

.logo-ball {
    font-size: 38px;
}

.logo h1 {
    font-size: 22px;
}

.logo p {
    font-size: 12px;
    color: #b8c0ca;
}

.nav {
    display: flex;
    gap: 5px;
}

.nav a {
    padding: 10px 13px;
    font-size: 14px;
    color: #dce2e8;
    border-radius: 4px;
}

.nav a:hover,
.nav a.active {
    background: #16803c;
    color: white;
}


/* =========================
   HERO
========================= */

.hero {
    background:
        linear-gradient(
            rgba(0, 0, 0, 0.58),
            rgba(0, 0, 0, 0.58)
        ),
        url("images/soccer-field.jpg");

    background-size: cover;
    background-position: center;

    min-height: 360px;

    display: flex;
    align-items: center;
}

.hero-content {
    width: 1200px;
    max-width: 90%;
    margin: auto;

    color: white;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 50px;
}

.hero-text {
    flex: 1;
}

.hero-logo {
    width: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo img {
    width: 100%;
    max-width: 350px;
    height: auto;
    object-fit: contain;
}

.season {
    color: #4ade80;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.hero h2 {
    font-size: 46px;
    margin-bottom: 12px;
}

.hero p:not(.season) {
    max-width: 700px;
    font-size: 16px;
    color: #e4e4e4;
}

.hero-buttons {
    margin-top: 25px;
    display: flex;
    gap: 10px;
}

.btn {
    padding: 12px 22px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
}

.btn.primary {
    background: #16803c;
    color: white;
}

.btn.primary:hover {
    background: #116b31;
}

.btn.secondary {
    background: white;
    color: #222;
}

.btn.secondary:hover {
    background: #e5e5e5;
}


/* =========================
   QUICK LINKS
========================= */

.quick-links {
    max-width: 1200px;
    margin: -35px auto 35px;

    position: relative;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 15px;

    padding: 0 20px;
}

.quick-card {
    background: white;

    padding: 20px;

    text-align: center;

    border-radius: 5px;

    box-shadow: 0 3px 12px rgba(0,0,0,0.1);

    transition: 0.2s;
}

.quick-card:hover {
    transform: translateY(-3px);
}

.quick-card span {
    font-size: 27px;
}

.quick-card h3 {
    margin-top: 5px;
    font-size: 17px;
}

.quick-card p {
    color: #777;
    font-size: 13px;
}


/* =========================
   MAIN
========================= */

.main-container {
    max-width: 1200px;
    margin: auto;

    padding: 0 20px 50px;

    display: grid;
    grid-template-columns: 1fr 340px;

    gap: 25px;
}

.section {
    background: white;

    padding: 22px;

    margin-bottom: 25px;

    border-radius: 5px;

    border: 1px solid #e1e4e8;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 18px;

    border-bottom: 2px solid #16803c;

    padding-bottom: 10px;
}

.section-header h2 {
    font-size: 20px;
}

.section-header a {
    color: #16803c;
    font-size: 13px;
    font-weight: bold;
}

/* =========================
   UPCOMING GAMES
========================= */

.upcoming-game {
    display: grid;

    grid-template-columns: 100px 1fr 100px;

    align-items: center;

    padding: 15px 0;

    border-bottom: 1px solid #e5e7eb;
}

.game-info {
    display: flex;
    flex-direction: column;
}

.game-info strong {
    font-size: 14px;
}

.game-info span {
    font-size: 12px;
    color: #777;
}

.matchup {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 12px;

    font-size: 14px;
}

.matchup span {
    color: #888;
}

.location {
    text-align: right;

    font-size: 12px;

    color: #777;
}

.game-date-group {
    margin-bottom: 30px;
}

.date-heading {
    font-size: 20px;
    color: #16803c;
    border-bottom: 2px solid #16803c;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.league-group {
    margin-bottom: 25px;
}

.league-name {
    font-size: 15px;
    color: #222;
    background: #f4f5f6;
    padding: 10px 12px;
    border-left: 4px solid #16803c;
    margin-bottom: 5px;
}

/* =========================
   NEWS
========================= */

.news-card {
    display: flex;

    gap: 18px;

    padding: 15px 0;

    border-bottom: 1px solid #e5e7eb;
}

.news-date {
    min-width: 55px;

    height: 55px;

    background: #16803c;

    color: white;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    font-size: 11px;
}

.news-date strong {
    font-size: 20px;
}

.news-card h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.news-card p {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.news-card a {
    color: #16803c;
    font-size: 12px;
    font-weight: bold;
}


/* =========================
   SIDEBAR
========================= */

.sidebar-card {
    background: white;

    padding: 20px;

    margin-bottom: 20px;

    border-radius: 5px;

    border: 1px solid #e1e4e8;
}

.sidebar-title {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 15px;

    border-bottom: 2px solid #16803c;

    padding-bottom: 10px;
}

.sidebar-title h2,
.sidebar-card > h2 {
    font-size: 18px;
}

.sidebar-title a {
    color: #16803c;

    font-size: 11px;

    font-weight: bold;
}


/* TABLE */

table {
    width: 100%;

    border-collapse: collapse;

    font-size: 13px;
}

th {
    text-align: left;

    font-size: 11px;

    color: #777;

    padding: 8px;

    background: #f4f5f6;
}

td {
    padding: 10px 8px;

    border-bottom: 1px solid #e5e7eb;
}

td:first-child {
    width: 25px;

    color: #888;
}

td:last-child {
    text-align: right;

    font-weight: bold;
}

.norcal-info h2 {
    font-size: 20px;
    margin-bottom: 15px;
}

.norcal-info p {
    font-size: 13px;
    margin-bottom: 12px;
    color: #444;
}

.norcal-info .schedule-reminder {
    color: #16803c;
    font-weight: bold;
    margin-top: 18px;
    margin-bottom: 0;
}

/* =========================
   LEAGUE INFO
========================= */

.info-row {
    display: flex;

    justify-content: space-between;

    padding: 10px 0;

    border-bottom: 1px solid #eee;

    font-size: 13px;
}

.info-row span {
    color: #777;
}


/* =========================
   ADMIN
========================= */

.admin-card {
    background: #111827;

    color: white;

    padding: 22px;

    border-radius: 5px;
}

.admin-card h2 {
    font-size: 18px;

    margin-bottom: 10px;
}

.admin-card p {
    color: #b9c0c8;

    font-size: 13px;

    margin-bottom: 18px;
}

.admin-button {
    display: block;

    text-align: center;

    padding: 10px;

    background: #16803c;

    border-radius: 4px;

    font-weight: bold;

    font-size: 13px;
}

.admin-button:hover {
    background: #116b31;
}


/* =========================
   FOOTER
========================= */

footer {
    background: #111827;

    color: white;

    padding: 35px 20px 20px;
}

.footer-container {
    max-width: 1200px;

    margin: auto;

    display: flex;

    justify-content: space-between;

    gap: 30px;
}

.footer-container h3 {
    font-size: 17px;

    margin-bottom: 5px;
}

.footer-container p {
    color: #9ca3af;

    font-size: 13px;
}

.footer-links {
    display: flex;

    gap: 20px;

    align-items: center;
}

.footer-links a {
    color: #cbd5e1;

    font-size: 13px;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    max-width: 1200px;

    margin: 25px auto 0;

    padding-top: 15px;

    border-top: 1px solid #374151;

    color: #6b7280;

    font-size: 11px;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {

    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav {
        width: 100%;

        overflow-x: auto;
    }

    .quick-links {
        grid-template-columns: repeat(2, 1fr);

        margin-top: 20px;
    }

    .main-container {
        grid-template-columns: 1fr;
    }

    .hero h2 {
        font-size: 36px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-logo {
        width: 250px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}


@media (max-width: 600px) {

    .quick-links {
        grid-template-columns: 1fr;
    }

    .game-card {
        grid-template-columns: 70px 1fr 50px 1fr;
    }

    .team {
        padding: 0 5px;
    }

    .upcoming-game {
        grid-template-columns: 70px 1fr;
    }

    .location {
        display: none;
    }

    .matchup {
        font-size: 12px;
    }

    .footer-container {
        flex-direction: column;
    }

}

/* =========================
   STANDINGS PAGE
========================= */

.standings-page {
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px 60px;
}

.standings-header {
    margin-bottom: 25px;
}

.standings-header h2 {
    font-size: 32px;
    margin-bottom: 8px;
}

.standings-header p {
    color: #777;
    font-size: 14px;
}


/* LEAGUE DROPDOWN */

.league-selector {
    background: white;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid #e1e4e8;
    border-radius: 5px;
}

.league-selector label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
}

.league-selector select {
    width: 100%;
    max-width: 350px;
    padding: 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
}


/* STANDINGS TABLE */

.standings-box {
    background: white;
    border: 1px solid #e1e4e8;
    border-radius: 5px;
    overflow: hidden;
}

.standings-box-header {
    background: #111827;
    color: white;
    padding: 18px 20px;
}

.standings-box-header h3 {
    font-size: 20px;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
}

.standings-table th {
    background: #f4f5f6;
    color: #777;
    font-size: 11px;
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.standings-table td {
    padding: 14px 12px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

.standings-table tr:last-child td {
    border-bottom: none;
}

.standings-table th:first-child,
.standings-table td:first-child {
    text-align: center;
    width: 50px;
}

.standings-table th:nth-child(2),
.standings-table td:nth-child(2) {
    text-align: left;
}

.standings-table td:nth-child(7),
.standings-table td:nth-child(10) {
    font-weight: bold;
    color: #16803c;
}

/* =========================
   SCHEDULE PAGE
========================= */

.schedule-page {
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px 60px;
}

.schedule-header {
    margin-bottom: 25px;
}

.schedule-header h2 {
    font-size: 32px;
    margin-bottom: 8px;
}

.schedule-header p {
    color: #777;
    font-size: 14px;
}


/* LEAGUE DROPDOWN */

.schedule-selector {
    background: white;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid #e1e4e8;
    border-radius: 5px;
}

.schedule-selector label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
}

.schedule-selector select {
    width: 100%;
    max-width: 450px;
    padding: 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
}


/* =========================
   SCHEDULE BOX
========================= */

.schedule-box {
    background: white;
    border: 1px solid #e1e4e8;
    border-radius: 5px;
    overflow: hidden;
}

.schedule-box-header {
    background: #111827;
    color: white;
    padding: 18px 20px;
}

.schedule-box-header h3 {
    font-size: 20px;
}


/* =========================
   INDIVIDUAL GAME
========================= */

.schedule-game {
    display: grid;

    /* Date | Matchup | Field */
    grid-template-columns: 180px 1fr 120px;

    align-items: center;
    gap: 20px;

    padding: 18px 20px;

    border-bottom: 1px solid #e5e7eb;
}

.schedule-game:last-child {
    border-bottom: none;
}


/* =========================
   DATE / TIME
========================= */

.schedule-date {
    display: flex;
    flex-direction: column;
}

.schedule-date strong {
    font-size: 14px;
}

.schedule-date span {
    font-size: 12px;
    color: #777;
    margin-top: 4px;
}


/* =========================
   MATCHUP
========================= */

.schedule-matchup {
    display: grid;

    /*
       HOME | SCORE | AWAY
    */
    grid-template-columns: minmax(180px, 1fr) 70px minmax(180px, 1fr);

    align-items: center;

    width: 100%;
    gap: 15px;
}


/* TEAM NAMES */

.schedule-home,
.schedule-away {
    font-size: 14px;
    font-weight: bold;
}


/* HOME TEAM */

.schedule-home {
    text-align: right;
}


/* AWAY TEAM */

.schedule-away {
    text-align: left;
}


/* SCORE */

.schedule-score {
    font-size: 20px;
    font-weight: bold;
    color: #111827;

    text-align: center;

    min-width: 70px;
}


/* UPCOMING GAME */

.schedule-vs {
    font-size: 12px;
    font-weight: bold;
    color: #16803c;

    text-align: center;

    min-width: 70px;
}


/* =========================
   HOME / AWAY LABELS
========================= */

.schedule-labels {
    display: grid;

    grid-template-columns: minmax(180px, 1fr) 70px minmax(180px, 1fr);

    gap: 15px;

    margin-bottom: 5px;

    font-size: 9px;
    font-weight: bold;
    color: #999;

    text-transform: uppercase;
}

.schedule-label-home {
    text-align: right;
}

.schedule-label-away {
    text-align: left;
}

.schedule-label-score {
    text-align: center;
}


/* =========================
   FIELD / COURT
========================= */

.schedule-location {
    text-align: center;

    color: #777;

    font-size: 12px;

    line-height: 1.4;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {

    .schedule-game {
        grid-template-columns: 1fr;
        gap: 12px;
    }


    .schedule-date {
        text-align: left;
    }


    .schedule-matchup {
        grid-template-columns: minmax(100px, 1fr) 55px minmax(100px, 1fr);

        gap: 8px;
    }


    .schedule-home,
    .schedule-away {
        font-size: 13px;
    }


    .schedule-score {
        font-size: 18px;
        min-width: 55px;
    }


    .schedule-vs {
        min-width: 55px;
    }


    .schedule-location {
        text-align: left;
    }


    .schedule-labels {
        grid-template-columns: minmax(100px, 1fr) 55px minmax(100px, 1fr);

        gap: 8px;
    }

}


/* =========================
   MOBILE STANDINGS
========================= */

@media (max-width: 600px) {

    .standings-page {
        padding: 25px 10px;
    }

    .standings-table {
        font-size: 12px;
    }

    .standings-table th,
    .standings-table td {
        padding: 10px 5px;
    }

}
/* =========================
   TEAMS PAGE
========================= */

.teams-page {
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px 60px;
}

.teams-header {
    margin-bottom: 25px;
}

.teams-header h2 {
    font-size: 32px;
    margin-bottom: 8px;
}

.teams-header p {
    color: #777;
    font-size: 14px;
}


/* MAIN TEAMS CONTAINER */

.teams-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 25px;
    align-items: start;
}


/* LEFT SIDE */

.league-list {
    background: white;
    border: 1px solid #e1e4e8;
    border-radius: 5px;
    overflow: hidden;
}

.league-list-header {
    background: #111827;
    color: white;
    padding: 18px 20px;
}

.league-list-header h3 {
    font-size: 18px;
}


/* LEAGUE BUTTONS */

.league-button {
    display: block;
    width: 100%;

    border: none;
    border-bottom: 1px solid #e5e7eb;

    background: white;

    padding: 15px 18px;

    text-align: left;

    font-size: 13px;

    cursor: pointer;

    color: #333;

    transition: 0.2s;
}

.league-button:hover {
    background: #f3f4f6;
}

.league-button.active {
    background: #16803c;
    color: white;
    font-weight: bold;
}


/* RIGHT SIDE */

.team-list {
    background: white;

    border: 1px solid #e1e4e8;

    border-radius: 5px;

    overflow: hidden;

    min-height: 300px;
}

.team-list-header {
    background: #111827;

    color: white;

    padding: 18px 20px;
}

.team-list-header h3 {
    font-size: 20px;
}


/* TEAM ITEMS */

.team-item {
    display: flex;

    align-items: center;

    gap: 15px;

    padding: 18px 20px;

    border-bottom: 1px solid #e5e7eb;

    transition: 0.2s;
}

.team-item:last-child {
    border-bottom: none;
}

.team-item:hover {
    background: #f8faf9;
}

.team-icon {
    font-size: 24px;
}

.team-name {
    font-size: 15px;

    font-weight: bold;
}


/* MOBILE */

@media (max-width: 700px) {

    .teams-container {
        grid-template-columns: 1fr;
    }

    .league-button {
        padding: 13px 15px;
    }

}

/* =========================
   CONTACT PAGE
========================= */

.contact-page {
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px 60px;
}

.contact-header {
    margin-bottom: 30px;
}

.contact-header h2 {
    font-size: 32px;
    margin-bottom: 8px;
}

.contact-header p {
    color: #777;
    font-size: 14px;
    max-width: 600px;
}


/* CONTACT CONTAINER */

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}


/* CONTACT CARDS */

.contact-card {
    background: white;
    border: 1px solid #e1e4e8;
    border-radius: 5px;
    padding: 25px;
}

.contact-card h3 {
    font-size: 20px;
    border-bottom: 2px solid #16803c;
    padding-bottom: 10px;
    margin-bottom: 20px;
}


/* PERSON */

.contact-person {
    margin-bottom: 20px;
}

.contact-person h4 {
    font-size: 18px;
    margin-bottom: 2px;
}

.contact-person p {
    color: #777;
    font-size: 13px;
}


/* CONTACT ITEMS */

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;

    padding: 15px 0;

    border-bottom: 1px solid #e5e7eb;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item > span {
    font-size: 22px;
}

.contact-item strong {
    display: block;
    font-size: 13px;
    margin-bottom: 3px;
}

.contact-item a {
    color: #16803c;
    font-size: 14px;
}

.contact-item a:hover {
    text-decoration: underline;
}


/* LOCATION */

.location-info {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 25px;
}

.location-icon {
    font-size: 28px;
}

.location-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.location-info p {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}


/* DIRECTIONS BUTTON */

.directions-button {
    display: inline-block;

    background: #16803c;
    color: white;

    padding: 11px 18px;

    border-radius: 4px;

    font-size: 13px;
    font-weight: bold;
}

.directions-button:hover {
    background: #116b31;
}


/* MOBILE */

@media (max-width: 700px) {

    .contact-container {
        grid-template-columns: 1fr;
    }

}

/* =========================
   RULES PAGE
========================= */

.rules-page {
    max-width: 1000px;
    margin: auto;
    padding: 40px 20px 60px;
}


/* HEADER */

.rules-header {
    text-align: center;
    margin-bottom: 30px;
}

.rules-header h2 {
    font-size: 34px;
    margin-bottom: 5px;
}

.rules-header p {
    color: #777;
    font-size: 14px;
}


/* TABLE OF CONTENTS */

.rules-contents {
    background: white;

    border: 1px solid #e1e4e8;

    border-radius: 5px;

    padding: 25px;

    margin-bottom: 25px;
}

.rules-contents h3 {
    font-size: 20px;

    border-bottom: 2px solid #16803c;

    padding-bottom: 10px;

    margin-bottom: 15px;
}

.rules-contents ol {
    padding-left: 25px;

    columns: 2;

    column-gap: 40px;
}

.rules-contents li {
    padding: 5px 0;

    font-size: 13px;

    color: #444;

    break-inside: avoid;
}


/* RULE SECTIONS */

.rules-container {
    display: flex;

    flex-direction: column;

    gap: 20px;
}

.rule-section {
    background: white;

    border: 1px solid #e1e4e8;

    border-radius: 5px;

    padding: 25px;
}

.rule-section h3 {
    font-size: 20px;

    color: #111827;

    border-bottom: 2px solid #16803c;

    padding-bottom: 10px;

    margin-bottom: 18px;
}

.rule-section p {
    font-size: 14px;

    color: #444;

    line-height: 1.7;

    margin-bottom: 12px;
}

.rule-section ul,
.rule-section ol {
    padding-left: 25px;

    margin-bottom: 15px;
}

.rule-section li {
    font-size: 14px;

    color: #444;

    line-height: 1.7;

    margin-bottom: 5px;
}


/* MOBILE */

@media (max-width: 700px) {

    .rules-page {
        padding: 30px 15px 50px;
    }

    .rules-header h2 {
        font-size: 28px;
    }

    .rules-contents ol {
        columns: 1;
    }

    .rule-section {
        padding: 20px;
    }

}
.disclaimer-section p {
    margin: 0;
    line-height: 1.6;
    color: #555;
    font-size: 14px;
}

.tiebreaker-note {
    margin-top: 15px;
    padding: 12px 15px;
    background: #f4f5f6;
    border: 1px solid #e1e4e8;
    border-radius: 5px;
    color: #666;
    font-size: 13px;
}

.website-credit {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 8px;
    padding-bottom: 15px;
}