/* ===========================
   EdgeCricket — Design System
   ===========================
   Fonts: Prefer Manrope / Geist if installed; fall back to modern system stack.
*/
:root {
  /* Palette — deep navy with soft blue gradient accents */
  --navy-900: #0b1a3a;
  --navy-800: #102750;
  --navy-700: #112a57;
  --blue-500: #274fdd;
  --blue-400: #3b63ff;
  --ink: #eaf1ff;
  --muted: rgba(230,236,255,.72);

  /* Surfaces & effects */
  --paper: linear-gradient(180deg, rgba(12,20,44,.82), rgba(9,14,32,.9));
  --paper-plain: rgba(15,22,48,.72);
  --line: rgba(255,255,255,.08);
  --shadow: 0 10px 30px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.03);

  /* UI tokens */
  --radius: 20px;
  --radius-lg: 24px;
  --pad: 20px;
  --pad-lg: 28px;
  --container: 1250px;

  /* Transitions */
  --t: .28s cubic-bezier(.2,.9,.3,1);
}

* { box-sizing: border-box; scroll-behavior: smooth;}
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family:
    "Manrope","Geist","Inter","SF Pro Text","Segoe UI",Roboto,system-ui,Arial,sans-serif;
  color: var(--ink);
  background-color: #0B1A3B;
  line-height: 1.6;
}
textarea{
    resize: none;
}
/* Utilities */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section__head { margin-bottom: 28px; }
.section__head h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  margin: 0 0 6px;
}
.sub { color: var(--muted); margin: 0; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; color: var(--muted); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px) saturate(120%);
}

/* Accessibility helpers */
.sr-only {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -40px; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; z-index: 1000;
  transition: top .2s ease;
}
.skip-link:focus { top: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(180deg, rgba(11,26,58,.9), rgba(11,26,58,.6));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px; align-items: center;
  min-height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; letter-spacing: .2px; }
