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

body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  background-color: #f4f4f4;
  color: #333;
}

/* Sticky Header with Tartan */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-image: url('images/ourtartan.gif');
  background-repeat: repeat;
  background-color: rgba(0, 33, 71, 0.85);
  background-blend-mode: multiply;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Gold Accent Strip */
.gold-strip {
  height: 5px;
  background-color: #ffd700;
}

/* Navigation Container */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: relative;
}

/* Logo */
.logo img {
  height: 50px;
}

/* Hamburger Button */
.hamburger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #ffd700;
  cursor: pointer;
}

/* Navigation Menu */
#nav-menu {
  display: flex;
}

#nav-menu ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  padding: 1rem 2rem;
  margin: 0;
}

#nav-menu a {
  color: #ffd700;
  text-decoration: none;
  font-weight: bold;
}

#nav-menu a:hover {
  text-decoration: underline;
}

/* Hero Section */
.hero {
  position: relative;
  background-image: url('images/ourtartan.gif');
  background-repeat: repeat;
  background-color: rgba(0, 33, 71, 0.7);
  background-blend-mode: multiply;
  color: #fff;
  text-align: center;
  padding: 6rem 2rem;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.5;
  z-index: 0;
}

.hero-watermark {
  max-width: 300px;
}

.hero h1,
.hero p,
.cta-button {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.hero p {
  font-size: clamp(1rem, 3vw, 1.5rem);
  margin-bottom: 2rem;
}

.cta-button {
  background-color: #ffd700;
  color: #002147;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
}

.cta-button:hover {
  background-color: #e6c200;
}
/* Syllabus Hero Section */
.syllabus-hero {
  position: relative;
  background-image: url('images/ourtartan.gif');
  background-repeat: repeat;
  background-color: rgba(0, 33, 71, 0.7);
  background-blend-mode: multiply;
  color: #fff;
  text-align: center;
  padding: 6rem 2rem;
  overflow: hidden;
  border-bottom: 5px solid #ffd700;
}

.hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.5;
  z-index: 0;
}

.hero-watermark {
  max-width: 350px;
}

.syllabus-hero h1,
.syllabus-hero p {
  position: relative;
  z-index: 1;
}

.syllabus-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
  font-weight: bold;
}

.syllabus-hero p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  max-width: 700px;
  margin: auto;
  line-height: 1.6;
}
.office-hero {
  background-color: rgba(0, 33, 71, 0.75);
  background-blend-mode: multiply;
  border-bottom: 5px solid #ffd700;
}

/* Intro Section */
.intro {
  padding: 3rem 2rem;
  max-width: 800px;
  margin: auto;
  text-align: center;
}

.intro h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.intro blockquote {
  margin-top: 1.5rem;
  font-style: italic;
  color: #555;
}
/* Welcome Message from RWM */
.welcome-master {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  padding: 3rem 2rem;
  background-color: #fff;
  border-top: 5px solid #ffd700;
  border-bottom: 5px solid #ffd700;
}

.master-photo {
  flex: 1 1 250px;
  text-align: center;
  margin: 1rem;
}

.master-photo img {
  max-width: 250px;
  border-radius: 8px;
  border: 4px solid #ffd700;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.master-message {
  flex: 1 1 400px;
  margin: 1rem;
  padding: 1.5rem;
  background-color: #fdfdfd;
  border: 2px solid #ffd700;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.master-message h2 {
  font-size: 1.8rem;
  color: #002147;
  margin-bottom: 1rem;
}

.master-message p {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #333;
}

.master-message .signature {
  font-style: italic;
  color: #555;
  font-weight: bold;
  margin-top: 1rem;
}

.ceremonial-quote {
  margin-top: 1rem;
  font-style: italic;
  color: #002147;
  font-size: 1rem;
  border-left: 3px solid #ffd700;
  padding-left: 1rem;
}
/* Office Bearers Section */
.office-bearers {
  padding: 3rem 2rem;
  max-width: 1000px;
  margin: auto;
  text-align: center;
}

.office-bearers h1 {
  font-size: 2rem;
  color: #002147;
  margin-bottom: 2rem;
}

.bearer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.bearer-card {
  background-color: #fff;
  border: 2px solid #ffd700;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.bearer-card h2 {
  font-size: 1.2rem;
  color: #002147;
  margin-bottom: 0.5rem;
}

.bearer-card p {
  font-size: 1rem;
  color: #333;
}

.pm {
  font-style: italic;
  color: #555;
}

.vacant p {
  color: #999;
  font-style: italic;
}
.office-bearers-intro {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Georgia', serif;
  line-height: 1.6;
  box-sizing: border-box;
}

.office-bearers-intro h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 30px;
  color: #2c2c2c;
}

.office-bearers-intro p {
  margin: 10px 0;
}

