/*
Theme Name: East Bay Maine
Theme URI: https://eastbaymaine.com
Author: Mr. Gregory's Afterschool Tech Club
Description: Official website of East Bay, Maine
Version: 1.0
*/

:root {
  --navy:      #1B3C6E;
  --red:       #C0392B;
  --maize:     #F2C12E;
  --white:     #FFFFFF;
  --off-white: #F7F5F1;
  --text:      #1A1A1A;
  --gray:      #E4E4E4;
  --mid-gray:  #888888;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 16px;
  color: var(--text);
  background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
}

a {
  color: var(--navy);
  text-decoration: underline;
}

a:hover {
  color: var(--red);
}

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Stripe divider ─────────────────────────────────── */
.stripe-divider {
  height: 7px;
  background: repeating-linear-gradient(
    90deg,
    var(--navy)  0px,  var(--navy)  28px,
    var(--white) 28px, var(--white) 34px,
    var(--red)   34px, var(--red)   62px,
    var(--white) 62px, var(--white) 68px
  );
  flex-shrink: 0;
}

/* ── Top info bar ───────────────────────────────────── */
#topbar {
  background: var(--navy);
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  padding: 5px 0;
}

#topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

#topbar .topbar-location {
  font-weight: bold;
  letter-spacing: 0.04em;
}

#topbar .topbar-data {
  display: flex;
  gap: 22px;
  align-items: center;
}

#topbar .topbar-data span {
  opacity: 0.9;
}

/* ── Site header ────────────────────────────────────── */
#site-header {
  background: var(--white);
  padding: 16px 0;
}

#site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

#site-branding .site-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 28px;
  font-weight: bold;
  color: var(--navy);
  text-decoration: none;
  display: block;
  line-height: 1.1;
}

#site-branding .site-tagline {
  font-family: Georgia, serif;
  font-size: 13px;
  color: var(--mid-gray);
  font-style: italic;
  margin-top: 3px;
}

/* ── Primary nav ────────────────────────────────────── */
#primary-nav ul {
  list-style: none;
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  align-items: center;
}

#primary-nav ul li a {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: bold;
  color: var(--navy);
  text-decoration: none;
  padding: 7px 13px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 3px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}

#primary-nav ul li a:hover,
#primary-nav ul li.current-menu-item > a {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* ── Dropdown indicator on top-level parents ────────── */
#primary-nav > ul > li.menu-item-has-children > a::after {
  content: ' \203A';
  font-size: 14px;
  line-height: 1;
  opacity: 0.6;
}

/* ── Dropdown sub-menus ─────────────────────────────── */
#primary-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border-top: 3px solid var(--red);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  min-width: 220px;
  z-index: 999;
  flex-direction: column;
  gap: 0;
}

#primary-nav .sub-menu li a {
  font-size: 12px;
  padding: 9px 16px;
  border-bottom: 1px solid #eee;
  white-space: nowrap;
  border-left: 3px solid transparent;
}

#primary-nav .sub-menu li a:hover {
  border-left-color: var(--red);
  border-bottom-color: #eee;
  background: #f8f8f8;
}

#primary-nav ul li.menu-item-has-children {
  position: relative;
}

#primary-nav ul li.menu-item-has-children:hover > .sub-menu,
#primary-nav ul li.menu-item-has-children:focus-within > .sub-menu {
  display: flex;
}

/* ── Hamburger button ───────────────────────────────── */
#nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}

#nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Animate to X when open */
#nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}
#nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
#nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* ── Masthead ───────────────────────────────────────── */
#masthead {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--navy);
}

#masthead .masthead-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#masthead-overlay {
  position: absolute;
  bottom: 48px;
  right: 60px;
  background: rgba(27, 60, 110, 0.90);
  color: var(--white);
  padding: 26px 32px;
  max-width: 380px;
  border-left: 5px solid var(--maize);
}

#masthead-overlay h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 26px;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.25;
}

#masthead-overlay p {
  font-family: Georgia, serif;
  font-size: 15px;
  line-height: 1.65;
  opacity: 0.93;
  margin-bottom: 16px;
}

.masthead-btn {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  padding: 9px 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 0.15s, color 0.15s;
}

