/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: 0;
}

body {
    font-family: "Verdana", "Tahoma", "Arial", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background-color: #f8f8f8;
    color: #333;
    text-align: center;
}

/* =========================================================
   LINKS
========================================================= */

a {
  color: white;
  padding: 0 2px;
  transition: all 0.2s ease-in-out;
}

a:hover {
  text-decoration: none;
}

#footer a,
#center a {
  color: #000;
}

#center a:hover {
  background: #fff;
  color: #8ca863;
}

#center a:visited {
  text-decoration: underline;
  color: grey;
}

.article_img {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* =========================================================
   HEADINGS / TEXT
========================================================= */

h1 {
  background: white;
  color: #8ca863;
  font-size: 150%;
  clear: both;
  padding: 5px;
}

h2,
h3,
h4,
p {
  margin: 1em 0;
  text-align: left;
  font-size: 98%;
}

ol {
  margin: 3px;
  padding: 0;
  list-style-position: inside;
}

ul {
  margin: 2em 2em;
  padding: 5px;
}

li {
  margin: 0.5em;
}

hr {
  color: #8ca863;
  background-color: #8ca863;
  height: 1px;
  margin-top: 0;
  margin-bottom: 1px;
}

/* =========================================================
   IMAGES
========================================================= */

img {
  border-color: #fff;
  padding: 3px;
  max-width: 100%;
  height: auto;
}

#club_photo {
  float: right;
  border-style: outset;
  border-color: gray;
  border-width: 7px;
  margin: 1em 0;
}

#club_pictures {
  border-color: #fff;
  padding: 3px;
}

#image_right {
  float: right;
  margin-left: 3px;
}

.rightimg {
  float: right;
  margin: 0.75em;
}

/* =========================================================
   LAYOUT WRAPPERS
========================================================= */

/* Wrapper */
#wrapperc {
    background: #8ca863;
    padding: 2rem 0;
}

#wrapper {
    background: #fff;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: left;
}

/* =========================================================
   HEADER / NAV AREAS
========================================================= */

#header,
#subnav,
#footer {
  clear: both;
  width: 100%;
}

#subnav a {
    padding: 0.5rem 1rem;
    background: #f2f2f2;
    border-radius: 6px;
    color: #8ca863;
    font-weight: 500;
}

#subnav a:hover {
    background: #8ca863;
    color: #fff;
}

#header {
  background: #8ca863;
  color: #8ca863;
  text-align: right;
  padding: 0;
}

#subnav {    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

#footer {
  text-align: center;
  color: gray;
  background: #fff;
}

#footer div {
  padding: 1px 0;
}

/* =========================================================
   MAIN LAYOUT STRUCTURE (legacy float system preserved)
========================================================= */

#contentfloatholder {
  float: left;
  width: 100%;
  position: relative;
}

#contentfloatholder:after {
  content: ".";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}

#centerpad {
  margin: 0 200px;
  display: block;
}

#center {
  color: #000;
  float: left;
  width: 100%;
  margin-right: -95%;
}

#left {
  float: left;
  width: 180px;
  margin-left: -5%;
}

#right {
  float: right;
  width: 180px;
}

/* IE fallback (kept for compatibility) */
* html div#center {
  margin-right: -100%;
}

* html div#left {
  margin-left: 0;
}

/* =========================================================
   SIDEBAR / RIGHT AREA
========================================================= */

#right a:link {
  text-decoration: none;
  color: #0000EE;
  word-break: break-all;
}

#right a:visited {
  text-decoration: underline;
  color: gray;
}

#right a:hover {
  text-decoration: none;
  color: black;
}

#left h3,
#left p,
#right h3,
#right p {
  padding: 0 5px;
}

/* =========================================================
   TOP AREA
========================================================= */

#pagetop {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

#hdim {
  display: inline;
}

/* =========================================================
   DATE / SMALL TEXT
========================================================= */

#date {
  text-align: right;
  color: #fff;
  font-size: 80%;
}

#small {
  text-align: center;
  font-size: 50%;
}

#sitemeter {
  text-align: left;
  visibility: hidden;
}

/* =========================================================
   BOX COMPONENT (rounded legacy module)
========================================================= */

.rjrounded,
.zrounded {
  background: transparent;
  width: 100%;
  float: left;
  margin: 0;
  line-height: 125%;
}

.rjrounded h6,
.zrounded h6 {
  margin: 0;
  font-size: 1em;
  padding: 0 8px 3px;
  border-bottom: 1px solid #8ca863;
}

