/* ============================
   GLOBAL STYLES
   ============================ */

body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f9f9f9;
  color: #333;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  padding-left: 20px;
  margin: 0 0 10px 0;
}

/* ============================
   BUTTONS (FIXED)
   ============================ */

.btn {
  background: #005eb8;
  color: #ffffff !important;
  padding: 12px 22px;
  margin: 5px;
  border-radius: 6px;
  font-size: 1rem;
  display: inline-block;
  font-weight: 600;
  text-decoration: none !important;
}

.btn:hover {
  background: #003f7d;
  color: #ffffff !important;
}

.btn-secondary {
  background: #777;
  color: #fff !important;
}

.btn-danger {
  background: #a00;
  color: #fff !important;
}

/* ============================
   HEADER + NAV
   ============================ */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #005eb8;
  color: white;
  padding: 10px 20px;
  position: relative;
  z-index: 1000;
}

.logo-area {
  display: flex;
  align-items: center;
}

.nav-logo {
  width: 50px;
  margin-right: 10px;
}

.site-title {
  font-size: 1.2em;
  font-weight: bold;
}

.navbar {
  position: relative;
}

.hamburger {
  background: none;
  border: none;
  color: white;
  font-size: 1.8em;
  cursor: pointer;
  display: none;
}

.nav-links {
  display: flex;
  gap: 15px;
}

.nav-links li a {
  color: white;
  font-weight: 500;
}

.nav-links li a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: #005eb8;
    position: absolute;
    top: 60px;
    right: 20px;
    width: 200px;
    border-radius: 5px;
    padding: 10px;
    z-index: 2000;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    margin: 10px 0;
  }
}

/* ============================
   HERO SECTION
   ============================ */

.hero {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(65%);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: white;
}

.overlay .logo {
  width: 80px;
  height: 80px;
  margin-bottom: 5px;
}

.overlay h1 {
  font-size: 2rem;
  margin: 10px 0;
}

.overlay p {
  font-size: 1.1rem;
  max-width: 600px;
}

.buttons {
  margin-top: 20px;
}

@media (max-width: 768px) {
  .hero {
    height: 350px;
  }

  .overlay .logo {
    width: 120px;
  }

  .overlay h1 {
    font-size: 1.6rem;
  }

  .overlay p {
    font-size: 1rem;
  }

  .btn {
    padding: 10px 18px;
    font-size: 0.95rem;
  }
}

/* ============================
   PAGE SECTIONS
   ============================ */

section {
  padding: 30px 20px;
  max-width: 900px;
  margin: auto;
}

.section-centered {
  text-align: center;
}

section h2,
section h3 {
  margin-bottom: 15px;
}

section p {
  font-size: 1.05rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  section {
    padding: 25px 15px;
  }

  section p {
    font-size: 1rem;
  }
}

/* ============================
   FOOTER
   ============================ */

.site-footer {
  background: #005eb8;
  color: white;
  text-align: center;
  padding: 15px;
  font-size: 0.95rem;
  margin-top: 40px;
}

/* ============================
   DOCUMENTS PAGE
   ============================ */

.doc-filters {
  text-align: center;
  padding: 20px;
}

.doc-filter-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.doc-filter-list a {
  background: #e6e6e6;
  padding: 8px 15px;
  border-radius: 5px;
  font-weight: 500;
  color: #333;
}

.doc-filter-list a:hover {
  background: #d4d4d4;
}

.doc-filter-list a.active {
  background: #005eb8;
  color: white;
}

.documents-list {
  max-width: 900px;
  margin: auto;
  padding: 20px;
}

.document-item {
  background: white;
  padding: 20px;
  margin-bottom: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: left;
}

.document-item h2 {
  margin-top: 0;
}

.doc-category {
  color: #005eb8;
  font-weight: bold;
  margin-bottom: 5px;
}

