/* ================================================================
   whatsmydegreeworth.com  -  Shared styles
   ================================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #2b3340;
  background: #f6f8fb;
  line-height: 1.6;
}

a { color: #1b4f8e; }

/* ----------------------------- Header / Nav ----------------------------- */
header {
  background: #1b4f8e;
  color: white;
  padding: 16px 32px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 16px;
}

nav .logo {
  font-size: 22px;
  font-weight: bold;
  color: white;
  text-decoration: none;
}

nav .logo span {
  color: #ffd84d;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 15px;
}

nav a:hover {
  text-decoration: underline;
}

/* ----------------------------- Hero ----------------------------- */
.hero {
  background: linear-gradient(135deg, #1b4f8e 0%, #3b82f6 100%);
  color: white;
  padding: 80px 32px;
  text-align: center;
}

.hero h1 {
  font-size: 44px;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero p {
  font-size: 18px;
  max-width: 720px;
  margin: 0 auto 32px;
  opacity: 0.95;
}

.cta {
  display: inline-block;
  background: #ffd84d;
  color: #1b4f8e;
  padding: 14px 32px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  margin: 6px;
}

.cta:hover {
  background: #ffc926;
}

.cta-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.cta-secondary:hover {
  background: white;
  color: #1b4f8e;
}

/* ----------------------------- Main / Sections ----------------------------- */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 32px;
}

section {
  margin-bottom: 48px;
}

h2 {
  color: #1b4f8e;
  font-size: 30px;
  margin-bottom: 16px;
}

h3 {
  color: #1b4f8e;
  font-size: 20px;
  margin-bottom: 10px;
}

p {
  margin-bottom: 12px;
}

/* ----------------------------- Cards ----------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.card {
  background: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.card h3 {
  border-bottom: 2px solid #ffd84d;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

/* ----------------------------- Steps ----------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.step {
  background: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.step-number {
  display: inline-block;
  width: 48px;
  height: 48px;
  line-height: 48px;
  background: #1b4f8e;
  color: white;
  border-radius: 50%;
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 12px;
}

/* ----------------------------- Forms ----------------------------- */
.form-box {
  max-width: 520px;
  margin: 32px auto;
  background: white;
  padding: 32px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.form-box h2 {
  text-align: center;
  margin-bottom: 24px;
}

.form-row {
  margin-bottom: 16px;
}

.form-row label {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
  color: #1b4f8e;
  font-size: 14px;
}

input[type="text"],
input[type="password"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.btn {
  background: #1b4f8e;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  text-decoration: none;
  display: inline-block;
  margin: 4px 4px 4px 0;
}

.btn:hover {
  background: #143a6a;
}

.btn-secondary {
  background: #e3e7ed;
  color: #2b3340;
}

.btn-secondary:hover {
  background: #c9d0db;
}

.form-footer {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
}

/* ----------------------------- Tables ----------------------------- */
.table-wrap {
  overflow-x: auto;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  background: #1b4f8e;
  color: white;
  padding: 14px;
  text-align: left;
  font-size: 14px;
}

.table td {
  padding: 12px 14px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.table tr:hover td {
  background: #f6f8fb;
}

.table a {
  color: #1b4f8e;
  text-decoration: none;
  font-weight: bold;
}

.table a:hover {
  text-decoration: underline;
}

/* ----------------------------- Skill tags ----------------------------- */
.skill-tag {
  display: inline-block;
  background: #e6efff;
  color: #1b4f8e;
  padding: 5px 12px;
  border-radius: 12px;
  margin: 4px 4px 4px 0;
  font-size: 13px;
}

.skill-tag.match {
  background: #e2f7e1;
  color: #1f6b1f;
}

.skill-tag.missing {
  background: #fde7e7;
  color: #b32d2d;
}

.skill-tag.soft {
  border: 1px dashed #1b4f8e;
}

/* ----------------------------- Filter bar ----------------------------- */
.filter-bar {
  background: white;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-bar label {
  font-weight: bold;
  color: #1b4f8e;
}

.filter-bar select {
  width: auto;
  min-width: 200px;
}

/* ----------------------------- Alerts / Info boxes ----------------------------- */
.alert {
  padding: 16px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.alert-info {
  background: #e6efff;
  color: #1b4f8e;
  border-left: 4px solid #1b4f8e;
}

.alert-warn {
  background: #fff7d6;
  color: #7a5b00;
  border-left: 4px solid #ffd84d;
}

.alert-error {
  background: #fde7e7;
  color: #b32d2d;
  border-left: 4px solid #b32d2d;
}

.alert-success {
  background: #e2f7e1;
  color: #1f6b1f;
  border-left: 4px solid #1f6b1f;
}

/* ----------------------------- Footer ----------------------------- */
footer {
  background: #1b4f8e;
  color: white;
  padding: 24px 32px;
  text-align: center;
  font-size: 14px;
  margin-top: 48px;
}

footer a {
  color: #ffd84d;
}

/* ----------------------------- Premium badge ----------------------------- */
.premium-badge {
  display: inline-block;
  background: #ffd84d;
  color: #1b4f8e;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  vertical-align: middle;
  margin-left: 8px;
}

/* ----------------------------- Degree rows (profile) ----------------------------- */
.degree-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #f6f8fb;
  border: 1px solid #e3e7ed;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 10px;
}

.degree-uni {
  font-size: 13px;
  color: #6b7480;
}

.btn-small {
  padding: 6px 14px;
  font-size: 13px;
}

/* ----------------------------- Compare picker ----------------------------- */
.compare-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.compare-option {
  display: block;
  background: #f6f8fb;
  border: 1px solid #e3e7ed;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  cursor: pointer;
}

.compare-option input {
  width: auto;
  margin-right: 8px;
}

/* ----------------------------- Compare table ----------------------------- */
.compare-table th {
  text-align: center;
}

.compare-table th:first-child {
  text-align: left;
}

.compare-table .th-sub {
  font-weight: normal;
  font-size: 12px;
  opacity: 0.85;
}

.compare-cell {
  text-align: center;
}

.compare-table .tick {
  color: #1f6b1f;
  font-size: 18px;
  font-weight: bold;
}

.compare-table .cross {
  color: #c0c6cf;
  font-size: 18px;
}

/* ----------------------------- Responsive tweaks ----------------------------- */
@media (max-width: 600px) {
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  nav ul { gap: 14px; }
  main { padding: 32px 16px; }
}
