/* ===========================
   Theme Variables
   =========================== */
:root {
  --hallcream: #FFFFCC;
  --hallred: #990000;
  --hallgreen: #009900;
  --text: #333;
}

/* ===========================
   Reset & Base
   =========================== */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *::before, *::after { box-sizing: inherit; }

body, h1, h2, h3, h4, h5, h6, p, ol, ul {
  margin: 0;
  padding: 0;
  font-weight: normal;
}

body {
  font-family: "Segoe UI", sans-serif;
  color: var(--text);
  background-color: #fcfcfc;
  line-height: 1.6;
}

/* ===========================
   Page Container
   =========================== */
.page {
  width: 80%;
  max-width: 1000px;
  margin: 0 auto;
  background-color: var(--hallcream);
  padding-bottom: 40px;
}

/* ===========================
   Typography
   =========================== */
h1, h2, h3, h4, h5, h6 {
  font-family: "Segoe UI", sans-serif;
  color: var(--hallred);
}
p {
  font-family: 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 1rem;
  padding-left: 10%;
  padding-top: 1rem;
}
hr { border-top: 2px solid var(--hallred); }

/* =========================== 
   .event-title and .event-date 
   used below near the @media declartions
   for index page PC/mobile division
   ===========================*/

.event1 table {
  margin: 0 auto;   
}
.event-block {
  background-color: var(--hallcream);
  padding: 15px;
}

/* Table behaviour for home page*/
.coming-soon {
  color: var(--hallred);
}

.event-table {
  width: auto;                /* prevents full-page stretch */
  table-layout: auto;         /* lets columns size naturally */
  border-collapse: collapse;
}

/* Column 1: shrink to fit content */
.event-title {
  white-space: nowrap;        /* prevents wrapping, keeps column tight */
  padding-left: 20px;        /* nice spacing off the edge */
  padding-right: 20px;        /* nice spacing before column 2 */
}

/* Column 2: expands naturally */
.event-date {
  width: 100%;
}

/* Mobile stacking */
@media (max-width: 768px) {
  .event-table td {
    display: block;
    padding-bottom: 4px;
  }
}

/* ===========================
   Links
   =========================== */
a {
  color: var(--hallred);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--hallgreen);
  text-decoration: underline;
}

/* ===========================
   Shared Navigation Styles
   =========================== */
.top-nav ul,
.bot-nav ul {
  list-style: none;
  display: flex;
  justify-content: space-evenly;
  width: 100%;
  padding: 0;
  margin: 0;
}
.top-nav li,
.bot-nav li { text-align: center; }
.top-nav a,
.bot-nav a {
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}
.top-nav a.active,
.bot-nav a.active { border-bottom: 2px solid var(--hallred); }

/* ===========================
   Top Navigation
   =========================== */
#nav-container-top {
  background-color: var(--hallcream);
  color: var(--hallred);
}
.top-nav a { color: var(--hallred); }
.top-nav a:hover { color: var(--hallgreen); text-decoration: underline; }

/* ===========================
   Bottom Navigation
   =========================== */
#nav-container-bot {
  background-color: var(--hallred);
  color: var(--hallcream);
}
.bot-nav a { color: var(--hallcream); }
.bot-nav a:hover { color: var(--hallgreen); text-decoration: underline; }

/* ===========================
   Dark Mode Toggle
   =========================== */
.dark-options {
  display: flex;
  gap: 10px;
  margin-left: auto;
}
.dark-options button {
  background: none;
  border: 1px solid var(--hallred);
  color: var(--hallred);
  padding: 6px 10px;
  cursor: pointer;
  font-size: 0.9em;
}
.dark-options button:hover {
  background-color: var(--hallred);
  color: var(--hallcream);
}

/* ===========================
   Search Form
   =========================== */
.search-form {
  display: flex;
  gap: 8px;
  margin-left: 20px;
}
.search-form input {
  padding: 6px 8px;
  font-size: 1em;
}
.search-form button {
  padding: 6px 12px;
  background-color: var(--hallred);
  color: var(--hallcream);
  border: none;
  cursor: pointer;
  font-weight: 600;
}
.search-form button:hover {
  background-color: var(--hallgreen);
  color: #fff;
}

/* ===========================
   Banner
   =========================== */
.banner-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  height: 462px;
  overflow: hidden;
  background-color: var(--hallcream);
}
.banner-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.banner-overlay {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 40px);
  max-width: 100%;
  gap: 20px;
}
.banner-overlay img {
  height: 80px;
  width: auto;
  object-fit: contain;
}
.logo { width: 100px; height: auto; }
.site-title { width: 300px; height: auto; }

