/* ================================
   Base and Root Variables
   ================================ */

html { font-size: 100%; }

:root { --nav-height: 80px; }

body {
  padding: 0 !important;
  font-family: Verdana, Geneva, sans-serif;
  line-height: 1.6;
  margin: 0;
  color: #111;
  background-color: #fff;
}

/* ================================
   Layout Containers
   ================================ */

/* Shared spacing between all major layout blocks */
.text-container + .w3-row-padding,
.w3-row-padding + .text-container {
  margin-top: 2rem;
}


.container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  float: none !important;
  display: block !important;
}

/* --- W3.CSS Grid Equivalents --- */

.w3-row-padding {
  display: flex;
  flex-wrap: wrap;
  margin: -8px;
}

.w3-row-padding > * {
  padding: 8px;
  box-sizing: border-box;
}

.w3-half {
  flex: 0 0 50%;
  max-width: 50%;
}

.w3-third {
  flex: 0 0 33.3333%;
  max-width: 33.3333%;
}

.w3-twothird {
  flex: 0 0 66.6667%;
  max-width: 66.6667%;
}

@media (max-width: 768px) {
  .w3-twothird {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .w3-half,
  .w3-third {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.w3-padding-large { padding: 16px !important; }
.w3-margin-top { margin-top: 16px !important; }

/* --- W3.CSS Card and Border Equivalents --- */

.w3-card-4 {
  background-color: #f9f9f9;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  border-radius: 8px;
  overflow: hidden;
}

.w3-light-grey { background-color: #f1f1f1; }
.w3-border-light-grey { border-color: #ddd !important; }

.w3-leftbar { border-left: 1px solid #ddd; }
.w3-rightbar { border-right: 1px solid #ddd; }
.w3-topbar { border-top: 1px solid #ddd; }
.w3-bottombar { border-bottom: 1px solid #ddd; }

.w3-center { text-align: center !important; }

/* ================================
   Header and Navigation
   ================================ */

header {
  top: 0;
  z-index: 1000;
  background: #fff;
  width: 100%;
  transition: all 0.3s ease;
  position: static;
  padding: 0.25rem;
}

.navbar {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  position: relative;
}

.logo img {
  height: clamp(60px, 10vw, 72px);
  width: auto;
  display: block;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: #333;
}

.menu {
  position: absolute;
  top: 100%; /* directly below hamburger */
  right: 0;
  display: none;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 1rem;
  min-width: 160px;
  z-index: 999;
}

.menu.active { display: flex; }

.menu a {
  text-decoration: none;
  color: #333;
  padding: 0.5rem 0;
  display: block;
}

.dropdown-toggle { font-weight: bold; cursor: pointer; }

.submenu {
  display: none;
  flex-direction: column;
  margin-top: 0.5rem;
  padding-left: 1rem;
  border-left: 2px solid #eee;
}
.submenu.open { display: flex; }
.submenu a { padding: 0.3rem 0; }

/* ================================
   Page Navigation (Prev / Next)
   ================================ */

.page-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;

  /* Match your layout's vertical spacing */
  margin-top: var(--section-gap, 3rem);
  margin-bottom: var(--section-gap, 3rem);

  /* Inset slightly from sides */
  margin-left: 10%;
  margin-right: 10%;

  font-family: "Avenir LT Std", Verdana, Geneva, sans-serif;
  font-size: 1rem;
}

.page-nav .nav-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #444;
  padding: 0.4em 0.9em;
  border-radius: 1.5em;
  transition: background-color 0.3s, color 0.3s;
}

.page-nav .nav-link:hover {
  background-color: #ffa64d; /* warm orange */
  color: #fff;
}

/* Arrows */
.page-nav .prev::before {
  content: "⟵";
  margin-right: 0.4em;
  font-size: 1.1em;
}

.page-nav .next::after {
  content: "⟶";
  margin-left: 0.4em;
  font-size: 1.1em;
}

/* ================================
   Typography
   ================================ */

h1 {
  font-family: Arial, Helvetica, sans-serif;
  text-transform: capitalize;
  color: #000;
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  text-align: center;
}

h2 {
  font-family: Verdana, Geneva, sans-serif;
  font-size: clamp(1rem, 3vw, 1.50rem);
  text-align: center;
}

h3 {
  font-family: Verdana, Geneva, sans-serif;
  font-size: clamp(1.1rem, 3vw, 1.50rem);
  text-align: center;
  font-weight: normal;
  margin: 0;
  padding: 0;
}

h4 {
  font-family: Verdana, Geneva, sans-serif;
  font-weight: normal;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  text-align: center;
  font-style: italic;
  margin: 0;
  padding: 0;
}

/* --- Normal Paragraphs --- */
p {
  font-family: Verdana, Geneva, sans-serif;
  font-size: clamp(.5rem, 1.75vw, .75rem);
  text-align: left;
  margin: 0 0 1rem;
  padding: 0;
  line-height: 1.7;
}

/* --- Centered Intro Text Blocks --- */
.text-container {
  width: 100%;
  max-width: 70ch;
  margin: 3rem auto 2rem auto;
  padding: 0 1rem;
  text-align: center;
}

.text-container h1 {
  font-family: "Avenir LT Std 35 Light", Verdana, Geneva, sans-serif;
  font-size: clamp(1.5rem, 3.8vw, 2.2rem);
  font-weight: 300;
  font-style: italic;
  text-align: center;
  color: #111;
  letter-spacing: 0.04em;
  line-height: 1.25;
  margin: 1.2rem auto 0.8rem auto;
}

.text-container p {
  font-family: "Avenir LT Std 35 Light", Verdana, Geneva, sans-serif;
  font-size: clamp(1rem, 3vw, 1.5rem);
  text-align: center;
  margin: 0.5rem auto;
  line-height: 1.7;
  color: #222;
}

.footer-small {
  font-size: 0.7rem;           /* noticeably smaller text */
  color: #777;                 /* soft gray tone */
  border-top: 1px solid #ddd;  /* subtle divider */
  margin-top: 2rem;
  font-family: "Avenir LT Std 35 Light", Verdana, Geneva, sans-serif;
  letter-spacing: 0.3px;
  line-height: 1.4;
  padding-top: 1rem;
}

ul {
  font-family: Verdana, Geneva, sans-serif;
}

li {
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  text-align: center;
}

a {
  text-decoration: none;
  background-color: transparent;
  color: inherit;
}
a:hover { color: orange; }


/* ================================
   Utility and Responsive Adjustments
   ================================ */

img {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 480px) {
  body { padding: 0.75rem; }
  .text-container { margin: 0 0.5rem; }
}

@media (min-width: 481px) and (max-width: 767px) {
  body { padding: 0.75rem; }
  .text-container { margin: 0 1rem; }
  .logo img { max-height: 50px; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  body { font-size: 1.125rem; padding: 2rem; }
}

@media (min-width: 1024px) and (max-width: 1439px) {
  body { font-size: 1.25rem; padding: 3rem; }
}

@media (min-width: 1440px) {
  body { font-size: 1.375rem; padding: 4rem; }
}

@media (min-width: 1024px) {
  header { position: sticky; top: 0; }
}

/* =========================================================
   W3.CSS EQUIVALENT UTILITIES (LIGHTWEIGHT REPLACEMENT)
   ========================================================= */

/* --- GRID SYSTEM --- */
.w3-row-padding {
  display: flex;
  flex-wrap: wrap;
  box-sizing: border-box;
  margin-left: -8px;
  margin-right: -8px;
}

.w3-row-padding > * {
  padding: 8px;
  box-sizing: border-box;
}

.w3-half {
  flex: 0 0 50%;
  max-width: 50%;
}

.w3-third {
  flex: 0 0 33.3333%;
  max-width: 33.3333%;
}

.w3-twothird {
  flex: 0 0 66.6667%;
  max-width: 66.6667%;
}

.w3-quarter {
  flex: 0 0 25%;
  max-width: 25%;
}

.w3-threequarter {
  flex: 0 0 75%;
  max-width: 75%;
}

/* Stack columns on narrow screens */
@media (max-width: 768px) {
  .w3-half,
  .w3-third,
  .w3-twothird,
  .w3-quarter,
  .w3-threequarter {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* --- SPACING --- */
.w3-padding-small { padding: 8px !important; }
.w3-padding-medium { padding: 12px !important; }
.w3-padding-large { padding: 16px !important; }
.w3-margin-top { margin-top: 16px !important; }
.w3-margin-bottom { margin-bottom: 16px !important; }

/* --- COLOR & CARD STYLES --- */
.w3-grey {
  background-color: #9e9e9e !important;
  color: #fff !important;
}

.w3-light-grey {
  background-color: #f1f1f1 !important;
  color: #000 !important;
}

.w3-card-4 {
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  border-radius: 4px;
  background-color: #fff;
}

.w3-card-8 {
  box-shadow: 0 8px 16px rgba(0,0,0,0.25);
  border-radius: 6px;
  background-color: #f1f1f1;
}

/* --- BORDERS --- */
.w3-leftbar {
  border-left: 6px solid #ccc;
}
.w3-rightbar {
  border-right: 6px solid #ccc;
}
.w3-topbar {
  border-top: 6px solid #ccc;
}
.w3-bottombar {
  border-bottom: 6px solid #ccc;
}

.w3-border-light-grey {
  border-color: #ddd !important;
}

/* --- TEXT ALIGNMENT --- */
.w3-center { text-align: center !important; }
.w3-left { text-align: left !important; }
.w3-right { text-align: right !important; }

/* --- FLEX ALIGNMENT HELPERS --- */
.w3-content {
  max-width: 1200px;
  margin: 0 auto;
}

.w3-display-container {
  position: relative;
}

.w3-display-middle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* --- RESPONSIVE VISIBILITY --- */
.w3-hide-small {
  display: block;
}

/* Basic list cleanup */
.w3-ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  border: 1px solid #ccc;
}

.w3-ul li {
  padding: 8px 16px;
  border-bottom: 1px solid #ddd;
}

.w3-ul li:last-child {
  border-bottom: none;
}

/* Hover effect */
.w3-ul li:hover {
  background-color: #f1f1f1;
}

/* Optional striped effect */
.w3-striped li:nth-child(even) {
  background-color: #f9f9f9;
}

/* Hoverable striped list */
.w3-hoverable li:hover {
  background-color: #ddd;
}

/* Centered text list (optional helper) */
.w3-ul.w3-center li {
  text-align: center;
}

/* Bulleted list with spacing */
.w3-list {
  list-style-type: disc;
  margin: 0.5rem 1.5rem;
  padding: 0;
}

.w3-list li {
  margin-bottom: 0.25rem;
  font-family: Verdana, Geneva, sans-serif;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  line-height: 1.5;
}

@media (max-width: 600px) {
  .w3-hide-small {
    display: none !important;
  }
}




