/*
  =============================
  NWSFS Custom CSS Variables
  =============================
  These variables define the color palette for the site.
*/
:root {
  --nwsfs-green: #2e7d32; /* A deep forest green for branding */
  --nwsfs-green-light: #a5d6a7; /* Light mint/fern accent for highlights */
  --nwsfs-green-muted: #dcedc8; /* Pale background for subtlety */
}

/*
  Main content area styling
  - Soft gradient background for depth
  - Padding for whitespace
  - Rounded corners for a modern look
*/
main {
  background: linear-gradient(#fff, #f0f0f0);
  padding: 2rem;
  border-radius: 0.5rem;
}

/*
  Button and submit input styling
  - Uses NWSFS green for brand consistency
  - White text for contrast
  - No border for a flat look
  - Padding and bold font for emphasis
  - Pointer cursor for interactivity
*/
button,
input[type="submit"] {
  background-color: var(--nwsfs-green);
  color: #fff;
  border: none;
  padding: 0.5em 1em;
  font-weight: bold;
  cursor: pointer;
}

/*
  Button hover state
  - Darker green for visual feedback
*/
button:hover,
input[type="submit"]:hover {
  background-color: #1b5e20; /* darker green on hover */
}


/* ---------------------------------------
   RESET & BASE STYLES
--------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/*
  Body styling
  - Uses muted green for a soft background
  - Modern, readable font stack
  - Comfortable font size and line height
  - Dark gray text for readability
*/
body {
  background: var(--nwsfs-green-muted); /* ← use your new variable */
  font-family: "Segoe UI", Roboto, Helvetica, sans-serif;
  font-size: 16px;
  color: #333;
  line-height: 1.6;
}

/*
  Container class
  - Centers content
  - Sets a max width for readability
  - Adds padding for whitespace
*/
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem;
}

body {
  background: var(--nwsfs-green-muted); /* ← use your new variable */
  font-family: "Segoe UI", Roboto, Helvetica, sans-serif;
  font-size: 16px;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* ---------------------------------------
   TYPOGRAPHY & ELEMENT SPACING
--------------------------------------- */
p {
  margin-bottom: 1em;
}

/*
  List spacing and indentation
  - Adds left padding for nested lists
  - Adds bottom margin for separation
*/
ul, ol {
  padding-left: 2rem;
  margin-bottom: 1em;
}

/*
  Headings in main content
  - Adds top margin for section separation
*/
main h2 {
  margin-top: 2rem;
}

ul, ol {
  padding-left: 2rem;
  margin-bottom: 1em;
}

main h2 {
  margin-top: 2rem;
}

/* ---------------------------------------
   HEADER & NAVIGATION
--------------------------------------- */
header {
  background-color: var(--nwsfs-green); /* <- use the defined green */
  color: #ffffff;
  padding: 1.5rem 0;
  margin-bottom: 2rem;
}

/*
  Main site title in header
  - Large font for branding
  - Bottom margin for spacing
*/
header h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

/*
  Logo image in header
  - Responsive sizing
  - Centered with margin
*/
header img {
  max-width: 100%;
  height: auto;
  max-height: 60px;
  display: block;
  margin: 0 auto 1rem auto;
}

/*
  Navigation bar styling
  - Top margin for separation
  - White text for contrast
*/
nav {
  margin-top: 0.5rem;
  color: #ffffff;
}

/*
  Navigation links
  - Light color for visibility
  - Spacing and bold for clarity
  - No underline by default
*/
nav a {
  color: #f8f9fa;
  margin-right: 1rem;
  text-decoration: none;
  font-weight: bold;
}

/*
  Active navigation link
  - Light green and underline for current page
*/
nav a.active {
  color: var(--nwsfs-green-light);
  text-decoration: underline;
}

/*
  Navigation link hover state
  - Light green for feedback
*/
nav a:hover {
  color: var(--nwsfs-green-light);
}

header h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

header img {
  max-width: 100%;
  height: auto;
  max-height: 60px;
  display: block;
  margin: 0 auto 1rem auto;
}

nav {
  margin-top: 0.5rem;
  color: #ffffff;
}

nav a {
  color: #f8f9fa;
  margin-right: 1rem;
  text-decoration: none;
  font-weight: bold;
}

nav a.active {
  color: var(--nwsfs-green-light);
  text-decoration: underline;
}

nav a:hover {
  color: var(--nwsfs-green-light);
}

/* ---------------------------------------
   FOOTER
--------------------------------------- */
footer {
  background-color: #dee2e6;
  padding: 1rem 0;
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: #555;
}

/*
  Footer styling
  - Light gray background
  - Centered, small text
  - Top margin for separation
*/

/* ---------------------------------------
   LINKS
--------------------------------------- */
a {
  color: #0056b3;
}

/*
  Default link color
  - Blue for visibility and convention
*/

a:hover {
  color: #003d80;
}

/*
  Link hover color
  - Darker blue for feedback
*/

/* ---------------------------------------
   RESPONSIVE BEHAVIOR
--------------------------------------- */
header .container,
footer .container,
main.container {
  padding-left: 1rem;
  padding-right: 1rem;
}

/*
  Responsive container padding
  - Reduces horizontal padding on small screens
*/

@media (max-width: 600px) {
  header h1 {
    text-align: center;
    font-size: 1.4rem;
  }

  nav {
    text-align: center;
  }

  nav a {
    display: inline-block;
    margin-bottom: 0.5rem;
  }
}

/*
  Media query for screens 600px and below
  - Center header title
  - Reduce header font size
  - Center navigation
  - Stack nav links vertically
*/

/*
  Responsive embed helper
  - Keeps embedded iframes (calendar) responsive on small screens
  - Usage: wrap <iframe> in a div.embed-responsive
*/
.embed-responsive {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio fallback */
  height: 0;
  overflow: hidden;
}
.embed-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
