:root {
  --bg-main: #050505;
  --bg-card: #0f0f0f;
  --text-main: #f5f5f5;
  --text-muted: #d0d0d0;
  --border-dark: #262626;

  --red-main: #8f1820;
  --red-accent: #e02b32;
  --red-hover: #ff3a43;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(224, 43, 50, 0.10), transparent 28%),
    linear-gradient(180deg, #050505 0%, #090909 100%);
  color: var(--text-main);
}

.container {
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  background-color: rgba(8, 8, 8, 0.96);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

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

.logo-img {
  height: 42px;
  width: auto;
  display: block;
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 66px;
  gap: 0.8rem;
}

.brand {
  font-size: 1.08rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.site-nav a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  padding: 0.4rem 0.7rem;
  border-radius: 10px;
  font-size: 0.95rem;
  transition: 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  background-color: rgba(224, 43, 50, 0.12);
  color: #ffffff;
}

.nav-toggle {
  display: none;
  background: transparent;
  color: white;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}

.page-top {
  padding-top: 1.4rem;
  padding-bottom: 2rem;
}

.section-space-top {
  margin-top: 18px;
}

h1, h2, h3, h4, h5, h6 {
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 0.5rem;
  line-height: 1.18;
}

p, li, label, span, summary {
  color: var(--text-main);
  line-height: 1.52;
  font-size: 0.96rem;
}

p {
  margin-top: 0;
  margin-bottom: 0.65rem;
}

.muted {
  color: var(--text-muted);
}

/* HERO */
.hero-card {
  background: linear-gradient(180deg, #151515 0%, #101010 100%);
  padding: 26px 28px;
  border-radius: 18px;
  border: 1px solid rgba(224, 43, 50, 0.4);
  box-shadow: 0 0 18px rgba(224, 43, 50, 0.08);
  margin-bottom: 20px;
  text-align: left;
}

.hero-logo {
  height: 90px;
  width: auto;
  margin-bottom: 0px;
  display: block;
  margin-left: auto;
}

.hero-card h1 {
  color: var(--red-accent);
  font-size: 2.2rem;
  margin-bottom: 0.9rem;
}

.hero-card h3 {
  color: #f2f2f2;
  font-weight: 600;
  font-size: 1.02rem;
  margin-bottom: 0.7rem;
}

.hero-text {
  max-width: 660px;
  color: var(--text-main);
  font-size: 1.2rem;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.hero-copy {
  flex: 1;
  min-width: 0;
}

.hero-copy h3{
font-size: 1.35rem;
margin-bottom: 1.0rem;
}

.hero-copy h1,
.hero-copy p {
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}

.hero-logo {
  width: 200px;
  height: auto;
  flex-shrink: 0;
}

.hero-text {
  max-width: 650px;
}

/* CARDS */
.info-card,
.mini-card {
  background-color: #101010;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid var(--border-dark);
  margin-bottom: 0;
  text-align: left;
}

.timetable-section h2 {
  font-size: 1.6rem;
}

.timetable-section p {
  font-size: 1.2rem;
}

.timetable-image {
  display: block;
  width: 70%;
  max-width: 700px;
  height: auto;
  margin: 12px auto 0 auto;
  border-radius: 14px;
  border: 1px solid var(--border-light);
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
}

.mini-card h2,
.mini-card h3,
.info-card h2,
.info-card h3 {
  text-align: left;
}

.three-col-grid,
.two-col-grid {
  display: grid;
  gap: 14px;
}

.three-col-grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
}

.two-col-grid {
  grid-template-columns: repeat(2, 1fr);
}

/* stats */
.stat-card {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-label {
  font-size: 0.9rem;
  color: #dcdcdc;
  margin-bottom: 0.7rem;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
}

.stats-grid .mini-card h3 {
  font-size: 1.2rem;
  color: #dcdcdc;
  margin-bottom: 0.7rem;
  text-align: left;
}

.stats-grid .mini-card p {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 0;
  text-align: left;
}

/* BUTTONS */
.btn {
  display: inline-block;
  background: linear-gradient(180deg, var(--red-accent) 0%, var(--red-main) 100%);
  color: white;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 0.62rem 1rem;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: 0.2s ease;
  box-shadow: 0 0 10px rgba(224, 43, 50, 0.12);
}

.btn:hover {
  background: linear-gradient(180deg, var(--red-hover) 0%, var(--red-accent) 100%);
  color: white;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: #1b1b1b;
  color: #ececec;
  border: 1px solid #3a3a3a;
  box-shadow: none;
}

.btn-secondary:hover {
  background-color: #252525;
  border-color: #4a4a4a;
  color: white;
}

.preview-btn {
  margin-top: 10px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
  justify-content: flex-start;
}

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  justify-content: flex-start;
}

/* quick parent guide */
.quick-guide {
  background-color: #101010;
  border: 1px solid var(--border-dark);
  border-radius: 14px;
  padding: 17px 20px;
  text-align: center;
}

.quick-guide h2 {
  text-align: left;
  font-size: 1.6rem;
}

.quick-guide .tab-panel p {
  font-size: 1.15rem;
  line-height: 1.65;
  max-width: 700px;
  margin: 0 auto;
}

.tab-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 15px;
  margin-bottom: 15px;
  justify-content: center;
}

.tab-btn {
  background-color: #181818;
  color: white;
  border: 1px solid #353535;
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: 0.2s ease;
}

.tab-btn.active,
.tab-btn:hover {
  background-color: rgba(224, 43, 50, 0.14);
  border-color: rgba(224, 43, 50, 0.5);
}

.tab-panel {
  display: none;
  text-align: left;
}

.tab-panel.active {
  display: block;
}

/* forms */
.form-group {
  margin-bottom: 0.85rem;
  text-align: left;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  border: 1px solid #323232;
  background-color: #101010;
  color: white;
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--red-accent);
  box-shadow: 0 0 0 2px rgba(224, 43, 50, 0.12);
}

.form-message {
  margin-top: 0.7rem;
  font-weight: 600;
}

.form-message.success {
  color: #9be79b;
}

.form-message.error {
  color: #ff9d9d;
}

.highlight-box {
  margin-top: 0.8rem;
  padding: 0.8rem;
  border-radius: 12px;
  background-color: #151515;
  border: 1px solid rgba(224, 43, 50, 0.18);
  text-align: center;
}

details {
  background-color: #151515;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 0.85rem;
  margin-bottom: 0.7rem;
  text-align: left;
}

details summary {
  cursor: pointer;
  font-weight: 700;
}

.info-card ul,
.mini-card ul {
  text-align: left;
  padding-left: 1.1rem;
}

@media (max-width: 900px) {
  .three-col-grid,
  .two-col-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    padding: 22px 20px;
  }

  .hero-card h1 {
    font-size: 1.95rem;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 0.8rem;
  }

  .site-nav.open {
    display: flex;
  }

  .nav-wrap {
    flex-wrap: wrap;
  }

  .site-nav a {
    padding: 0.65rem 0.2rem;
  }

  .container {
    width: min(920px, calc(100% - 1.2rem));
  }
}