.masthead-btn:hover {
  background: var(--maize);
  color: var(--navy);
}

/* ── Feature boxes ──────────────────────────────────── */
#feature-boxes {
  background: var(--off-white);
  padding: 52px 0;
}

#feature-boxes .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.feature-box {
  background: var(--white);
  border-top: 5px solid var(--navy);
  padding: 30px 26px 26px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-box .box-icon {
  font-size: 36px;
  margin-bottom: 12px;
  display: block;
}

.feature-box h2 {
  font-size: 19px;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.feature-box p {
  font-family: Georgia, serif;
  font-size: 14px;
  color: #555;
  line-height: 1.65;
  margin-bottom: 18px;
  flex: 1;
}

.box-link {
  display: inline-block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: bold;
  color: var(--white);
  background: var(--navy);
  text-decoration: none;
  padding: 8px 18px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 0.15s;
}

.box-link:hover {
  background: var(--red);
  color: var(--white);
}

/* ── Town news ──────────────────────────────────────── */
#town-news {
  padding: 56px 0;
  background: var(--white);
}

.section-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 22px;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 28px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--navy);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  display: flex;
  gap: 14px;
  align-items: stretch;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray);
}

.news-card-image {
  width: 110px;
  flex-shrink: 0;
  overflow: hidden;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-card-content {
  flex: 1;
  min-width: 0;
}

.news-date {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 6px;
}

.news-card h3 {
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 7px;
  line-height: 1.3;
}

.news-card h3 a {
  color: inherit;
  text-decoration: none;
}

.news-card h3 a:hover {
  color: var(--red);
  text-decoration: underline;
}

.news-card p {
  font-family: Georgia, serif;
  font-size: 13px;
  color: #555;
  line-height: 1.6;
}

/* ── Fake Comments ───────────────────────────────────── */
.eb-fake-comments {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #ccc;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}

.eb-fake-comments-title {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 16px;
  color: #333;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.eb-fake-comments-mode {
  font-size: 11px;
  font-weight: normal;
  color: #C0392B;
}

.eb-fake-comments-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.eb-fake-comment {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.eb-fake-comment-name {
  display: block;
  color: #333;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 3px;
}

.eb-fake-comment-text {
  display: block;
  color: #444;
  line-height: 1.5;
  padding-left: 10px;
}

.eb-comments-locked {
  margin-top: 16px;
  color: #cc0000;
  font-size: 13px;
}

/* ── News list (vertical, page-news template) ───────── */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-list .news-card {
  padding: 24px 0;
  gap: 24px;
  border-bottom: 1px solid var(--gray);
}

.news-list .news-card:first-child {
  padding-top: 0;
}

.news-list .news-card-image {
  width: 180px;
  flex-shrink: 0;
}

.news-list .news-card-content {
  display: flex;
  flex-direction: column;
}

.news-list .news-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.news-list .news-card p {
  font-size: 14px;
  flex: 1;
}

/* ── Footer widgets ─────────────────────────────────── */
#footer-widgets {
  background: var(--navy);
  color: var(--white);
  padding: 48px 0 36px;
}

#footer-widgets .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

#footer-widgets .widget-area h2,
#footer-widgets .widget-area h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: var(--maize);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}

#footer-widgets .widget-area p,
#footer-widgets .widget-area li,
#footer-widgets .widget-area a {
  font-family: Georgia, serif;
  font-size: 13px;
  color: rgba(255,255,255,0.82);
  line-height: 1.75;
}

#footer-widgets .widget-area ul {
  list-style: none;
}

#footer-widgets .widget-area a {
  text-decoration: none;
}

#footer-widgets .widget-area a:hover {
  color: var(--maize);
  text-decoration: underline;
}

/* ── Bottom bar ─────────────────────────────────────── */
#bottom-bar {
  background: #111;
  padding: 12px 0;
}

#bottom-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 30px;
}

#bottom-bar .copyright {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

#bottom-bar .attribution {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: var(--maize);
  font-style: italic;
}

#footer-nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

#footer-nav ul li a {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}

#footer-nav ul li a:hover {
  color: var(--white);
}