.rjrounded p,
.zrounded p {
  margin: 0;
  padding: 5px 0;
  font-size: 10px;
  line-height: 125%;
}

/* Rounded corners structure */
.rjtop,
.rjbottom {
  display: block;
  background: transparent;
  font-size: 1px;
}

.rjb1,
.rjb2,
.rjb3,
.rjb4 {
  display: block;
  overflow: hidden;
}

.rjb1,
.rjb2,
.rjb3 {
  height: 1px;
}

.rjb2,
.rjb3,
.rjb4 {
  background: #fff;
  border-left: 1px solid #8ca863;
  border-right: 1px solid #8ca863;
}

.rjb1 {
  margin: 0 5px;
  background: #8ca863;
}

.rjb2 {
  margin: 0 3px;
  border-width: 0 2px;
}

.rjb3 {
  margin: 0 2px;
}

.rjb4 {
  height: 2px;
  margin: 0 1px;
}

.rjboxcontent {
  display: block;
  border: 0 solid #8ca863;
  border-width: 0 1px 1px;
  border-bottom-right-radius: 8px;
  border-bottom-left-radius: 8px;
  height: auto;
  background: #fff;
}

div.rjboxcontent div {
  padding: 0;
}

* html .rjboxcontent {
  height: 1px;
}

.color_a {
  background: #8ca863;
  color: #000;
}

/* =========================================================
   SIDE NAV
========================================================= */

#sidenavcontainer {
  font-weight: bold;
  display: block;
  width: 180px;
  float: left;
  height: auto;
  margin-top: 10px;
  margin-left: -5%;
  background-color: #8ca863;
  border-radius: 5px;
}

#toggle,
.toggle {
  display: none;
}

#sidenavcontainer > a {
  width: 90%;
  float: left;
  border-radius: 5px;
}

#sidenavcontainer > a {
  background-color: #8ca863;
  color: #fff !important;
  display: block;
  padding: 5px;
}

#sidenavcontainer > a:hover,
#sidenavcontainer > a:focus {
  text-align: left;
  background: #f2f2f2;
  color: black !important;
}

.toggle {
  z-index: 2;
}

/* =========================================================
   PARTNERS
========================================================= */

#partners p {
  text-align: center;
  font-size: 100%;
}

#rightcentre p {
  width: 180px;
  margin: 0 auto;
  text-align: center;
  font-size: 100%;
}

/* =========================================================
   RESPONSIVE DESIGN
========================================================= */

@media only screen and (max-width: 900px) {
  #hdim img {
    max-width: 450px;
  }
}

@media only screen and (max-width: 760px) {

  h1 {
    font-size: 150%;
    padding: 5px;
  }

  #cc {
    font-size: 155%;
  }

  img {
    max-width: 100%;
  }

  #date {
    display: none;
  }

  #pagetop {
    width: 100%;
  }

  #subnav a {
    display: inline-block;
    float: left;
    padding: 5px 10px;
    line-height: 20px;
    width: 90px;
    text-align: center;
  }

  #subnav a:hover {
    color: black !important;
    background: #f2f2f2;
  }

  #subnav:after {
    content: "";
    display: table;
    clear: both;
  }

  #centerpad {
    margin: 0;
  }

  #right {
    clear: both;
    display: block;
    float: left;
  }

  #footer img {
    max-width: 100%;
  }

  #topimage-right,
  #topimage-rightr,
  #topimage-rightt {
    display: none;
  }

  .toggle {
    display: block;
    position: fixed;
    top: 10px;
    right: 5px;
    cursor: pointer;
    user-select: none;
  }

  #hdim {
    display: none;
  }

  #sidenavcontainer {
    display: none;
    opacity: 0;
    width: 100px;
    position: fixed;
    top: 20px;
    right: 40px;
    background-color: #fff;
  }

  #toggle:checked ~ #sidenavcontainer {
    display: block;
    opacity: 1;
  }

  #sidenavcontainer > a {
    display: block;
    width: 120px;
    padding: 5px;
  }

  #sidenavcontainer > a:hover {
    background: #f2f2f2;
  }

  .toggle:after {
    content: "Menu";
    display: block;
    width: 100px;
    background: #8ca863;
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
    color: #fff;
  }

  #toggle:checked + .toggle:after {
    content: "Close Menu";
  }
}

@media only screen and (max-width: 400px) {
  /* reserved for future */
}
