/* =========================
   The Electronmans Hub - CSS
   Desktop + Mobile Friendly
   ========================= */

:root{
  --bg:#ffffff;
  --text:#222;
  --muted:#555;

  --ink:#0b0d12;
  --ink2:#000000;

  --accent:#4db8ff;
  --accent2:#00bfff;

  --card-bg:#f5f5f5;
  --card-border:rgba(0,0,0,0.10);
  --shadow:rgba(0,0,0,0.10);

  --hero-border:rgba(255,255,255,0.12);
  --hero-shadow:rgba(0,0,0,0.55);
  --hero-text:#eaeaea;
  --hero-muted:#d8eaff;
}

/* base */
*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
img, iframe{ max-width: 100%; }

/* links */
a{ color: var(--accent2); }
a:hover{ color: var(--accent); }

/* =========================
   Header + Nav
   ========================= */
header{
  background: linear-gradient(135deg, var(--ink), var(--ink2));
  padding: 18px 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 18px rgba(0,0,0,0.55);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(6px);
}

header h1{
  margin: 0;
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.2px;
  text-shadow: 0 0 10px rgba(0,0,0,0.55);
}

nav{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

nav a{
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  opacity: 0.92;
  padding: 8px 10px;
  border-radius: 10px;
  transition: 0.15s ease;
}
nav a:hover{
  color: var(--accent);
  opacity: 1;
  background: rgba(255,255,255,0.06);
}
nav a:focus{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
nav a[aria-current="page"]{
  color: #fff;
  border-bottom: 2px solid var(--accent);
  border-radius: 0;
  padding-bottom: 4px;
  background: transparent;
}

/* =========================
   Jump bar
   ========================= */
.jumpbar{
  max-width: 1100px;
  margin: 12px auto 0;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}
.jumpbar a{
  text-decoration: none;
  font-weight: 900;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  color: #222;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.jumpbar a:hover{
  transform: translateY(-1px);
  border-color: rgba(77,184,255,0.45);
  box-shadow: 0 10px 26px rgba(0,0,0,0.10);
}

/* =========================
   Hero
   ========================= */
.hero{
  position: relative;
  background: url('../images/hero.jpg') center/cover no-repeat;
  min-height: 360px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px 16px;
}
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.70));
}
.hero-inner{
  position: relative;
  width: 100%;
  max-width: 1040px;
  border-radius: 16px;
  padding: 18px 18px;
  background: rgba(0,0,0,0.48);
  border: 1px solid var(--hero-border);
  box-shadow: 0 0 26px var(--hero-shadow);
  backdrop-filter: blur(3px);
}
.hero-top{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
  align-items: start;
}
.hero h2{
  margin: 0;
  font-size: clamp(1.45rem, 2.3vw, 2.05rem);
  color: #fff;
  text-shadow: 0 0 16px #000;
  letter-spacing: 0.2px;
  line-height: 1.15;
}
.hero-tagline{
  margin: 8px 0 0;
  color: var(--hero-muted);
  font-size: 1.02rem;
  line-height: 1.35;
  max-width: 58ch;
}
.hero-meta{
  margin-top: 8px;
  color: var(--hero-text);
  font-size: 0.98rem;
  line-height: 1.35;
}

/* right panel */
.hero-panel{
  border-radius: 14px;
  background: rgba(15,18,24,0.72);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 12px 12px;
}
.hero-panel h3{
  margin: 0 0 6px;
  color: #fff;
  font-size: 1.02rem;
  letter-spacing: 0.2px;
}
.hero-panel ul{
  margin: 0;
  padding-left: 18px;
  color: var(--hero-text);
  font-size: 0.96rem;
  line-height: 1.35;
}
.hero-panel li{ margin: 5px 0; }

