/*
Theme Name: Astra Child - T20NPL Cricket
Template:   astra
Version:    1.0.0
Description: T20NPL Cricket Child Theme
*/

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  --green:   #0e7f35;
  --green2:  #0a6428;
  --navy:    #0b1f45;
  --navy2:   #071535;
  --gold:    #f5a623;
  --gold2:   #e09400;
  --white:   #ffffff;
  --gray:    #f4f4f4;
  --text:    #1a1a1a;
  --muted:   #555;
  --red:     #e53935;
  --ticker-h: 36px;
  --topbar-h: 42px;
  --header-h: 70px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Montserrat', sans-serif; color: var(--text); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ============================================
   LIVE TICKER
   ============================================ */
.ticker {
  display: flex;
  align-items: center;
  height: var(--ticker-h);
  background: var(--navy2);
  color: var(--white);
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  position: relative;
  z-index: 1000;
  letter-spacing: 0.3px;
}

.tklive {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  padding: 0 12px;
  height: 100%;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.tklive .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--white);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.tkscore {
  background: var(--gold);
  color: var(--navy2);
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  white-space: nowrap;
}

.tkwrap {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
}

.tksc {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: ticker-scroll 35s linear infinite;
  padding-left: 30px;
}

.tksc span { flex-shrink: 0; opacity: 0.92; }
.tksc span b { color: var(--gold); }

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.tkseas {
  background: var(--green);
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ============================================
   TOP BAR
   ============================================ */
.topbar {
  height: var(--topbar-h);
  background: var(--white);
  border-bottom: 1px solid #e8e8e8;
  position: relative;
  z-index: 999;
}

.tbin {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tbleft {
  display: flex;
  align-items: center;
  gap: 0;
}

.tbleft a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  padding: 0 14px;
  transition: color 0.2s;
}

.tbleft a:first-child { padding-left: 0; }
.tbleft a:hover { color: var(--green); }

.tbleft a svg {
  width: 14px; height: 14px;
  stroke: var(--green);
  flex-shrink: 0;
}

.tbdiv {
  width: 1px;
  height: 18px;
  background: #ddd;
}

.tbright {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Register button */
.breg {
  background: var(--green);
  color: var(--white) !important;
  padding: 7px 18px;
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 700;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.3px;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.breg:hover { background: var(--green2); transform: translateY(-1px); }

/* Login button */
.blog {
  border: 1.5px solid var(--navy);
  color: var(--navy) !important;
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 700;
  font-family: 'Rajdhani', sans-serif;
  transition: all 0.2s;
  white-space: nowrap;
}
.blog:hover { background: var(--navy); color: var(--white) !important; }

/* ============================================
   MAIN HEADER
   ============================================ */
.mh {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 998;
}

.mhin {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

/* ============================================
   LOGO
   ============================================ */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.lico {
  width: 52px; height: 52px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lico img { width: 100%; height: 100%; object-fit: cover; }

.ltext { display: flex; flex-direction: column; line-height: 1; }

.lname {
  font-family: 'Oswald', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 1px;
  line-height: 1.1;
}

.lsub {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* ============================================
   DESKTOP NAV
   ============================================ */
.mnav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: flex-end;
}

.ni {
  position: relative;
}

/* Nav link */
.nl {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 8px 11px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  cursor: pointer;
  letter-spacing: 0.2px;
}

.nl:hover, .nl.act { color: var(--green); background: rgba(14,127,53,0.07); }

/* Arrow icon */
.nl .arr {
  width: 14px; height: 14px;
  transition: transform 0.25s;
  stroke: currentColor;
  flex-shrink: 0;
}
.ni:hover .arr { transform: rotate(180deg); }

/* Highlighted nav items */
.nl.hl {
  border: 1.5px solid var(--gold);
  color: var(--gold2);
  padding: 6px 11px;
}
.nl.hl:hover { background: var(--gold); color: var(--white); }

.nl.pay {
  background: var(--navy);
  color: var(--white) !important;
  padding: 7px 14px;
  border-radius: 4px;
}
.nl.pay:hover { background: var(--navy2); }

/* ============================================
   DROPDOWN
   ============================================ */
.dd {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--white);
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  min-width: 200px;
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.22s ease;
  z-index: 9999;
}

/* Large dropdown (lg) */
.dd.lg {
  min-width: 220px;
  columns: 1;
}

/* Extra large dropdown (xl) — 2 columns */
.dd.xl {
  min-width: 440px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 8px;
  gap: 2px;
}

.ni:hover .dd {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Right-align dropdowns that overflow */
.ni:last-child .dd,
.ni:nth-last-child(2) .dd,
.ni:nth-last-child(3) .dd {
  left: auto;
  right: 0;
}

.dl {
  display: block;
  padding: 8px 16px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  transition: color 0.15s, background 0.15s, padding-left 0.15s;
  white-space: nowrap;
  border-radius: 4px;
}

.dl:hover {
  color: var(--green);
  background: rgba(14,127,53,0.07);
  padding-left: 20px;
}

/* ============================================
   HAMBURGER
   ============================================ */
.ham {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.ham span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s;
  transform-origin: center;
}

.ham.op span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.ham.op span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.ham.op span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================
   MOBILE CONTACT BAR
   ============================================ */
.mcontact {
  display: none;
  background: var(--gray);
  border-top: 1px solid #e0e0e0;
  padding: 8px 16px;
  gap: 16px;
  flex-wrap: wrap;
}

.mcontact a {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  color: var(--muted);
}

.mcontact a svg { width: 13px; height: 13px; stroke: var(--green); }

/* ============================================
   MOBILE MENU
   ============================================ */
.mob {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 9997;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.mob.op {
  opacity: 1;
  visibility: visible;
}

.mobnav {
  position: absolute;
  top: 0; right: 0;
  width: min(320px, 88vw);
  height: 100%;
  background: var(--white);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  padding-bottom: 40px;
}

.mob.op .mobnav { transform: translateX(0); }

.mitem { border-bottom: 1px solid #f0f0f0; }

.mlink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.mlink:hover { color: var(--green); background: rgba(14,127,53,0.05); }

.mlink.mbtn {
  background: var(--navy);
  color: var(--white);
  margin: 8px 16px;
  border-radius: 4px;
  justify-content: center;
}

.mlink.hl {
  color: var(--gold2);
}

.marr {
  width: 16px; height: 16px;
  stroke: currentColor;
  transition: transform 0.25s;
  flex-shrink: 0;
}
.marr.op { transform: rotate(180deg); }

.msub {
  display: none;
  flex-direction: column;
  background: #f9f9f9;
  border-top: 1px solid #eee;
}

.msub.op { display: flex; }

.msub a {
  padding: 10px 28px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 1px solid #f0f0f0;
  transition: color 0.15s, padding-left 0.15s;
}

.msub a:hover { color: var(--green); padding-left: 36px; }

.macts {
  display: flex;
  gap: 10px;
  padding: 16px;
  border-top: 2px solid #f0f0f0;
  margin-top: 8px;
}

.macts .breg, .macts .blog {
  flex: 1;
  text-align: center;
  padding: 10px;
  font-size: 13px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .mnav { gap: 0; }
  .nl { padding: 8px 8px; font-size: 13px; }
}

@media (max-width: 900px) {
  .mnav { display: none; }
  .ham { display: flex; }
  .mob { display: block; }
  .mcontact { display: flex; }
  .mhin { height: 60px; }

  .tbleft a:not(:first-child) { display: none; }
  .tbdiv { display: none; }
}

@media (max-width: 480px) {
  .tkscore { display: none; }
  .tkseas { display: none; }
  .tbright .blog { display: none; }
  .breg { padding: 7px 12px; font-size: 12px; }
  .lname { font-size: 18px; }
  .lsub { font-size: 10px; }
}

/* ============================================
   ASTRA OVERRIDES — Reset Astra default header
   ============================================ */
.ast-site-header-wrap,
.ast-primary-header-bar,
#masthead,
.site-header { display: none !important; }

/* Make sure our header shows above Elementor */
.ticker, .topbar, .mh { position: relative; z-index: 9990; }
.mh { position: sticky; top: 0; z-index: 9989; }
