/* =========================
BASE / RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial;
  background: #fff;
  color: #0f172a;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font: inherit;
  cursor: pointer;
}

/* =========================
NAVBAR (DESKTOP)
========================= */
header {
  height: 88px;
  display: flex;
  align-items: center;
  padding: 0 40px;
  /* keeps logo close to left corner */
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 9999;
}

.nav {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  /* left | center | right */
  align-items: center;
}

/* Left: Logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

/*.brand span {
  font-weight: 700;
  font-size: 14px;
  color: #1e3a8a;
}*/

/* Center: Links */
.nav-center {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 56px;
  font-size: 16px;
  font-weight: 400;
}

/* Right: Actions */
.nav-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn {
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 16px;
  background: transparent;
}

.btn-outline {
  border-color: #d1d5db;
  background: #fff;
  color: #0f172a;
}

.btn-solid {
  background: #1e3a8a;
  color: #fff;
  padding: 12px 20px;
}

/* =========================
MOBILE MENU (HIDDEN BY DEFAULT)
========================= */
#menu {
  display: none;
}

.hamburger {
  display: none;
  /* shown on small screens */
  width: 46px;
  height: 46px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  align-items: center;
  justify-content: center;
  justify-self: end;
  cursor: pointer;
}

.hamburger i {
  width: 20px;
  height: 2px;
  background: #0f172a;
  position: relative;
  display: block;
}

.hamburger i::before,
.hamburger i::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: #0f172a;
}

.hamburger i::before {
  top: -6px;
}

.hamburger i::after {
  top: 6px;
}

.mobile-panel {
  display: none;
  width: 100%;
  padding: 14px 0 0;
  grid-column: 1 / -1;
}

.mobile-box {
  border: 1px solid #eef2f7;
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 6px;
  font-weight: 600;
}

.mobile-actions {
  display: flex;
  gap: 12px;
  padding: 10px 6px 6px;
}

.mobile-actions .btn {
  width: 100%;
}

/* checkbox toggle */
#menu:checked ~ .mobile-panel {
  display: block;
}

/* HERO */
.hero {
  background: #e9efff;
  padding: 64px 16px 84px;
  text-align: center;
}
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #dbe6ff;
  color: #1e3a8a;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 16px;
}
.badge-ic {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #c7d7ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
}
.hero h1 {
  font-size: 54px;
  font-weight: 800;
  color: #1e3a8a;
  letter-spacing: 0.2px;
  margin-bottom: 10px;
  line-height: 1.05;
}
.hero p {
  max-width: 820px;
  margin: 0 auto;
  color: #6b7280;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
}

/* MAIN */
.main {
  padding: 0 16px;
  margin-top: -34px;
  padding-bottom: 60px;
}

/* TABS (LINKS + ACTIVE ON CLICK) */
.tabs-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}
.tabs {
  width: 420px;
  background: #eef2f7; /* background of the whole tab bar */
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 6px;
  display: flex;
  gap: 6px;
}
.tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 10px;
  border-radius: 8px;
  color: #6b7280;
  font-weight: 700;
  font-size: 13px;
  background: transparent;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}
.tab-ic {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}

.tab.active {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #1e3a8a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.tab.active .tab-ic {
  background: #dbe6ff;
  color: #1e3a8a;
}
/* PANELS */
.panel {
  background: #ffffff;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
  padding: 18px;
  margin: 0 auto 22px;
  max-width: 1100px;
}

/* QUICK SAFETY TIPS */
.panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #e6edff;
  border: 1px solid #d6e2ff;
  border-radius: 10px;
  padding: 16px 16px;
  margin-bottom: 14px;
  color: #1e3a8a;
  font-weight: 800;
}
.head-ic {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #d7e3ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 6px;
  border: 1px solid #eef2f7;
  border-radius: 10px;
}
.tip-card {
  background: #ffffff;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  padding: 18px 14px;
  text-align: center;
  min-height: 142px;
}
.tip-ic {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  background: #eef2f7;
  color: #1e3a8a;
}
.tip-title {
  font-size: 14px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 6px;
}
.tip-desc {
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
  line-height: 1.45;
}
/* EDUCATIONAL RESOURCES */
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #111827;
  font-weight: 900;
  font-size: 18px;
  margin-bottom: 14px;
}
.sec-ic {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #eef2f7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #1e3a8a;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.resource {
  border: 1px solid #eef2f7;
  border-radius: 12px;
  padding: 18px;
  background: #ffffff;
  min-height: 235px;
}

.resource-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
}
.resource-ic {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #eef2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  color: #1e3a8a;
  flex: 0 0 auto;
}
.meta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.tag {
  background: #dbe6ff;
  color: #1e3a8a;
  font-weight: 800;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
}
.time {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 700;
}

.resource h3 {
  color: #1e3a8a;
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 8px;
  line-height: 1.25;
}
.resource p {
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 10px;
  max-width: 95%;
}

.checks {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}
.checks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: #6b7280;
  font-weight: 700;
  line-height: 1.35;
}
.ok {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #e9f8ef;
  border: 1px solid #bfe8cf;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #16a34a;
  font-size: 12px;
  font-weight: 900;
  flex: 0 0 18px;
  margin-top: 1px;
}

.read {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1e3a8a;
  font-weight: 900;
  font-size: 12px;
  margin-top: 2px;
}

/* BOTTOM CTA */
.cta {
  max-width: 1100px;
  margin: 18px auto 0;
  background: #142f74;
  border-radius: 12px;
  padding: 22px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  overflow: hidden;
  color: #ffffff;
}
.cta::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 150px;
  height: 150px;
  border-radius: 18px;
  border: 3px solid rgba(255, 255, 255, 0.25);
}
.cta h4 {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 6px;
}
.cta p {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.9;
  max-width: 520px;
  line-height: 1.4;
}
.cta a {
  background: #ffffff;
  color: #142f74;
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 900;
  font-size: 13px;
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

/* =========================
MEDIA QUERIES (1280 ↓)
========================= */

@media (max-width: 1280px) {
  header {
    padding: 0 32px;
  }

  .nav-center {
    gap: 44px;
  }
}

@media (max-width: 1024px) {
  header {
    padding: 0 24px;
  }

  .nav-center {
    gap: 34px;
  }

  .btn {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  header {
    height: auto;
    padding: 14px 16px;
    align-items: flex-start;
  }

  .nav {
    grid-template-columns: 1fr auto;
    /* logo | hamburger */
    row-gap: 12px;
  }

  .nav-center,
  .nav-right {
    display: none;
    /* hide desktop center & right */
  }

  .hamburger {
    display: inline-flex;
    /* show hamburger */
  }
}
@media (max-width: 1280px) {
  .hero h1 {
    font-size: 48px;
  }
  .tabs {
    width: 420px;
  }
}

@media (max-width: 1024px) {
  .tips-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .resources-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 44px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 52px 14px 74px;
  }
  .hero h1 {
    font-size: 38px;
  }
  .hero p {
    font-size: 14px;
  }
  .tabs {
    width: 100%;
    max-width: 420px;
  }
  .main {
    margin-top: -28px;
  }
  .cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .cta::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 32px;
  }
  .tips-grid {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 14px;
  }
  .tab {
    font-size: 12px;
  }
}