/* ── Tech Club Note ─────────────────────────────────────── */

.techclub-note {
  background: var(--red);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: var(--white);
  padding: 14px 20px;
  text-align: center;
  border-bottom: 2px solid var(--maize);
}

.techclub-note strong {
  color: var(--maize);
}

/* ── Post box ───────────────────────────────────────────── */

.post-box {
  background: #fafafa;
  border: 2px solid var(--gray);
  border-top: 5px solid var(--navy);
  padding: 36px;
  max-width: 780px;
  margin: 0 auto;
}

/* ── WordPress content alignment ────────────────────────── */

.boxed-page-body img.alignleft,
.boxed-page-body .alignleft {
  float: left;
  margin: 4px 24px 16px 0;
}

.boxed-page-body img.alignright,
.boxed-page-body .alignright {
  float: right;
  margin: 4px 0 16px 24px;
}

.boxed-page-body img.aligncenter,
.boxed-page-body .aligncenter {
  display: block;
  margin: 16px auto;
}

.boxed-page-body img.alignnone {
  display: block;
  margin: 16px 0;
}

.boxed-page-body .wp-caption {
  max-width: 100%;
}

.boxed-page-body .wp-caption-text {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: var(--mid-gray);
  text-align: center;
  margin-top: 4px;
}

.boxed-page-body::after {
  content: '';
  display: table;
  clear: both;
}

/* ── Boxed Page Template ────────────────────────────────── */

.boxed-header-wrap {
  background: var(--off-white);
  padding: 28px 0 0;
}

.boxed-header-image {
  border: 3px solid var(--gray);
  overflow: hidden;
}

.boxed-header-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

.boxed-page-content {
  padding: 40px 0 60px;
}

.boxed-page-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 28px;
  color: var(--navy);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray);
}

.boxed-page-body {
  font-family: Georgia, serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  max-width: 780px;
}

.boxed-page-body h2 {
  font-size: 21px;
  color: var(--navy);
  margin: 32px 0 12px;
}

.boxed-page-body h3 {
  font-size: 17px;
  color: var(--navy);
  margin: 24px 0 8px;
}

.boxed-page-body p { margin-bottom: 16px; }

.boxed-page-body ul,
.boxed-page-body ol {
  margin: 0 0 16px 24px;
}

.boxed-page-body li { margin-bottom: 6px; }

.boxed-page-body a { color: var(--navy); }
.boxed-page-body a:hover { color: var(--red); }

/* ── High School Page ───────────────────────────────── */

#ebhs-page {
  background: #fff;
}

.ebhs-banner {
  background: #C0392B;
  color: #F2C12E;
  padding: 0;
}

.ebhs-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 28px 24px 18px;
  text-align: center;
}

.ebhs-logo {
  font-size: 64px;
  line-height: 1;
  flex-shrink: 0;
}

.ebhs-logo--right {
  transform: scaleX(-1);
}

.ebhs-school-name {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 36px;
  font-weight: bold;
  color: #F2C12E;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.ebhs-slogan {
  font-family: Georgia, serif;
  font-size: 18px;
  font-style: italic;
  color: #fff;
  margin-bottom: 8px;
}

.ebhs-mascot-line {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.03em;
}

.ebhs-marquee {
  background: #F2C12E;
  color: #C0392B;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: bold;
  padding: 7px 0;
  letter-spacing: 0.03em;
}

.ebhs-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

/* Welcome */
.ebhs-welcome {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  background: #fff9ec;
  border: 2px solid #F2C12E;
  padding: 28px;
  margin-bottom: 36px;
}

.ebhs-welcome-photo {
  flex-shrink: 0;
}

.ebhs-photo-placeholder {
  width: 110px;
  height: 130px;
  background: #e8e8e8;
  border: 2px solid #ccc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #999;
  text-align: center;
  line-height: 1.4;
}

.ebhs-welcome-text p {
  font-family: Georgia, serif;
  font-size: 15px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 12px;
}

.ebhs-principal-sig {
  font-size: 14px;
  margin-top: 16px;
  border-top: 1px solid #ddd;
  padding-top: 12px;
}

