/* SchoolFoyer.com — Restored Orange & Blue Directory Stylesheet */
:root {
  --orange-primary: #e86f1c;
  --orange-dark: #c9580d;
  --blue-primary: #1d5fa7;
  --blue-dark: #14467d;
  --bg-page: #f5f7fa;
  --bg-white: #ffffff;
  --border-soft: #dde3ec;
  --text-main: #222222;
  --text-muted: #5a6470;
  --max-width: 1080px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--blue-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: var(--blue-dark);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-soft);
}

.header-top {
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-name {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--orange-primary);
  line-height: 1.1;
}

.brand-name span {
  color: var(--blue-primary);
}

.brand-sub {
  display: block;
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-orange {
  display: inline-block;
  background-color: var(--orange-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 9px 18px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-orange:hover {
  background-color: var(--orange-dark);
  color: #ffffff;
  text-decoration: none;
}

.btn-blue {
  display: inline-block;
  background-color: var(--blue-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 9px 18px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-blue:hover {
  background-color: var(--blue-dark);
  color: #ffffff;
  text-decoration: none;
}

/* Main Navigation */
.site-nav {
  background-color: var(--blue-primary);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.nav-list li a {
  display: block;
  padding: 12px 16px;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.nav-list li a:hover,
.nav-list li a[aria-current="page"] {
  background-color: var(--orange-primary);
  color: #ffffff;
  text-decoration: none;
}

/* Hero Banner */
.hero-banner {
  background: linear-gradient(rgba(16, 48, 86, 0.78), rgba(16, 48, 86, 0.82)),
              url("https://upload.wikimedia.org/wikipedia/commons/e/eb/King%27s_college_Lagos.jpg") center/cover no-repeat;
  color: #ffffff;
  padding: 48px 0;
  border-bottom: 4px solid var(--orange-primary);
}

.hero-banner h1 {
  margin: 0 0 8px;
  font-size: 2.1rem;
  line-height: 1.2;
}

.hero-banner p {
  margin: 0 0 22px;
  color: #e8f0fa;
  font-size: 1.03rem;
  max-width: 720px;
}

.search-panel {
  background-color: rgba(255, 255, 255, 0.96);
  border-radius: 6px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1.1fr auto;
  gap: 12px;
  align-items: end;
  color: var(--text-main);
}

.search-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 4px;
}

.search-field input,
.search-field select {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #c7d1df;
  border-radius: 4px;
  font-size: 0.92rem;
  font-family: inherit;
}

/* Main Content */
main {
  flex: 1;
  padding: 32px 0 48px;
}

.content-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.03);
}

.section-title {
  margin: 0 0 16px;
  font-size: 1.35rem;
  color: var(--blue-dark);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--orange-primary);
}

/* Featured Photo Strip */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 18px 0 6px;
}

.photo-card {
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  overflow: hidden;
  background-color: #fbfcfe;
}

.photo-card img {
  width: 100%;
  height: 185px;
  object-fit: cover;
}

.photo-card-body {
  padding: 14px 16px;
}

.photo-card-body h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  color: var(--blue-dark);
}

.photo-card-body p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Category Grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cat-box {
  border: 1px solid var(--border-soft);
  border-left: 4px solid var(--orange-primary);
  border-radius: 4px;
  padding: 14px 16px;
  background-color: #fcfdff;
}

.cat-box h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.cat-views {
  font-size: 0.78rem;
  color: var(--orange-dark);
  font-weight: 700;
  white-space: nowrap;
}

.cat-box p {
  margin: 0;
  font-size: 0.87rem;
  color: var(--text-muted);
}

/* Two-Column Listings */
.two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.listing-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.listing-item {
  border: 1px solid var(--border-soft);
  border-radius: 5px;
  padding: 14px 16px;
  background-color: #fafbfd;
}

.listing-item h3 {
  margin: 0 0 4px;
  font-size: 1.02rem;
  color: var(--blue-primary);
}

.listing-addr {
  margin: 0 0 6px;
  font-size: 0.88rem;
  color: var(--text-main);
}

.listing-meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Advertise Strip */
.ad-banner {
  background: linear-gradient(135deg, var(--orange-primary) 0%, var(--orange-dark) 100%);
  color: #ffffff;
  border-radius: 6px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.ad-banner h2 {
  margin: 0 0 4px;
  font-size: 1.3rem;
  color: #ffffff;
}

.ad-banner p {
  margin: 0;
  color: #fff4eb;
  font-size: 0.96rem;
}

.ad-banner a.btn-white {
  background-color: #ffffff;
  color: var(--orange-dark);
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
}

/* States Grid & Tables */
.states-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.states-grid li a {
  display: block;
  padding: 9px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  background-color: #fafbfd;
  font-weight: 600;
  font-size: 0.9rem;
}

.states-grid li a:hover {
  border-color: var(--orange-primary);
  background-color: #fff8f2;
}

.plan-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.plan-table th,
.plan-table td {
  border: 1px solid var(--border-soft);
  padding: 12px 14px;
  text-align: left;
  font-size: 0.92rem;
}

.plan-table th {
  background-color: var(--blue-primary);
  color: #ffffff;
}

.plan-table tr:nth-child(even) {
  background-color: #f8fafd;
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #c5d0df;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.94rem;
}

.feature-photo {
  margin: 0 0 22px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
}

.feature-photo img {
  width: 100%;
  height: 310px;
  object-fit: cover;
}

.feature-photo figcaption {
  padding: 9px 14px;
  background-color: #f7f9fc;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background-color: var(--blue-dark);
  color: #dce6f5;
  padding: 28px 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  font-size: 0.9rem;
}

.footer-links a {
  color: #ffffff;
}

.footer-copy {
  margin: 0;
  font-size: 0.86rem;
  color: #b9cde6;
}

@media (max-width: 860px) {
  .search-panel,
  .photo-strip,
  .cat-grid,
  .two-col,
  .form-grid {
    grid-template-columns: 1fr;
  }

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