/* CRICXET DARK HEADER */
#masthead,
header#masthead,
.kadence-sticky-header #masthead {
  background: #141210 !important;
  border-bottom: 2px solid #1a6b3a !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .5) !important
}

.top-header,
.kadence-top-header-wrap,
.header-top-wrap {
  background: #0e0d0b !important
}

.site-branding .site-title a,
.custom-logo-link,
#masthead .site-title a {
  color: #fff !important;
  font-weight: 900 !important;
  letter-spacing: 2px !important
}

#masthead .main-navigation a,
.primary-navigation a,
.nav-primary a,
.kadence-navigation a,
#site-navigation a {
  color: #ccc !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: .5px !important;
  font-size: 13px !important
}

#masthead .main-navigation a:hover,
.primary-navigation a:hover,
.nav-primary a:hover,
.kadence-navigation a:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, .08) !important;
  border-radius: 3px !important
}

.main-navigation .current-menu-item>a,
.primary-navigation .current-menu-item>a,
.nav-primary .current-menu-item>a,
.kadence-navigation .current-menu-item>a {
  color: #fff !important;
  background: #1a6b3a !important;
  border-radius: 4px !important;
  padding: 4px 10px !important
}

.main-navigation ul ul,
.nav-drop-wrap .dropdown-nav-wrap,
.kadence-navigation .dropdown-nav-wrap {
  background: #1a1816 !important;
  border: 1px solid #2a2724 !important;
  border-top: 2px solid #1a6b3a !important
}

.main-navigation ul ul li a,
.kadence-navigation .dropdown-nav-wrap li a {
  color: #ccc !important
}

.menu-toggle,
.kadence-menu-toggle-btn {
  color: #fff !important
}

.header-main-layout-wrap,
.header-wrap,
.header-content-wrap,
.kadence-header .kadence-header-row,
.kadence-header .header-top,
.kadence-header .header-main {
  background: #141210 !important
}



/* HIDE HOMEPAGE PAGE TITLE */
.home .entry-title,
.home h1.page-title,
.home .page-header,
.home .kadence-breadcrumbs {
  display: none !important
}

/* CRICXET STUMPS LOGO IN HEADER */
/* Make brand link flex to hold icon + text */
.site-branding .brand,
.site-branding a.brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  text-decoration: none !important
}

/* Stumps SVG icon before text */
.site-branding .brand::before {
  content: '';
  display: inline-block;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none'%3E%3Ccircle cx='20' cy='20' r='19' fill='%231a6b3a'../../><rect/index.html x='10' y='16' width='5.5' height='18' rx='2.5' fill='white'../../><rect/index.html x='17.5' y='14' width='5.5' height='20' rx='2.5' fill='white'../../><rect/index.html x='25' y='16' width='5.5' height='18' rx='2.5' fill='white'../../><rect/index.html x='7' y='11.5' width='9' height='3' rx='1.5' fill='%23d4480a' transform='rotate(-20 7 11.5)'../../><rect/index.html x='24.5' y='10' width='9' height='3' rx='1.5' fill='%23d4480a' transform='rotate(18 24.5 10)'../../></svg>/index.html");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center
}

/* Style the site title text */
.site-branding .site-title,
.site-branding p.site-title {
  font-size: 22px !important;
  font-weight: 900 !important;
  letter-spacing: .05em !important;
  color: #fff !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  margin: 0 !important
}

/* SINGLE POST CONTENT MAX WIDTH */
.single #primary {
  max-width: none !important
}

/* HOMEPAGE SECTION MOBILE FIXES */
/* Make cards fully clickable via link overlay */
.cric-psl-card,
.cric-h2h-card,
.cric-team-card {
  position: relative
}

.cric-psl-card>a:first-of-type,
.cric-h2h-card>a:first-of-type,
.cric-team-card>a:first-of-type {
  position: static
}

.cric-psl-card a.cric-card-link,
.cric-h2h-card a.cric-card-link,
.cric-team-card a.cric-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block
}

/* Mobile grid stacking */
@media(max-width:600px) {
  .cric-players-grid {
    grid-template-columns: repeat(3, 1fr) !important
  }

  .cric-h2h-grid {
    grid-template-columns: 1fr !important
  }

  .cric-teams-grid {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 6px !important
  }

  .cric-team-card {
    padding: 6px 4px !important;
    font-size: 11px !important
  }

  .cric-psl-grid {
    grid-template-columns: 1fr !important
  }

  .cric-player-card {
    font-size: 11px !important
  }

  .cric-player-name {
    font-size: 11px !important
  }

  .cric-section {
    padding: 16px !important
  }
}

/* HIDE EMOJI IMAGES IN PLAYER CARDS */
.cric-player-team img.emoji {
  display: none !important
}

/* IPL AUCTION TEAMS BADGE */
.cric-auction-teams-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(255, 255, 255, .1);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, .15)
}

.cric-teams-count {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: .5px
}

.cric-auction-label {
  font-size: 12px;
  font-weight: 600;
  color: #f0c040;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(0, 0, 0, .2);
  padding: 3px 10px;
  border-radius: 20px
}

/* LATEST UPDATES FIX — mobile/tablet only (screens up to 768px) */
@media (max-width: 768px) {
  .kb-posts-id-latest-news-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    row-gap: 20px !important;
  }

  .kb-posts-id-latest-news-grid>*,
  .kb-posts-id-latest-news-grid .kb-post-list-item,
  .kb-posts-id-latest-news-grid .kb-post-list-item article,
  .kb-posts-id-latest-news-grid .kb-post-list-item .entry-content-wrap {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .kb-posts-id-latest-news-grid .kb-post-list-item .post-thumbnail,
  .kb-posts-id-latest-news-grid .kb-post-list-item .post-thumbnail-inner,
  .kb-posts-id-latest-news-grid .kb-post-list-item img {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .kb-posts-id-latest-news-grid .kb-post-list-item .entry-title,
  .kb-posts-id-latest-news-grid .kb-post-list-item .entry-summary,
  .kb-posts-id-latest-news-grid .kb-post-list-item .entry-summary p {
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-wrap: break-word !important;
  }
}

/* LATEST UPDATES FIX (continued) — contain any wide content injected inside the cards so it cannot stretch the grid wider than the viewport. */
@media (max-width: 768px) {
  .kb-posts-id-latest-news-grid .kb-post-list-item>* {
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .kb-posts-id-latest-news-grid .kb-post-list-item * {
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow-wrap: break-word !important;
    flex-wrap: wrap !important;
  }
}

@media (max-width: 768px) {

  html,
  body {
    overflow-x: hidden;
  }
}