* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background: #f3f6fb;
  color: #222;
}

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

header {
  background: white;
  border-bottom: 1px solid #ddd;
}

.navbar {
  max-width: 1200px;
  margin: auto;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-box {
  width: 42px;
  height: 42px;
  background: #0057d9;
  color: white;
  font-weight: bold;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo h2 {
  font-size: 18px;
}

.logo p {
  font-size: 12px;
  color: gray;
}

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

nav ul li {
  font-size: 14px;
  font-weight: 600;
  color: #222;
}

nav ul li:hover {
  color: #0057d9;
}

.btn-primary {
  background: #0057d9;
  color: white;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: bold;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #0043aa;
}

.hero {
  background: linear-gradient(to right, #0057d9, #4b2bd4);
  color: white;
  padding: 22px 15px;
}

.hero-container {
  max-width: 1200px;
  margin: auto;
}

.hero h1 {
  font-size: 38px;
}

.hero p {
  margin-top: 12px;
  max-width: 600px;
  color: #FF9900;
}

.search-box {
  background: white;
  margin-top: 30px;
  padding: 25px;
  border-radius: 18px;
  color: #222;
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.search-box h3 {
  margin-bottom: 15px;
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.search-grid input {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 14px;
}

.search-grid button {
  border-radius: 10px;
}

.note {
  font-size: 12px;
  color: gray;
  margin-top: 10px;
}

.section {
  max-width: 1200px;
  margin: auto;
  padding: 50px 15px;
}

.section h2 {
  font-size: 26px;
}

.section p {
  margin-top: 10px;
  color: #555;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.card {
  background: white;
  padding: 25px;
  border-radius: 18px;
  border: 1px solid #ddd;
  transition: 0.3s;
}

.card:hover {
  box-shadow: 0 12px 25px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.card h3 {
  font-size: 18px;
}

.card p {
  margin-top: 10px;
  font-size: 14px;
  color: #666;
}

.page-box {
  max-width: 900px;
  margin: auto;
  padding: 40px 15px;
}

.form-box {
  background: white;
  padding: 25px;
  border-radius: 18px;
  border: 1px solid #ddd;
  margin-top: 20px;
}

.form-box input,
.form-box textarea {
  width: 100%;
  padding: 12px;
  margin-top: 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 14px;
}

.form-box textarea {
  height: 130px;
}

.result-box {
  background: #f6f9ff;
  padding: 15px;
  border-radius: 12px;
  margin-top: 20px;
  font-size: 14px;
  color: #444;
}

footer {
  background: #111827;
  color: #bbb;
  padding: 40px 15px;
  margin-top: 50px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

footer h3 {
  color: white;
  margin-bottom: 10px;
}

footer a {
  color: #bbb;
  font-size: 14px;
}

footer a:hover {
  color: white;
}

.copy {
  text-align: center;
  padding-top: 20px;
  font-size: 12px;
  color: #666;
  border-top: 1px solid #333;
  margin-top: 20px;
}

/* Responsive */
@media(max-width: 900px) {
  nav ul {
    display: none;
  }

  .search-grid {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }
}

/* =========================
   iRail.info - Note / Legend Card
========================= */

.ir-note-card,
.ir-legend-card {
  background: #ffffff;
  border: 1px solid #e6ecf5;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(18, 38, 63, 0.06);
  margin-top: 20px;
  overflow: hidden;
}

.ir-note-head,
.ir-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #0b5cab, #0d6efd);
  color: #fff;
}

.ir-note-head h3,
.ir-card-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.ir-note-icon {
  font-size: 18px;
  margin-right: 8px;
}

.ir-note-body {
  padding: 16px 18px;
}

.ir-note-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #1f2d3d;
}

.ir-card-badge {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.ir-legend-table-wrap {
  overflow-x: auto;
}

.ir-legend-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.ir-legend-table thead th {
  background: #f6f9fc;
  color: #243b53;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid #e6ecf5;
}

.ir-legend-table tbody td {
  padding: 13px 16px;
  font-size: 14px;
  color: #334e68;
  border-bottom: 1px solid #eef3f8;
  vertical-align: top;
}

.ir-legend-table tbody tr:nth-child(even) {
  background: #fbfdff;
}

.ir-legend-table tbody tr:hover {
  background: #f3f8ff;
  transition: 0.2s ease;
}

.ir-legend-table tbody td:first-child {
  font-weight: 700;
  color: #0b5cab;
  white-space: nowrap;
  width: 180px;
}

/* Mobile */
@media (max-width: 768px) {
  .ir-note-head h3,
  .ir-card-header h3 {
    font-size: 16px;
  }

  .ir-note-text,
  .ir-legend-table tbody td {
    font-size: 13px;
  }

  .ir-card-badge {
    font-size: 11px;
    padding: 5px 8px;
  }
}