/* CTA buttons */
.hero-cta{
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  text-decoration: none;
  font-weight: 900;
  color: #fff;
  background: rgba(0,0,0,0.22);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover{
  transform: translateY(-1px);
  border-color: rgba(77,184,255,0.55);
  background: rgba(77,184,255,0.14);
  color: #fff;
}
.btn.primary{
  border-color: rgba(77,184,255,0.70);
  background: rgba(77,184,255,0.18);
}

/* =========================
   Content / sections
   ========================= */
.content{
  max-width: 1100px;
  margin: 36px auto;
  padding: 0 20px;
}
.section-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.section-title{
  font-size: 1.7rem;
  margin: 26px 0 10px;
  border-left: 5px solid var(--accent2);
  padding-left: 10px;
  color: #222;
}
.section-note{
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 1rem;
  max-width: 920px;
}
.section-footer-link{
  margin: 14px 0 0;
}

/* =========================
   Cards
   ========================= */
.card-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.card{
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: 0 0 15px var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
}
.card:hover{
  transform: translateY(-4px);
  box-shadow: 0 0 22px rgba(0,0,0,0.14);
}
.card img{
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.card-link{
  display: block;
  color: inherit;
  text-decoration: none;
}
.card-content{
  padding: 14px 14px 16px;
  overflow-wrap: anywhere;
}
.card-content h3{
  margin: 0 0 8px;
  color: #111;
  font-size: 1.08rem;
}
.card-content p{
  margin: 0;
  color: #444;
  font-size: 0.98rem;
  line-height: 1.35;
}

/* NEW badge */
.badge-new{
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(77, 184, 255, 0.92);
  color: #0d0f14;
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.4px;
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(77,184,255,0.35);
  border: 1px solid rgba(255,255,255,0.20);
  text-transform: uppercase;
  user-select: none;
  z-index: 2;
}

/* =========================
   Responsive YouTube (16:9)
   ========================= */
.video-card{ padding: 0; }
.video-wrap{
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
}
.video-wrap iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================
   Privacy / Legal cards
   ========================= */
.legal-card{
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 12px;
  padding: 16px;
  margin: 14px 0;
  box-shadow: 0 0 12px rgba(0,0,0,0.06);
}
.legal-card h3{
  margin: 0 0 10px;
  color: #111;
}
.legal-card p, .legal-card li{
  color: #333;
  line-height: 1.6;
}
.small-note{
  color: #555;
  font-size: 0.95rem;
}

/* =========================
   Footer
   ========================= */
footer{
  text-align: center;
  padding: 22px 16px;
  color: #666;
  font-size: 0.95rem;
  margin-top: 40px;
}
footer a{
  color: var(--accent);
  text-decoration: none;
}
footer a:hover{
  text-decoration: underline;
}

/* =========================
   Mobile-first enhancements
   ========================= */

/* Stack hero on smaller screens */
@media (max-width: 980px){
  .hero-top{ grid-template-columns: 1fr; }
}

/* Phone tweaks */
@media (max-width: 720px){
  header{
    padding: 14px 16px;
    flex-wrap: wrap;
    justify-content: center;
  }
  header h1{
    width: 100%;
    text-align: center;
    font-size: 1.35rem;
  }
  nav{
    width: 100%;
    justify-content: center;
  }

  /* Jumpbar becomes swipeable pills */
  .jumpbar{
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 14px;
  }
  .jumpbar::-webkit-scrollbar{ display:none; }
  .jumpbar a{
    flex: 0 0 auto;
    white-space: nowrap;
  }

  /* Hero tighter */
  .hero{
    min-height: 0;
    padding: 22px 12px;
  }
  .hero-inner{
    padding: 14px;
  }
  .hero h2{
    font-size: 1.35rem;
    text-align: center;
  }
  .hero-tagline,
  .hero-meta{
    font-size: 0.98rem;
  }

  /* CTA full width on phones */
  .btn{
    width: 100%;
    padding: 11px 14px;
  }

  /* Cards become single column */
  .content{
    padding: 0 14px;
  }
  .card-grid{
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .card img{
    height: 180px;
  }

  .section-title{
    font-size: 1.45rem;
  }
}