/* Section title */
.ebhs-section-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
  color: #C0392B;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 3px solid #F2C12E;
  padding-bottom: 8px;
  margin-bottom: 20px;
}

/* Divider */
.ebhs-divider {
  text-align: center;
  font-size: 28px;
  margin: 36px 0;
  letter-spacing: 12px;
  opacity: 0.4;
}

/* Two col */
.ebhs-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

/* Cards */
.ebhs-card {
  background: #fafafa;
  border-left: 4px solid #C0392B;
  padding: 18px 16px;
  margin-bottom: 18px;
}

.ebhs-card--featured {
  border-left-color: #F2C12E;
  background: #fff9ec;
}

.ebhs-card-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: #1B3C6E;
  margin-bottom: 6px;
}

.ebhs-record {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: #C0392B;
  margin-bottom: 8px;
}

.ebhs-card p {
  font-family: Georgia, serif;
  font-size: 14px;
  color: #444;
  line-height: 1.65;
  margin-bottom: 8px;
}

.ebhs-shoutout {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: #C0392B;
  font-weight: bold;
  margin-top: 8px;
}

.ebhs-rivalry {
  font-family: Georgia, serif;
  font-size: 14px;
  color: #555;
  font-style: italic;
  margin-top: 8px;
}

/* Spotlight */
.ebhs-spotlight {
  margin-bottom: 12px;
}

.ebhs-spotlight-img {
  width: 100%;
  overflow: hidden;
  border: 4px solid #F2C12E;
}

.ebhs-spotlight-img img {
  width: 100%;
  height: auto;
  display: block;
}

.ebhs-spotlight-caption {
  background: #F2C12E;
  color: #C0392B;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: bold;
  padding: 10px 16px;
  line-height: 1.5;
}

/* Spirit */
.ebhs-spirit {
  background: #C0392B;
  color: #F2C12E;
  text-align: center;
  padding: 36px 24px;
  margin-top: 12px;
}

.ebhs-spirit-lobby {
  font-size: 56px;
  margin-bottom: 10px;
}

.ebhs-spirit h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 32px;
  color: #F2C12E;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.ebhs-spirit p {
  font-family: Georgia, serif;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 8px;
}

.ebhs-back-link {
  display: inline-block;
  margin-top: 12px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: bold;
  color: #F2C12E;
  text-decoration: underline;
}

.ebhs-back-link:hover {
  color: #fff;
}

/* ── Scroll-to-top button ───────────────────────────────── */
#scroll-top {
  display: none;
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.2s;
}

#scroll-top.visible {
  opacity: 1;
}

@media (min-width: 601px) {
  #scroll-top {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 700px) {
  .ebhs-two-col { grid-template-columns: 1fr; }
  .ebhs-banner-inner { flex-direction: column; gap: 12px; }
  .ebhs-logo--right { display: none; }
  .ebhs-school-name { font-size: 26px; }
  .ebhs-welcome { flex-direction: column; }
}

/* ── Content Credit ─────────────────────────────────── */

.content-credit {
  margin-top: 40px;
  padding: 14px 18px;
  border-top: 2px dashed var(--gray);
  font-family: Georgia, serif;
  font-size: 13px;
  color: var(--mid-gray);
  font-style: italic;
}

.content-credit strong {
  color: var(--navy);
  font-style: normal;
}

/* ── Seasonal Events ────────────────────────────────── */

.season-badge {
  display: inline-block;
  font-size: 14px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 12px;
  margin-left: 12px;
  vertical-align: middle;
  border-radius: 2px;
  color: var(--white);
}

.season-badge--spring  { background: #5a9e4a; }
.season-badge--summer  { background: var(--red); }
.season-badge--fall    { background: #c07020; }
.season-badge--winter  { background: var(--navy); }

.season-nav-label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: var(--mid-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 36px 0 8px;
}

.season-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.season-nav-btn {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 16px;
  border: 2px solid var(--navy);
  color: var(--navy);
  background: transparent;
  transition: background 0.15s, color 0.15s;
}

.season-nav-btn:hover,
.season-nav-btn--active {
  background: var(--navy);
  color: var(--white);
}

/* ── Mobile nav ─────────────────────────────────────── */
#mobile-nav {
  display: none;
}

#mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#mobile-nav ul li a {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: bold;
  color: var(--navy);
  text-decoration: none;
  padding: 10px 16px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #eee;
  border-left: 3px solid transparent;
}

