/* Elite EDU Learning Centre — shared styles */

:root {
  --navy: #2b2e83;
  --navy-dark: #1f2261;
  --text: #1a1a1a;
  --text-muted: #555;
  --border: #e2e2e2;
  --bg: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: var(--navy);
}

img {
  max-width: 100%;
}

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

/* Header */

.site-header {
  border-bottom: 4px solid var(--navy);
  background: var(--bg);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand img {
  height: 48px;
  width: auto;
  display: block;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  padding: 6px 2px;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--navy);
  border-bottom: 2px solid var(--navy);
}

/* Mobile nav toggle */

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--navy);
  border-radius: 6px;
  color: var(--navy);
  font-size: 1rem;
  padding: 6px 10px;
  cursor: pointer;
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--border);
    margin-top: 10px;
    padding-top: 10px;
  }

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

  .main-nav a {
    padding: 10px 4px;
  }
}

/* Main content */

main {
  min-height: 60vh;
  padding: 40px 0 60px;
}

h1 {
  color: var(--navy);
  margin-top: 0;
}

h2 {
  color: var(--navy-dark);
}

.hero {
  text-align: center;
  padding: 30px 0 10px;
}

.hero p.tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 10px auto 0;
}

.btn {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  padding: 12px 26px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 20px;
}

.btn:hover {
  background: var(--navy-dark);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
}

.card h3 {
  color: var(--navy);
  margin-top: 0;
}

/* Locations page */

.location-block {
  margin-top: 20px;
}

.location-block h2 {
  margin-bottom: 6px;
}

.location-block h3 {
  color: var(--navy);
  margin-bottom: 8px;
}

.location-columns {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.location-info {
  flex: 1 1 360px;
  min-width: 280px;
}

.address {
  font-style: normal;
  color: var(--text-muted);
  margin: 0 0 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

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

.hours-table th {
  text-align: left;
  border-bottom: 2px solid var(--navy);
  padding: 8px 0;
  color: var(--navy);
}

.hours-table th:last-child {
  text-align: right;
}

.hours-table td {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.hours-table td:last-child {
  text-align: right;
  color: var(--text-muted);
}

.map-embed {
  flex: 1 1 420px;
  min-width: 280px;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
}

/* Contact page */

.contact-note {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  max-width: 480px;
}

.contact-note .social-links {
  justify-content: flex-start;
  margin-top: 16px;
  margin-bottom: 0;
}

/* Placeholder page notice */

.placeholder-notice {
  border: 2px dashed var(--navy);
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-top: 20px;
}

/* Footer */

.site-footer {
  border-top: 4px solid var(--navy);
  padding: 24px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
}

.social-links a:hover {
  background: var(--navy-dark);
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
