/*
Theme Name: Astra Child - T20CCL Century Cricket League
Template:   astra
Version:    1.0.0
Description: T20CCL Century Cricket League Child Theme — Royal Blue & Gold
*/

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  --blue:    #07635e;
  --blue2:   #4a62a5;
  --blue3:   #000000c9;
  --blue4:   #972a54;
  --gold:    #c9a84c;
  --gold2:   #e8c96a;
  --gold3:   #f5e4a8;
  --gold4:   #c49731;
  --white:   #ffffff;
  --offwhite:#f5f7fc;
  --gray:    #eef1f8;
  --text:    #000000;
  --muted:   #5a6a8a;
  --border:  #d8e0f0;
  --red:     #c0392b;
  --ticker-h: 36px;
  --topbar-h: 44px;
  --header-h: 76px;
}
/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Cormorant Garamond', 'Georgia', 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(--blue4);
  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;
  border-bottom: 1px solid rgba(201,168,76,0.3);
}

.tklive {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  padding: 0 14px;
  height: 100%;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  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.1; }
}

.tkscore {
  background: linear-gradient(135deg, var(--gold4), var(--gold));
  color: var(--blue4);
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  white-space: nowrap;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.5px;
}

.tkwrap {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
}

.tksc {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
  padding-left: 30px;
}

.tksc span { flex-shrink: 0; opacity: 0.88; }
.tksc span b { color: var(--gold2); }

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.tkseas {
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  border-left: 1px solid rgba(201,168,76,0.4);
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  flex-shrink: 0;
  white-space: nowrap;
  color: var(--gold2);
  font-family: 'Rajdhani', sans-serif;
  text-transform: uppercase;
}

/* ============================================
   TOP BAR
   ============================================ */
.topbar {
  height: var(--topbar-h);
  background: var(--blue3);
  border-bottom: 1px solid rgba(201,168,76,0.2);
  position: relative;
  z-index: 999;
}

.tbin {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  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: 12px;
  color: rgba(255,255,255,0.65);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  padding: 0 16px;
  transition: color 0.2s;
  letter-spacing: 0.3px;
}

.tbleft a:first-child { padding-left: 0; }
.tbleft a:hover { color: var(--gold2); }

.tbleft a svg {
  width: 13px; height: 13px;
  stroke: var(--gold);
  flex-shrink: 0;
}

.tbdiv {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.15);
}

.tbright {
  display: flex;
  align-items: center;
  gap: 10px;
}

.breg {
  background: linear-gradient(135deg, var(--gold4), var(--gold));
  color: var(--blue4) !important;
  padding: 7px 20px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.25s;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(201,168,76,0.3);
}
.breg:hover { background: linear-gradient(135deg, var(--gold), var(--gold2)); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(201,168,76,0.4); }

.blog {
  border: 1px solid rgba(201,168,76,0.5);
  color: var(--gold2) !important;
  padding: 6px 18px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.5px;
  transition: all 0.2s;
  white-space: nowrap;
  text-transform: uppercase;
}
.blog:hover { background: rgba(201,168,76,0.12); border-color: var(--gold2); }

/* ============================================
   MAIN HEADER
   ============================================ */
.mh {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(10,22,64,0.12);
  position: sticky;
  top: 0;
  z-index: 998;
  border-bottom: 3px solid var(--gold);
}

.mhin {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ============================================
   LOGO
   ============================================ */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}

.lico {
  width: 56px; height: 56px;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue), var(--blue3));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid rgba(201,168,76,0.4);
  box-shadow: 0 2px 12px rgba(10,22,64,0.2);
}

.lico img { width: 100%; height: 100%; object-fit: cover; }

.ltext { display: flex; flex-direction: column; line-height: 1; }

.lname {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 2px;
  line-height: 1.1;
}

.lsub {
  font-family: 'Rajdhani', sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--gold4);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ============================================
   DESKTOP NAV
   ============================================ */
.mnav {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: flex-end;
}

.ni {
  position: relative;
}

.nl {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 8px 12px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--blue3);
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  cursor: pointer;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nl:hover, .nl.act { color: var(--blue); background: rgba(26,58,143,0.07); }