#mobile-nav ul li a:hover {
  color: var(--red);
  border-left-color: var(--red);
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 900px) {
  #feature-boxes .container,
  .news-grid,
  #footer-widgets .container {
    grid-template-columns: 1fr 1fr;
  }

  .footer-col { gap: 20px; }

  /* Mobile nav: hidden until toggled, full width below header */
  #mobile-nav {
    width: 100%;
    order: 3;
  }

  #mobile-nav.nav-open {
    display: block;
  }

  /* Show hamburger, hide nav until toggled */
  #nav-toggle {
    display: flex;
  }

  #site-header .container {
    flex-wrap: wrap;
    align-items: center;
  }

  #primary-nav {
    display: none;
    width: 100%;
    order: 3;
  }

  #primary-nav.nav-open {
    display: block;
  }

  #primary-nav ul {
    flex-direction: column;
    gap: 0;
  }

  #primary-nav ul li a {
    border-bottom: 1px solid #eee;
    border-left: 3px solid transparent;
  }

  #primary-nav ul li a:hover,
  #primary-nav ul li.current-menu-item > a {
    border-left-color: var(--red);
    border-bottom-color: #eee;
  }

  /* Sub-menus stack inline on mobile */
  #primary-nav .sub-menu {
    position: static;
    box-shadow: none;
    border-top: none;
    border-left: 3px solid var(--red);
    margin-left: 16px;
    display: none;
  }

  #primary-nav li.submenu-open > .sub-menu {
    display: flex;
  }

  /* Row layout so link and + button sit side by side */
  #primary-nav ul li.menu-item-has-children {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
  }

  #primary-nav ul li.menu-item-has-children > a {
    flex: 1;
    border-bottom: 1px solid #eee;
  }

  #primary-nav ul li.menu-item-has-children > .submenu-toggle {
    border-bottom: 1px solid #eee;
    border-left: 1px solid #eee;
    padding: 0 14px;
  }

  #primary-nav ul li.menu-item-has-children > .sub-menu {
    width: 100%;
    flex-basis: 100%;
  }

}

/* ── Submenu toggle button (mobile only) ────────────── */
.submenu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  color: var(--navy);
  padding: 0 10px;
  line-height: 1;
}

@media (max-width: 900px) {
  .submenu-toggle {
    display: inline-block;
  }
}

@media (max-width: 600px) {
  #feature-boxes .container,
  .news-grid,
  #footer-widgets .container {
    grid-template-columns: 1fr;
  }

  #masthead { height: 340px !important; }

  #masthead-overlay {
    right: 16px;
    left: 16px;
    bottom: 16px;
    max-width: 100%;
    padding: 18px 20px;
  }

  #bottom-bar .container {
    flex-direction: column;
    text-align: center;
  }

  .boxed-page-body img.alignleft,
  .boxed-page-body .alignleft,
  .boxed-page-body img.alignright,
  .boxed-page-body .alignright {
    float: none;
    display: block;
    margin: 16px 0;
    max-width: 100%;
  }

  .news-list .news-card {
    flex-direction: column;
  }

  .news-list .news-card-image {
    width: 100%;
  }

  .news-list .news-card-image img {
    height: auto;
    max-height: 220px;
    object-fit: cover;
  }
}

/* ── News pagination ─────────────────────────────────── */
.eb-pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.eb-pagination a.eb-page-btn,
.eb-pagination span.eb-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  background: var(--navy);
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  border-radius: 4px;
  border: 2px solid var(--navy);
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s;
  box-sizing: border-box;
}

.eb-pagination a.eb-page-btn:hover {
  background: #15305a;
  border-color: #15305a;
  color: #fff !important;
}

.eb-pagination span.eb-page-current {
  background: #fff;
  color: var(--navy) !important;
  border-color: var(--navy);
  cursor: default;
}

.eb-pagination span.eb-page-disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}