/* Optional styling for a list or table of Office Bearers */
.office-bearers-list {
  margin-top: 30px;
  border-collapse: collapse;
  width: 100%;
  font-family: 'Georgia', serif;
}

.office-bearers-list th,
.office-bearers-list td {
  border: 1px solid gold;
  padding: 12px;
  text-align: left;
}

.office-bearers-list th {
  background-color: #f9f5e9;
  color: #2c2c2c;
  font-weight: bold;
}

.office-bearers-list tr:nth-child(even) {
  background-color: #fffbe6;
}
/* History Page Section */
.history-section {
  padding: 3rem 2rem;
  max-width: 900px;
  margin: auto;
  background-color: #fff;
  border-left: 5px solid #ffd700;
  border-right: 5px solid #ffd700;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.history-section h2 {
  font-size: 2rem;
  color: #002147;
  margin-bottom: 1.5rem;
  text-align: center;
}

.history-text p {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

.history-text strong {
  color: #002147;
}
.founders-photo {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 20px auto;
  border: 2px solid gold;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.anniversary-photo {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 20px auto;
  border: 2px solid gold;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.ceremonial-prayer {
  margin: 2rem auto;
  padding: 1.5rem;
  max-width: 800px;
  background-color: #fdf6e3;
  border-left: 5px solid #ffd700;
  border-right: 5px solid #ffd700;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  font-style: italic;
  color: #002147;
  text-align: center;
  line-height: 1.6;
}
.ceremonial-tribute {
  background-color: #fdfdfd;
  border-left: 5px solid #ffd700;
  border-right: 5px solid #ffd700;
  padding: 1rem;
  margin: 2rem auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  max-width: 800px;
}

.ceremonial-tribute ul {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.ceremonial-tribute li {
  margin-bottom: 0.5rem;
  color: #002147;
}
.ceremonial-poem {
  margin: 2rem auto;
  padding: 1.5rem;
  max-width: 700px;
  background-color: #fdf6e3;
  border-left: 5px solid #ffd700;
  border-right: 5px solid #ffd700;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  font-style: italic;
  color: #002147;
  text-align: center;
  line-height: 1.8;
}
.charter-section {
  margin-top: 40px;
  text-align: center;
}

.charter-section h3 {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: #2c2c2c;
}

.charter-section p {
  font-family: 'Georgia', serif;
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 20px;
}

.charter-image {
  max-width: 50%;
  height: auto;
  border: 2px solid gold;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.past-masters-intro {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Georgia', serif;
  line-height: 1.6;
  box-sizing: border-box;
}

.past-masters-intro h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 30px;
  color: #2c2c2c;
}

.past-masters-intro p em {
  font-style: italic;
  color: #555;
}

.past-masters-roll {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
}

.past-masters-list {
  list-style: none;
  padding-left: 0;
  font-family: 'Georgia', serif;
}

.past-masters-list li {
  padding: 6px 0;
  border-bottom: 1px solid #e0d8b0;
}

.past-masters-list li strong {
  color: #8b7500; /* dignified gold tone */
}
.past-masters-decade-list {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Georgia', serif;
  line-height: 1.6;
  box-sizing: border-box;
}

/* Decade headers */
.past-masters-decade-list summary h3 {
  font-size: 1.5em;
  margin: 0;
  color: #2c2c2c;
  padding: 10px 0;
}

/* Collapsible styling */
.past-masters-decade-list details {
  margin-bottom: 20px;
  border: 2px solid gold;
  border-radius: 6px;
  background-color: #f9f5e9;
  padding: 10px 16px;
}

.past-masters-decade-list details[open] {
  background-color: #fffbe6;
}

/* List styling */
.past-masters-decade-list ul {
  list-style: none;
  padding-left: 0;
}

.past-masters-decade-list li {
  padding: 6px 0;
  border-bottom: 1px solid #e0d8b0;
  font-size: 1.1em;
}

.past-masters-decade-list li strong {
  color: #8b7500; /* dignified gold tone */
}

/* Optional: ceremonial marker */
.past-masters-decade-list li::before {
  content: "⟡ ";
  color: gold;
  font-weight: bold;
}

/* Responsive layout */
@media (max-width: 768px) {
  .welcome-master {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .master-message {
    text-align: center;
  }

  .ceremonial-quote {
    border-left: none;
    padding-left: 0;
    margin-top: 0.5rem;
  }
}
.contact-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Georgia', serif;
  line-height: 1.6;
}

.contact-page h2, .contact-page h3 {
  color: #2c2c2c;
  margin-bottom: 10px;
}

details summary {
  cursor: pointer;
  background-color: #f9f5e9;
  border: 2px solid gold;
  padding: 10px 16px;
  margin-top: 20px;
  font-weight: bold;
  border-radius: 6px;
}

details[open] summary {
  background-color: #fffbe6;
}

iframe {
  border-radius: 6px;
  margin-top: 10px;
}

/* Footer */
footer {
  background-image: url('images/ourtartan.gif');
  background-repeat: repeat;
  background-color: rgba(0, 33, 71, 0.85);
  background-blend-mode: multiply;
  color: #fff;
  text-align: center;
  padding: 1rem;
}
/* Container styling */
.freemasonry-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Georgia', serif;
  line-height: 1.6;
}
.symbolic-tools-photo {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 20px auto;
  border: 2px solid gold;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
/* Summary styling */
details summary {
  cursor: pointer;
  background-color: #f9f5e9;
  border: 2px solid gold;
  padding: 12px 16px;
  margin-top: 20px;
  font-weight: bold;
  font-size: 1.2em;
  color: #333;
  border-radius: 6px;
}
.freemasonry-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Open state styling */
details[open] summary {
  border-bottom: none;
  background-color: #fffbe6;
}

/* Inner content */
.history-text, .freemasonry-page p, .freemasonry-page ul {
  padding: 10px 20px;
  background-color: #fff;
  border-left: 4px solid #d4af37; /* gold accent */
  margin-bottom: 10px;
  border-radius: 4px;
}

/* List styling */
.freemasonry-page ul {
  list-style-type: disc;
  margin-left: 40px;
}

/* Headings */
.freemasonry-page h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 30px;
  color: #2c2c2c;
}

.freemasonry-page h3 {
  margin: 0;
  font-size: 1.4em;
  color: #444;
}

footer::before {
  content: "";
  display: block;
  height: 5px;
  background-color: #ffd700;
}

.footer-quote {
  background-color: rgba(255, 215, 0, 0.1);
  padding: 0.5rem;
  font-style: italic;
  font-size: 1rem;
  color: #ffd700;
}
/* Syllabus Page */
.syllabus-page {
  padding: 3rem 2rem;
  max-width: 800px;
  margin: auto;
  text-align: left;
}

.syllabus-page h1 {
  font-size: 2rem;
  color: #002147;
  margin-bottom: 2rem;
  text-align: center;
}

.syllabus-page h2 {
  font-size: 1.5rem;
  color: #002147;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.date-list {
  list-style: none;
  padding-left: 0;
}

.date-list li {
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  background-color: #fdfdfd;
  border-left: 4px solid #ffd700;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.syllabus-intro {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Georgia', serif;
  line-height: 1.6;
  box-sizing: border-box;
}

.syllabus-intro h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 30px;
  color: #2c2c2c;
}

.syllabus-intro p {
  margin: 10px 0;
}

.syllabus-intro ul {
  margin-left: 40px;
  list-style-type: disc;
}

.syllabus-intro strong {
  color: #8b7500; /* dignified gold tone */
}
/* Shared styling for both pages */
.accessibility-page,
.privacy-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Georgia', serif;
  line-height: 1.6;
  box-sizing: border-box;
}

/* Page headings */
.accessibility-page h2,
.privacy-page h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 30px;
  color: #2c2c2c;
}