.nl .arr {
  width: 13px; height: 13px;
  transition: transform 0.25s;
  stroke: currentColor;
  flex-shrink: 0;
}
.ni:hover .arr { transform: rotate(180deg); }

.nl.hl {
  border: 1.5px solid var(--gold4);
  color: var(--gold4);
  padding: 6px 12px;
}
.nl.hl:hover { background: linear-gradient(135deg, var(--gold4), var(--gold)); color: var(--white); border-color: transparent; }

.nl.pay {
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color: var(--gold2) !important;
  padding: 8px 16px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}
.nl.pay:hover { background: linear-gradient(135deg, var(--blue2), var(--blue3)); }

/* ============================================
   DROPDOWN
   ============================================ */
.dd {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 12px 40px rgba(10,22,64,0.15);
  min-width: 210px;
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.22s ease;
  z-index: 9999;
}

.dd.lg { min-width: 230px; }

.dd.xl {
  min-width: 460px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 10px;
  gap: 2px;
}

.ni:hover .dd {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.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 18px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue3);
  transition: color 0.15s, background 0.15s, padding-left 0.15s;
  white-space: nowrap;
  border-radius: 3px;
  letter-spacing: 0.3px;
}

.dl:hover {
  color: var(--blue);
  background: rgba(26,58,143,0.06);
  padding-left: 22px;
}

/* ============================================
   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: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: all 0.3s;
  transform-origin: center;
}

.ham.op span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ham.op span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.ham.op span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   MOBILE CONTACT BAR
   ============================================ */
.mcontact {
  display: none;
  background: var(--blue4);
  border-top: 1px solid rgba(201,168,76,0.2);
  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: rgba(255,255,255,0.6);
  letter-spacing: 0.3px;
}

.mcontact a svg { width: 13px; height: 13px; stroke: var(--gold); }

/* ============================================
   MOBILE MENU
   ============================================ */
.mob {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(10,22,64,0.6);
  backdrop-filter: blur(4px);
  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;
  border-left: 4px solid var(--gold);
}

.mob.op .mobnav { transform: translateX(0); }

.mitem { border-bottom: 1px solid var(--border); }

.mlink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue3);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mlink:hover { color: var(--blue); background: rgba(26,58,143,0.05); }

.mlink.mbtn {
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color: var(--gold2);
  margin: 8px 16px;
  border-radius: 3px;
  justify-content: center;
}

.mlink.hl { color: var(--gold4); }

.marr {
  width: 15px; height: 15px;
  stroke: currentColor;
  transition: transform 0.25s;
  flex-shrink: 0;
}
.marr.op { transform: rotate(180deg); }

.msub {
  display: none;
  flex-direction: column;
  background: var(--offwhite);
  border-top: 1px solid var(--border);
}

.msub.op { display: flex; }

.msub a {
  padding: 10px 28px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  transition: color 0.15s, padding-left 0.15s;
  letter-spacing: 0.3px;
}

.msub a:hover { color: var(--blue); padding-left: 36px; }

.macts {
  display: flex;
  gap: 10px;
  padding: 16px;
  border-top: 2px solid var(--border);
  margin-top: 8px;
}

.macts .breg, .macts .blog {
  flex: 1;
  text-align: center;
  padding: 10px;
  font-size: 12px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .mnav { gap: 0; }
  .nl { padding: 8px 9px; font-size: 12.5px; }
}

@media (max-width: 900px) {
  .mnav { display: none; }
  .ham { display: flex; }
  .mob { display: block; }
  .mcontact { display: flex; }
  .mhin { height: 64px; }
  .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: 11px; }
  .lname { font-size: 20px; }
  .lsub { font-size: 9px; letter-spacing: 3px; }
}

/* ============================================
   ASTRA OVERRIDES
   ============================================ */
.ast-site-header-wrap,
.ast-primary-header-bar,
#masthead,
.site-header { display: none !important; }

.ticker, .topbar, .mh { position: relative; z-index: 9990; }
.mh { position: sticky; top: 0; z-index: 9989; }
