:root {
  --back-body: #dcdcdc;
  --back-header: #d50000;
  --back-foot: #2b2b2b;
  --back-topbar: #3a3a3a;
  --back-foottopbar: #4f6f8f;
  --gray: #ccc;
  --white: #fff;
}

body {
  background: var(--back-body);
}

/* ===== HEADER ===== */
.header {
  background: var(--back-header);
  padding: 20px 0;
}

.logo img {
  height: 60px;
}

/* ===== MENU DESKTOP ===== */
.menu {
  text-align: center;
}

.menu .nav > li > a {
  color: var(--white);
  font-weight: 500;
  padding: 10px 15px;
}

.menu .nav > li > a:hover,
.menu .nav > .active > a {
  background: rgba(255,255,255,0.2);
}

.dropdown-menu {
  background: var(--white);
}

.dropdown-menu > li > a {
  color: #333;
}

/* ===== BANNER ===== */
.banner-wrapper {
  background: var(--gray);
  padding: 20px 0;
}

.banner {
  background: var(--white);
  padding: 10px;
}

.banner img {
  width: 100%;
}

/* ===== FOOTER ===== */
.footer-top {
  height: 10px;
  background: var(--back-foottopbar);
}

.footer {
  background: var(--back-foot);
  color: var(--gray);
  padding: 20px 0;
  font-size: 12px;
}

.footer .right {
  float: right;
}
.footer .right a {
  color: var(--white);
}

/* ===== BOTÃO MOBILE ===== */
.menu-toggle {
  position: fixed;
  top: 10px;
  right: 10px;
  background: #000;
  color: var(--white);
  border: none;
  font-size: 22px;
  padding: 10px;
  z-index: 3000;
  border-radius: 6px;
}

/* ========================= */
/* MOBILE */
/* ========================= */
@media (max-width: 767px) {

  .banner {
    height: 65vh;
  }

  /* SIDEBAR */
  #mainMenu {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100%;
    background: var(--back-header);
    z-index: 2000;

    transform: translateX(-100%);
    transition: transform 0.25s ease;

    padding-top: 80px;
  }

  #mainMenu.active {
    transform: translateX(0);
  }

  /* MENU */
  #mainMenu ul {
    display: block !important;
    float: none !important;
  }

  #mainMenu ul li {
    float: none;
    width: 100%;
  }

  #mainMenu ul li a {
    color: #fff;
    display: block;
    padding: 12px 15px;
  }

  /* DROPDOWN (CONTROLADO VIA JS) */
  #mainMenu .dropdown-menu {
    position: relative;
    float: none;
    width: 100%;
    background: rgba(255,255,255,0.15);
    border: none;
    box-shadow: none;
    margin: 0;
    display: none !important;
  }

  #mainMenu .dropdown.open > .dropdown-menu {
    display: block !important;
  }

  #mainMenu .dropdown-menu > li > a {
    color: #fff;
    padding-left: 25px;
  }

  /* REMOVE BUG BOOTSTRAP */
  #mainMenu .dropdown:hover .dropdown-menu {
    display: none;
  }

  /* SETA */
  #mainMenu .dropdown > a .caret {
    float: right;
    transition: 0.3s;
  }

  #mainMenu .dropdown.open > a .caret {
    transform: rotate(180deg);
  }

  /* OVERLAY */
  .menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 1500;
  }

  .menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ===== context ===== */
.context {
  background: #fff;
  padding: 30px;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.context h1 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 5px;
}

.context h2 {
  text-align: center;
  font-size: 20px;
  color: #777;
  margin-bottom: 30px;
}

.context h3 {
  font-size: 18px;
  margin-top: 25px;
  margin-bottom: 10px;
  border-left: 4px solid #d50000;
  padding-left: 10px;
}

.context p {
  line-height: 1.6;
  color: #444;
}

.context ul {
  padding-left: 20px;
}

.context ul li {
  margin-bottom: 6px;
}

/* destaque */
.context .highlight {
  background: #ffeaea;
  border-left: 5px solid #d50000;
  padding: 15px;
  border-radius: 6px;
}

/* MOBILE */
@media (max-width: 767px) {
  .context {
    padding: 20px;
    margin: 15px;
  }

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

  .context h3 {
    font-size: 16px;
  }
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    justify-items: center;
}

.team {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    width: 120px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: 0.2s;
}

.team:hover {
    transform: scale(1.05);
}

.team img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
}

.team span {
    font-size: 14px;
    font-weight: bold;
    display: block;
}
.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.team-name-img {
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-name-img img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.team-score {
    font-weight: bold;
    font-size: 16px;
}

.winner-score {
    color: green;
}

.nav-tabs .nav-link {
    border-radius: 20px;
    margin: 0 5px;
}

.nav-tabs .nav-link.active {
    background: #d90000;
    color: #fff;
    border: none;
}