@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');

:root {
  --navy: #101c35;
  --blue: #3779ee;
  --bg: #f5f7fb;
  --muted: #8290a5;
  --white: #fff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font-family: 'Cairo', sans-serif;
}

button, input { font: inherit; }
button { cursor: pointer; }

.topbar {
  height: 76px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(calc((100% - 1120px)/2), 5%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  text-decoration: none;
  font-size: 23px;
  font-weight: 900;
}

.brand-icon {
  background: var(--blue);
  color: white;
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 12px;
}

.login-btn {
  border: 1px solid #e5eaf2;
  background: white;
  color: var(--navy);
  padding: 9px 20px;
  border-radius: 10px;
  font-weight: 700;
}

.hero {
  max-width: 1120px;
  margin: 35px auto 0;
  padding: 65px 7%;
  background: linear-gradient(115deg, #101c35, #1b3867);
  border-radius: 25px;
  color: white;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 390px;
}

.hero-content { max-width: 570px; position: relative; z-index: 2; }

.eyebrow {
  color: #4f8df8;
  font-size: 13px;
  font-weight: 800;
}

.hero .eyebrow { color: #91baff; }

h1 {
  font-size: clamp(34px, 5vw, 53px);
  line-height: 1.5;
  margin: 10px 0;
  font-weight: 900;
}

h1 span { color: #75a8ff; }

.hero p {
  color: #c2cde0;
  line-height: 2;
  font-size: 15px;
}

.search-box {
  display: flex;
  align-items: center;
  background: white;
  padding: 6px;
  border-radius: 13px;
  margin-top: 25px;
  max-width: 500px;
  color: var(--navy);
  gap: 8px;
}

.search-box span { font-size: 27px; padding: 0 8px; }
.search-box input { border: 0; outline: 0; flex: 1; min-width: 0; }
.search-box button, .publish-btn {
  background: var(--blue);
  border: 0;
  color: white;
  border-radius: 9px;
  padding: 10px 20px;
  font-weight: 800;
}

.publish-btn { margin-top: 15px; }

.hero-decoration {
  position: absolute;
  left: 8%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 100px;
  font-weight: 900;
  color: #ffffff0b;
  line-height: 1.1;
  text-align: center;
  pointer-events: none;
}

.hero-decoration span { font-size: 20px; letter-spacing: 8px; }

.section {
  max-width: 1120px;
  margin: 65px auto;
  padding: 0 15px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 23px;
}

.section-heading h2 { margin: 3px 0; font-size: 25px; }
.count { color: var(--muted); font-size: 13px; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}

.category {
  border: 1px solid #e8edf5;
  border-radius: 14px;
  background: white;
  padding: 18px 5px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}

.category span { font-size: 25px; color: var(--blue); }
.category.active { background: #eaf1ff; border-color: #9bbcff; color: #2866d3; }

.empty-state {
  text-align: center;
  padding: 55px 15px;
  background: white;
  border: 1px dashed #d8e0ed;
  border-radius: 18px;
}

.empty-icon {
  margin: auto;
  width: 65px;
  height: 65px;
  background: #edf3ff;
  color: var(--blue);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 35px;
}

.empty-state h3 { margin-bottom: 5px; }
.empty-state p { color: var(--muted); font-size: 14px; }

.join-banner {
  max-width: 1090px;
  margin: 70px auto;
  padding: 35px;
  border-radius: 20px;
  background: #e9f0ff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.join-banner h2 { margin: 5px 0; }
.join-banner p { color: #697a96; font-size: 14px; }

.join-banner button {
  border: 0;
  border-radius: 10px;
  padding: 13px 20px;
  background: var(--navy);
  color: white;
  font-weight: 800;
}

footer {
  background: white;
  padding: 35px 6%;
  text-align: center;
}

footer p, footer small { color: var(--muted); }

@media(max-width:700px) {
  .topbar { height: 65px; padding: 0 18px; }
  .hero { margin: 15px 12px 0; padding: 40px 22px; min-height: 390px; }
  .hero-decoration { left: -30px; font-size: 65px; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .section { margin: 45px auto; padding: 0 14px; }
  .join-banner { margin: 45px 13px; padding: 25px; flex-direction: column; align-items: stretch; }
  .join-banner button { width: 100%; }
}