/* MOBILE WIDTH FIXES */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 600px) {
  .container {
    width: calc(100% - 1rem);
  }

  .page-top {
    padding-top: 1rem;
    padding-bottom: 1.5rem;
  }

  .hero-card,
  .info-card,
  .mini-card,
  .quick-guide {
    padding: 14px 12px;
    border-radius: 12px;
  }

  .hero-top {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .hero-copy {
    flex: 1;
    min-width: 0;
  }

  .hero-logo {
    width: 38%;
    max-width: 150px;
    min-width: 105px;
    margin-left: 0;
    flex-shrink: 0;
  }

  .hero-card h1 {
    font-size: 1.45rem;
    margin-bottom: 0.45rem;
  }

  .hero-copy h3 {
    font-size: 0.95rem;
    margin-bottom: 0.45rem;
  }

  .hero-text {
    font-size: 0.88rem;
    line-height: 1.42;
  }

  .stats-grid .mini-card p {
    font-size: 1.35rem;
  }

  .tab-buttons {
    justify-content: flex-start;
    gap: 8px;
  }

  .tab-btn {
    width: 100%;
    border-radius: 10px;
    font-size: 0.95rem;
    text-align: center;
  }

  .button-row {
    flex-direction: column;
    gap: 8px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .timetable-image {
    width: 100%;
    max-width: 100%;
  }

  .info-card p,
  .mini-card p,
  .info-card li,
  .mini-card li,
  .btn {
    overflow-wrap: anywhere;
  }

  .brand {
    font-size: 0.95rem;
  }

  .logo-img {
    height: 34px;
  }
}