.logo { display: inline-block; }
.nav__toggle {
  display: none;
  background: transparent; border: 0; cursor: pointer; padding: 8px; border-radius: 10px;
}
.nav__bar { display: block; width: 26px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; }
.nav__menu { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav__menu a { color: #fff; text-decoration: none; opacity: .92; }
.nav__menu a:hover { opacity: 1; }

/* Buttons */
.btn {
  --b: 0 8px 24px rgba(39,79,221,.35);
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 18px; border-radius: 16px; border: 1px solid transparent;
  text-decoration: none; font-weight: 700; transition: transform var(--t), box-shadow var(--t), background var(--t), border-color var(--t), color var(--t);
  will-change: transform;
}
.btn--primary {
  background: linear-gradient(135deg, var(--blue-400), var(--blue-500));
  color: #fff; box-shadow: var(--b);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(39,79,221,.45); }
.btn--ghost {
  background: transparent; color: #dfe7ff; border-color: rgba(255,255,255,.16);
}
.btn--ghost:hover { background: rgba(255,255,255,.06); }

/* Hero */
.hero-grid {
  display: flex; justify-content: space-between; gap: clamp(20px, 4vw, 40px); align-items: center; position: relative;
}
.heroBG{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -1;
    opacity: .05;
    filter: blur(2px);
    -webkit-filter: blur(2px);
}
h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.05; margin: 0 0 12px; text-transform: uppercase; font-weight: 900;}
.lead { font-size: clamp(16px, 1.6vw, 18px); color: #dce6ff; max-width: 56ch; }
.grad {
  background: linear-gradient(90deg, #a9b8ff, #ffffff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__media img{
    width: 600px;
}
.hero__media .card { padding: 0; overflow: hidden; border-radius: var(--radius-lg); }
.card--glass { background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.trust-list { margin: 14px 0 0; padding: 0; list-style: none; display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); }

.hero__metrics {
  margin-top: 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.metric { background: var(--paper-plain); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: grid; gap: 4px; align-items: baseline; }
.metric__label { color: var(--muted); font-size: 12px; }
.metric__value { font-size: 28px; font-weight: 800; }
.metric__unit { opacity: .8; margin-left: 4px; }

/* Cards grids */
.grid { display: grid; gap: 20px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.work-media img { width: 100%; height: auto; display: block; border-radius: 16px; }
.work-body { padding: 16px; }
.work-card h3 { margin: 0 0 6px; }
.link-arrow { color: #cfe0ff; text-decoration: none; position: relative; }
.link-arrow::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: linear-gradient(90deg, #9fb1ff, transparent); opacity: .7; transition: opacity var(--t); }
.link-arrow:hover::after { opacity: 1; }
.hover-glow { transition: transform var(--t), box-shadow var(--t), border-color var(--t); }
.hover-glow:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(59,99,255,.25); border-color: rgba(255,255,255,.15); }

/* Services */
.service { padding: 18px; display: grid; gap: 10px; }
.icon-pill {
  width: 48px; height: 48px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(59,99,255,.3), rgba(39,79,221,.6));
  display: grid; place-items: center; border: 1px solid var(--line);
}
.service h3{
    margin: 0;
}
.icon-pill svg { width: 26px; height: 26px; fill: none; }

/* Lists */
.ticks { padding-left: 0; list-style: none; display: grid; gap: 6px; margin: 6px 0 0; }
.ticks li { position: relative; padding-left: 22px; color: #e6edff; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); background: linear-gradient(135deg, #9fb1ff, #ffffff); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
.about-copy { padding: 20px; }
.about-vis img { width: 100%; display: block; border-radius: 16px; }

/* Insights */
.post { padding: 18px; }
.post h3 { margin: 0 0 4px; }
.meta { color: var(--muted); margin: 0 0 10px; }
.post.card{
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post.card .link-arrow{
    margin-top: auto;
}

/* Animations: fade-in on scroll; prefers-reduced-motion respected */
.fade { opacity: 0; transform: translateY(12px); transition: opacity .7s ease, transform .7s ease; }
.fade.in { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .header-grid { grid-template-columns: auto auto; }
  .nav__toggle { display: inline-block; }
  .nav__menu {
    position: absolute; right: 16px; top: 72px; width: min(90vw, 360px);
    background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px;
    flex-direction: column; gap: 8px; display: none;
  }
  .nav__menu.open { display: flex; }
  .hide-mobile { display: none; }
  .show-mobile { display: inline-flex; }
}
@media (max-width: 640px) {
  .cards-3 { grid-template-columns: 1fr; }
  .metric__value { font-size: 24px; }
  .btn { border-radius: 14px; }
}


.matches{
  padding-top: 56px;
  padding-bottom: 56px;
}

.match-list{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.match-card{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: grid;
  align-content: start;
  gap: .4rem;
}
.match-card p{
    margin: 0;
}
.work-card p{
    margin: 0;
}
.service.card p{
    margin: 0;
}
.post.card p{
    margin: 10px 0;
}
.match-card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(14,165,233,.35);
}
.match-card h3{
  margin: 0 0 .25rem;
  font-size: 1.1rem;
}
.match-date{
  color: var(--muted);
  font-size: .95rem;
}
.match-venue{
  color: var(--ink);
  font-weight: 600;
  font-size: .98rem;
  margin-bottom: .5rem;
}

/* =========================
   3) NEWS
   ========================= */
.news{
  padding-top: 56px;
  padding-bottom: 80px;
}

.news-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.news-card{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: clip;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: grid;
}
.news-card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(34,197,94,.35);
}
.news-card img{
    height: 200px;
    width: 100%;
  object-fit: cover;
  object-position: center;
}
.news-card h3{
  font-size: 1.05rem;
  line-height: 1.3;
  margin: 14px 16px 6px;
}
.news-card p{
  color: var(--muted);
  margin: 0 16px 12px;
}
.news-card .read-more{
  display: inline-block;
  margin: 0 16px 18px;
  font-weight: 600;
  color: var(--accent);
}
.news-card .read-more:hover{
  text-decoration: underline;
}


::-webkit-scrollbar {
    width: 0.5em;
}

::-webkit-scrollbar-track {
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: #325AEF;
}


::-webkit-scrollbar-thumb:active {
    background-color: #325AEF;
}


#partners{
    background-color: #0A1127;
}

.footer{
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}
.footerContainer{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.intoLinks {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-align: center;
    span {
        width: 8px;
        height: 8px;
        background-color: #fff;
        border-radius: 50%;
    }
    a {
        transition: 0.3s all linear;
        transform-origin: left;
        color: #fff;
        text-decoration: none;
    }
    a:hover {
        text-decoration: underline;
    }
    }
    @media screen and (max-width: 750px) {
    .intoLinks {
        flex-direction: column;
        span {
        display: none;
        }
    }
}
.f-social{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    i{
        color: #fff;
    }
}

.copy{
    text-align: center;
    opacity: .5;
}
.intosWrapper{
  padding-top: 120px;
}
@media (max-width: 800px) {
    .hero__media{
        display: none;
    }
    .match-list, .news-grid{
        display: flex;
        flex-direction: column;
    }
}