/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: Arial, sans-serif; }
header { display: flex; justify-content: space-between; align-items: center; background-color: #004aad; padding: 10px 20px; }
header .logo img { height: 50px; }
nav ul { list-style: none; display: flex; gap: 20px; }
nav ul li a { text-decoration: none; color: white; font-weight: bold; }
nav ul li a.active { text-decoration: underline; }
.hero { text-align: center; background-color: #e6f0ff; padding: 80px 20px; }
.hero h1 { font-size: 3em; color: #004aad; }
.hero p { font-size: 1.2em; margin: 10px 0 20px; }
.hero .btn { padding: 10px 20px; background-color: #004aad; color: white; text-decoration: none; border-radius: 5px; }
.carousel { position: relative; max-width: 1000px; margin: 40px auto; }
.carousel .slides { position: relative; overflow: hidden; }
.carousel .slide { display: none; width: 100%; height: 500px; object-fit: cover; }
.carousel .slide.active { display: block; }
.carousel button.prev, .carousel button.next { position: absolute; top: 50%; transform: translateY(-50%); background-color: rgba(0,74,173,0.5); border: none; color: white; font-size: 2em; padding: 10px; cursor: pointer; }
.carousel button.prev { left: 10px; }
.carousel button.next { right: 10px; }
section { padding: 60px 20px; max-width: 1000px; margin: auto; }
.features ul { list-style-type: disc; padding-left: 20px; }
form { display: flex; flex-direction: column; gap: 15px; }
form input, form textarea { padding: 10px; border: 1px solid #004aad; border-radius: 5px; width: 100%; }
form button { padding: 10px; border: none; background-color: #004aad; color: white; font-weight: bold; border-radius: 5px; cursor: pointer; }
footer { text-align: center; padding: 20px; background-color: #004aad; color: white; }

/* Editable page content */
.editable-content p { margin: 12px 0; line-height: 1.6; }
.editable-content h2 { color: #004aad; margin-bottom: 15px; }
.demo-form .editable-content, .contact-form .editable-content { margin-bottom: 25px; }
.hero p { line-height: 1.5; }

/* Content Manager */
.admin-body { background: #f4f7fb; min-height: 100vh; }
.admin-wrap { width: min(1100px, calc(100% - 30px)); margin: 25px auto; }
.admin-header { display: flex; justify-content: space-between; align-items: center; background: #004aad; color: white; padding: 15px 20px; border-radius: 8px; margin-bottom: 20px; }
.admin-header > div { display: flex; align-items: center; gap: 15px; }
.admin-header img { height: 48px; }
.admin-header h1 { font-size: 1.5rem; }
.admin-link { color: white; font-weight: bold; }
.admin-grid { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
.admin-card { background: white; border: 1px solid #d8e0ea; border-radius: 8px; padding: 20px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.admin-card h2 { color: #004aad; margin-bottom: 12px; }
.admin-menu a { display: block; text-decoration: none; color: #004aad; padding: 10px 12px; margin: 4px 0; border-radius: 5px; font-weight: bold; }
.admin-menu a:hover, .admin-menu a.selected { background: #e6f0ff; }
.content-editor { min-height: 330px; font-family: Consolas, "Courier New", monospace; line-height: 1.5; }
.admin-help { color: #555; margin: 8px 0 15px; line-height: 1.5; }
.notice { padding: 12px 15px; border-radius: 6px; margin-bottom: 15px; font-weight: bold; }
.notice.success { background: #e8f7ec; border: 1px solid #8bc99a; }
.notice.error { background: #fdecec; border: 1px solid #df8f8f; }
.login-card { max-width: 500px; margin: 50px auto; }
@media (max-width: 760px) {
  .admin-grid { grid-template-columns: 1fr; }
  header { flex-direction: column; gap: 10px; }
  nav ul { flex-wrap: wrap; justify-content: center; }
}

/* Carousel performer additions */
.carousel .slides { background: #111; }
@media (max-width: 760px) {
  .carousel .slide { height: 320px; }
}

/* Home page photographic background */
.home-background-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  aspect-ratio: 1536 / 924;
  background-image: url('../images/home-background.png');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% 100%;
  position: relative;
}

/* Keep editable Home content available to screen readers without drawing
   duplicate wording over the text already contained in the background art. */
.home-background-accessible {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  .home-background-page {
    aspect-ratio: 1536 / 924;
    background-size: cover;
    background-position: center top;
    min-height: 520px;
  }
}