/* ===========================
   Sections
   =========================== */
.text1 {
  background-color: #fff;
  padding-top: 30px;
  padding-bottom: 100px;
}
.centre {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
}

ul, ol { padding-left: 20%; }

.event1 img {
  /* Add a soft shadow */
  box-shadow: 4px 4px 12px rgba(0,0,0,0.3);
  margin: 0 auto;

  /* Rotate slightly */
  transform: rotate(-1deg);

  /* Optional: smooth transition if you want hover effects */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Example hover effect */
.event1 img:hover {
  box-shadow: 6px 6px 16px rgba(0,0,0,0.4);
  transform: rotate(-1deg) scale(1.02);
}

.event2 img {
  /* Add a soft shadow */
  box-shadow: 4px 4px 12px rgba(0,0,0,0.3);
  margin: 0 auto;

  /* Rotate slightly */
  transform: rotate(1deg);

  /* Optional: smooth transition if you want hover effects */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Example hover effect */
.event2 img:hover {
  box-shadow: 6px 6px 16px rgba(0,0,0,0.4);
  transform: rotate(1deg) scale(1.02);
}

/* ===========================
   Footer
   =========================== */
footer {
  padding: 30px 0;
  text-align: center;
  font-size: 0.9em;
  background-color: var(--hallcream);
  color: var(--hallred);
  border-top: 2px solid var(--hallred);
}
.footer2 {
  margin: 10px 20px;
  text-align: center;
  font-size: 0.9em;
  background-color: var(--hallcream);
  color: var(--hallred);
}
footer p, .footer2 p { padding: 5px; margin: 0; border: 0; }

/* ===========================
   Homepage Title/Date layout
   Tablet/mobile in @media below
   =========================== */
strong.event-title,
span.event-date {
  display: inline-block;
  margin-top: 0.2em;
  margin-left: 0.9em;
}

/* ===========================
   Mobile
   =========================== */
@media (max-width: 768px) {
  .page { width: 100%; background: var(--hallcream); }
  .container { padding: 5px; border: 0} /* this may cause problems */
  h1 { font-size: 1.5em; padding-left: 5px; }
  h3 { font-size: 1.2em; padding-left: 1.5em; } 
  table{ font-size: 0.9em; padding-left: 0.5em; }
  p { font-size: 1em; padding:  0.8em; }
  .banner-container { max-width: 100%; height: auto; margin-top: 60px; } /* offset for mobile band */
  .banner-bg { width: 100%; height: auto; }
  #mob_band { display: flex; justify-content: flex-start; }
  .top-nav, .bot-nav, .logo, .site-title { display: none; }
  strong.event-title,
  span.event-date {
    display: block;
    margin-left: 0; /* optional */
  }
}

@media (min-width: 769px) {
  #nav-container { display: none !important; }
  #mob_band { display: none; } /* hide mobile band on desktop */
}

/* ===========================
   Mobile Band
   =========================== */
#mob_band {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
#mob_band img { display: inline-block; padding-left: 0.8rem; }
#mob_band .title1 { font-size: 1.4em; font-weight: bold; flex-grow: 1; text-align: center; }
#mob_band a img { cursor: pointer; }
#mob_band #menu-toggle {
  background: none;
  border: none;
  font-size: 2em;
  color: var(--hallred);
  cursor: pointer;
  padding: 0 0 10px 10px;
  /*padding: top right bottom left;*/
}

/* ===========================
   Hamburger Button
   =========================== */
#menu-toggle {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--hallred);
}

/* ===========================
   Mobile Menu
   =========================== */
#menu { display: none; }
#menu.open { display: block; }

/* ===========================
   Mobile Nav Container
   =========================== */
/* Mobile Nav Container */
#nav-container {
  display: none;
  background-color: var(--hallcream);
  position: fixed;     /* ← FIXED instead of absolute */
  top: 60px;           /* sits below mob_band */
  left: 0;             /* align with screen edge */
  width: 100%;         /* full width for mobile */
  z-index: 999;
}

#nav-container.open {
  display: block;
}

#nav-container ul {
  list-style: none;
  padding: 15px;
  margin: 0;
  text-align: center;     /* center the links */
}

#nav-container li {
  display: flex;              /* enable flexbox */
  align-items: center;        /* vertical centering */
  justify-content: center;    /* horizontal centering */
  height: 40px;               /* fixed height for each item */
  color: var(--hallred);
  border-bottom: 1px solid var(--hallred);
}

#nav-container li:last-child {
  border-bottom: none;
}

#nav-container a {
  text-decoration: none;
  color: var(--hallred);
  flex: 1;                    /* make link fill li */
}





