/*
Theme Name: School2
Theme URI: https://example.com/
Author: H. Brandsma
Author URI: https://example.com/
Description: Minimal clean theme with editable Header/Footer pages and a 3-column layout.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: school2
*/

/* ---- Base ---- */
* { box-sizing: border-box; }

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

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

/* ---- Layout sizes ---- */
:root {
  --header-h: 90px;
  --footer-h: 50px;
}

/* Body itself does not scroll */
body {
  overflow: hidden;
  background: #cfe9ff;
}

/* ---- Fixed header / menu area ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: #c9f7c1;
  z-index: 1000;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(0,0,0,0.12);
}

.site-header-inner {
  width: 100%;
  height: 100%;
  padding: 0 20px;
  display: flex;
  gap: 24px;
  align-items: center;
}

/* Left header content, for logo/title */
.header-content {
  flex: 1;
  min-width: 0;
}

/* Menu has fixed place on the right/top */
.header-menu {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

/* ---- Menu styling ---- */
.header-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  align-items: center;
}

.header-menu li {
  margin: 0;
  padding: 0;
}

.header-menu a {
  display: block;
  text-decoration: none;
  color: #1a1a1a;
  padding: 8px 12px;
  border-radius: 6px;
  white-space: nowrap;
  font-size: 15px;
  line-height: 1.2;
}

.header-menu a:hover,
.header-menu .current-menu-item > a,
.header-menu .current_page_item > a {
  background: rgba(255,255,255,0.65);
}

/* ---- Fixed footer ---- */
.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--footer-h);
  background: #f2f2f2;
  z-index: 1000;
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(0,0,0,0.12);
}

.site-footer-inner {
  width: 100%;
  padding: 0 20px;
  font-size: 14px;
  line-height: 1.2;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ---- Scrollable page content below menu ---- */
.site-main {
  position: fixed;
  top: var(--header-h);
  bottom: var(--footer-h);
  left: 0;
  right: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px;
}

/* ---- Content area ---- */
.content-wrap {
  max-width: 100%;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 10px;
  padding: 24px;
  min-height: 100%;
}

/* Content spacing */
.entry-content > :first-child {
  margin-top: 0;
}

.entry-content > :last-child {
  margin-bottom: 0;
}

/* ---- Small screens ---- */
@media (max-width: 600px) {
  :root {
    --header-h: 120px;
  }

  .site-header-inner {
    padding: 10px 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .header-menu {
    width: 100%;
    overflow-x: auto;
  }

  .header-menu ul {
    flex-wrap: nowrap;
  }

  .header-menu a {
    padding: 7px 10px;
    font-size: 14px;
  }

  .site-main {
    padding: 12px;
  }

  .content-wrap {
    padding: 16px;
  }
}