/* RESET & FONTS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: #f4f8fc;
  color: #333;
  line-height: 1.6;
}

/* CONTAINER UTAMA */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* NAVBAR */
.navbar {
  background: linear-gradient(to right, #003366, #ff6600);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
}

.logo {
  font-size: 1.5em;
  font-weight: bold;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #ffd700;
}

/* HERO */
.hero {
  background: url('bg_kereta.jpg') no-repeat center center/cover;
  padding: 100px 20px;
  color: white;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3em;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.2em;
  max-width: 700px;
  margin: 0 auto;
}

.btn-hero {
  margin-top: 25px;
  padding: 12px 30px;
  background: #bd5008;
  color: white;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-size: 18px;
  display: inline-block;
  transition: background 0.3s;
}

.btn-hero:hover {
  background: #e65c00;
}

/* FORM SECTION */
.form-section {
  background: white;
  padding: 60px 20px;
  text-align: center;
}

.form-section h2 {
  font-size: 2em;
  color: #003366;
}

.booking-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  max-width: 800px;
  margin: 30px auto 20px;
}

.booking-form select,
.booking-form button {
  padding: 12px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.booking-form button {
  background: #003366;
  color: white;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.booking-form button:hover {
  background: #003366;
}

/* FILTERS */
.filters {
  margin-top: 20px;
}

.filters label {
  margin-right: 10px;
  font-weight: bold;
}

.filters select {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* POPULAR TRAINS */
.popular-section {
  background: #e9f4ff;
  padding: 60px 20px;
  text-align: center;
}

.popular-section h2 {
  font-size: 2em;
  color: #FF6600;
  margin-bottom: 30px;
}

.cards {
  display: flex;
  gap: 25px;
  justify-content: center;
  flex-wrap: wrap;
}

.card {
  background: white;
  padding: 25px;
  border-radius: 10px;
  width: 250px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  color: #003366;
  margin-bottom: 10px;
}

/* TESTIMONIAL */
.testimonials {
  padding: 60px 20px;
  background: #fffaf0;
  text-align: center;
}

.testimonials h2 {
  font-size: 2em;
  margin-bottom: 30px;
  color: #003366;
}

.testi-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.testi {
  background: white;
  padding: 20px;
  border-left: 5px solid #ff6600;
  border-radius: 8px;
  max-width: 400px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* FOOTER */
footer {
  background-color: #003366;
  color: white;
  padding: 50px 20px 20px;
}

.footer {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-left,
.footer-right {
  flex: 1 1 300px;
}

.footer h3,
.footer h4 {
  margin-bottom: 15px;
  font-size: 20px;
}

.footer p {
  margin: 6px 0;
  line-height: 1.6;
}

.footer a {
  color: white;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Garis pemisah */
.footer::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.3);
  margin-top: 30px;
}

/* COPYRIGHT */
.copyright {
  text-align: center;
  background-color: #003366;
  color: white;
  padding: 12px 20px;
  font-size: 0.9em;
  margin-top: 10px;
}