/* Section headings */
.accessibility-page h3,
.privacy-page h3 {
  font-size: 1.4em;
  margin: 0;
  color: #444;
}

/* Collapsible sections */
.accessibility-page details,
.privacy-page details {
  margin-top: 20px;
  border: 2px solid gold;
  border-radius: 6px;
  background-color: #f9f5e9;
  padding: 10px 16px;
}

.accessibility-page details[open],
.privacy-page details[open] {
  background-color: #fffbe6;
}

.accessibility-page summary,
.privacy-page summary {
  cursor: pointer;
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 10px;
}

/* Paragraphs and links */
.accessibility-page p,
.privacy-page p {
  margin: 10px 0;
}

.accessibility-page a,
.privacy-page a {
  color: #8b7500; /* dignified gold tone */
  text-decoration: underline;
}

.accessibility-page a:hover,
.privacy-page a:hover {
  text-decoration: none;
}

footer nav {
  margin-top: 0.5rem;
}

footer nav a {
  color: #ffd700;
  margin: 0 0.5rem;
  text-decoration: none;
}

footer nav a:hover {
  text-decoration: underline;
}


/* Back to Top Button */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #ffd700;
  color: #002147;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  display: none;
  z-index: 1001;
  transition: opacity 0.3s ease;
}

#back-to-top:hover {
  background-color: #e6c200;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  #nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #002147;
    padding: 1rem 0;
    z-index: 999;
  }

  #nav-menu.show {
    display: block;
  }

  #nav-menu ul {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 0;
    margin: 0;
  }

  #nav-menu li {
    width: 100%;
  }

  #nav-menu a {
    display: block;
    width: 100%;
    padding: 0.75rem;
    text-align: center;
  }
}