.doc-date {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

/* ============================
   ADMIN DASHBOARD
   ============================ */

.admin-grid {
  max-width: 1000px;
  margin: auto;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.admin-card {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: left;
  transition: transform 0.2s, box-shadow 0.2s;
  color: #333;
}

.admin-card h2 {
  margin-top: 0;
  color: #005eb8;
}

.admin-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* ============================
   ADMIN MENU
   ============================ */

.admin-top-nav {
  background: #003f7d;
  padding: 10px 20px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1500;
}

.admin-nav-links {
  display: flex;
  gap: 15px;
}

@media (max-width: 768px) {
  .admin-nav-links {
    display: none;
    flex-direction: column;
    background: #003f7d;
    position: absolute;
    top: 60px;
    right: 20px;
    width: 200px;
    padding: 10px;
    border-radius: 5px;
    z-index: 2000;
  }

  .admin-nav-links.show {
    display: flex;
  }
}

/* ============================
   NEWS ARTICLE CONTENT
   ============================ */

.news-article {
  text-align: left;
}

.news-article a {
  color: #005eb8;
  text-decoration: underline;
}

.news-article ul,
.news-article ol {
  margin-left: 30px;
  list-style: initial;
}

/* ============================
   NEWS LIST PAGE
   ============================ */

.news-list {
  max-width: 900px;
  margin: auto;
  padding: 20px;
}

.news-item {
  background: white;
  padding: 20px;
  margin-bottom: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: left;
}

.news-thumb {
  width: 100%;
  max-width: 250px;
  border-radius: 6px;
  margin-bottom: 15px;
}

.news-item h2 {
  margin-top: 0;
}

.news-item .date {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

/* ============================
   FINAL FIX — BUTTONS IN NEWS ARTICLES
   ============================ */

.news-article a.btn {
  color: #ffffff !important;
  text-decoration: none !important;
}

/* ============================
   CALENDAR CARDS
   ============================ */

.calendar-card {
  background: #ffffff;
  padding: 20px;
  margin-bottom: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  border-left: 6px solid #005eb8;
}

.calendar-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.calendar-card-header h2 {
  margin: 0;
  color: #005eb8;
}

.tag {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
  color: white;
  display: inline-block;
  margin-top: 10px;
}

/* Category colour coding */
.tag-whole-school { background: #005eb8; }
.tag-nursery { background: #e67e22; }
.tag-the-nest { background: #8e44ad; }
.tag-p1 { background: #3498db; }
.tag-p2 { background: #1abc9c; }
.tag-p3 { background: #2ecc71; }
.tag-p4 { background: #f1c40f; }
.tag-p5 { background: #e74c3c; }
.tag-p6 { background: #9b59b6; }
.tag-p7 { background: #34495e; }

.calendar-details p {
  margin: 8px 0;
  font-size: 1rem;
}

.calendar-actions {
  margin-top: 15px;
  text-align: right;
}
/* FILTER BUTTONS */
.calendar-filters {
  text-align: center;
  margin-bottom: 20px;
}

.filter-btn {
  background: #e6e6e6;
  border: none;
  padding: 8px 15px;
  margin: 5px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
}

.filter-btn:hover {
  background: #005eb8;
  color: white;
}

/* MINI SIDEBAR CALENDAR */
.mini-calendar {
  background: #fff;
  padding: 20px;
  margin-bottom: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.mini-calendar ul {
  list-style: none;
  padding-left: 0;
}

.mini-calendar li {
  margin-bottom: 8px;
}

/* MONTH DIVIDER */
.month-divider {
  font-size: 1.6rem;
  margin: 30px 0 10px;
  color: #005eb8;
  border-bottom: 2px solid #005eb8;
  padding-bottom: 5px;
}

/* TODAY HIGHLIGHT */
.today-highlight {
  border-left-color: #e74c3c !important;
  background: #fff7f7;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px 40px;
    margin-bottom: 20px;
}

.form-item label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
}

.form-item input,
.form-item select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
}
.form-item {
    display: flex;
    flex-direction: column;
    gap: 8px; /* spacing between label and input */
}

