/* Reset + viewport */
html, body {
  height: 100%;
}
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #333;
  background: #FEF6E4;

  /* Reliable centering */
  min-height: 100svh;          /* Accounts for mobile browser UI */
  display: grid;
  place-items: center;         /* Centers .page both vertically and horizontally */
}

/* Page wrapper: constrains width and allows scrolling if content is taller than viewport */
.page {
  width: 100%;
  max-width: 900px;
  padding: 20px;
  display: grid;
  gap: 20px;
  justify-items: center;       /* Center children horizontally */
}

/* Card styles */
.card {
  width: 100%;
  max-width: 700px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 20px;
  text-align: center;
}

.header {
  background: #fff;
  color: #333;
}

.footer {
  background: #3498db;
  color: #fff;
  border-top: 4px solid #2980b9;
}

/* Content container */
.container {
  width: 100%;
  display: grid;
  gap: 20px;
  justify-items: center;
}

/* Centered lists: list block is centered; items remain readable */
.centered-list {
  list-style-position: inside;
  margin: 0;
  padding: 0;
  display: inline-block;   /* Center the list block */
  text-align: left;        /* Keep item text aligned for readability */
}

.centered-list li {
  margin-bottom: 10px;
}

/* Links */
a {
  color: #1f6feb;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
  .card {
    padding: 16px;
  }
}
/* Contacts Grid */
.contacts-grid {
  display: flex;
  justify-content: center;   /* Center the two columns */
  gap: 40px;                 /* Space between them */
  flex-wrap: wrap;           /* Stack on smaller screens */
  margin-top: 20px;
}

.contact {
  flex: 1 1 300px;           /* Responsive width */
  max-width: 350px;
  background: #f9f9f9;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
}

.contact h3 {
  margin-top: 0;
  color: #2c3e50;
}

/* Back Link */
.back-link {
  margin: 2rem;
  display: flex;
  justify-content: center;
}

.back-link a {
  display: inline-block;
  padding: 10px 20px;
  background: #3498db;
  border-radius: 6px;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  transition: background 0.3s ease;
}

.back-link a:hover {
  background: #2980b9;
}