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

body {
  min-height: 100vh;
  font-family: Arial, sans-serif;
  background: #f8fafc;
  color: #222;
  line-height: 1.6;
}

.navbar {
  background: white;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
}

.nav-logo {
  font-size: 24px;
  font-weight: bold;
  color: #1e3a8a;
  text-decoration: none;
}

.nav-links a {
  margin-left: 20px;
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 16px;

}

.nav-links a:hover,
a {
  color: #1e3a8a;
}

.header {
  background: #1e3a8a;
  color: white;
  text-align: center;
  padding: 50px 20px;
}

.header h1 {
  font-size: 42px;
}

.header p {
  margin-top: 10px;
  font-size: 18px;
}

.container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.hero {
  text-align: center;
  margin-bottom: 30px;
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.hero h2 {
  font-size: 30px;
  margin-bottom: 10px;
}

.hero p {
  margin-bottom: 8px;
}

.language-buttons {
  margin-top: 25px;
}

.language-buttons a {
  display: inline-block;
  background: white;
  color: #1e3a8a;
  text-decoration: none;
  padding: 10px 18px;
  margin: 5px;
  border-radius: 8px;
  font-weight: bold;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.card {
  background: white;
  padding: 28px;
  border-radius: 14px;
  text-decoration: none;
  color: #222;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

a.card {
  cursor: pointer;
}

a.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}

.card h3 {
  color: #1e3a8a;
  margin-bottom: 10px;
  font-size: 24px;
}

h2 {
  margin-bottom: 15px;
}

input {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
}

.grade-input,
.gpa-input,
.average-input,
.grade-input-es,
.gpa-input-es,
.average-input-es {
  margin-bottom: 12px;
}

button {
  background: #1e3a8a;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  margin-right: 10px;
  margin-bottom: 10px;
}

button:hover {
  opacity: 0.9;
}

.footer {
  margin-top: 60px;
  text-align: center;
  padding: 30px;
  border-top: 1px solid #ddd;
  color: #666;
}

.result {
  margin-top: 25px;
  padding: 20px;
  background: #eef2ff;
  border-radius: 12px;
  font-size: 26px;
  font-weight: bold;
  color: #1e3a8a;
}

.result small {
  display: block;
  font-size: 16px;
  color: #333;
  margin-top: 8px;
}

.calculator-box {
  background: white;
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 40px;
}

.browse-button {
  display: inline-block;
  margin-top: 20px;
  background: #1e3a8a;
  color: white;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: bold;
}

.browse-button:hover {
  opacity: 0.9;
  color: white;
}

/* HAMBURGER MENU */

.navbar {
  position: relative;
}

.menu-toggle {
  display: block;
  background: white;
  border: 2px solid #ddd;
  font-size: 28px;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 8px;
  color: #111;
}

.nav-links {
  display: none;
  position: absolute;
  top: 65px;
  right: 20px;
  background: white;
  min-width: 220px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  border-radius: 12px;
  overflow: hidden;
  z-index: 9999;
}

.nav-links.show {
  display: block;
}

.nav-links a {
  display: block;
  padding: 14px 20px;
  margin: 0;
  color: #222;
}

.nav-links a:hover {
  background: #f3f4f6;
  color: #1e3a8a;
}