/* Base text styles
   4) Global <p> text color & font family
   7) Global <h1> text color & font family
*/
:root {
  --text: #222;
  --brand: #0f4c81;
  --muted: #666;
}
* { box-sizing: border-box; }

body {
  margin: 16px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  line-height: 1.5;
}

p {                       /* (Requirement #4) */
  color: #2a6a3f;
  font-family: Georgia, "Times New Roman", serif;
}

h1 {                      /* (Requirement #7) */
  color: var(--brand);
  font-family: "Trebuchet MS", Arial, sans-serif;
  letter-spacing: .5px;
  margin: 24px 0 8px;
}

/* 1) Image hyperlink */
.image-link img {
  display: block;
  max-width: 260px;
  height: auto;
  border-radius: 8px;
  border: 2px solid #ddd;
}

/* 2) Custom ordered list styling */
.custom-list {
  counter-reset: custom;
  margin: 16px 0 24px 0;
  padding-left: 0;
  list-style: none;
}
.custom-list li {
  counter-increment: custom;
  padding: 8px 12px;
  margin: 6px 0;
  background: #f7f9fc;
  border-left: 6px solid #8aa9d6;
}
.custom-list li::before {
  content: counter(custom) ". ";
  font-weight: 700;
  color: #385a8a;
}

/* 3) Custom left/right margins on a paragraph */
.custom-margin {
  margin-left: 50px;
  margin-right: 50px;
}

/* 5) 2×2 frame ("windows") */
.frame {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  grid-template-rows: repeat(2, 120px);
  gap: 12px;
  margin: 20px 0;
}
.window {
  border: 2px solid #cbd5e1;
  background: #f3f4f6;
  display: grid;
  place-items: center;
  font-weight: 600;
  color: #334155;
  border-radius: 8px;
}

/* 6) Static background logo (fixed) */
.static-bg-logo {
  min-height: 40vh;
  margin: 20px 0;
  color: #098f2a;
  display: grid;
  place-items: below center;
  text-align: center;

  /* Use any logo file name you have locally; stays fixed while scrolling */
  background-image: url("img/Gis_logo.jpg"), linear-gradient(180deg,#ffffff,#eef2f7);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 220px, cover;
  background-attachment: fixed, scroll; /* logo is fixed */
}

/* 8) Olympic logo using overlapping text */
.olympic {
  position: relative;
  width: 520px;
  height: 160px;
  margin: 16px auto;
}
.ring {
  position: absolute;
  font: 900 120px/1 Arial, Helvetica, sans-serif;
  color: transparent;              /* hollow rings */
  -webkit-text-stroke-width: 10px; /* ring thickness */
}
.ring-blue   { -webkit-text-stroke-color: #0081C8; left:   0px; top:  0px; }
.ring-black  { -webkit-text-stroke-color: #000000; left: 110px; top:  0px; }
.ring-red    { -webkit-text-stroke-color: #EE334E; left: 220px; top:  0px; }
.ring-yellow { -webkit-text-stroke-color: #F7D130; left:  55px; top: 60px; }
.ring-green  { -webkit-text-stroke-color: #00A651; left: 165px; top: 60px; }

/* 9) Breadcrumb for three HTML pages */
.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 10px 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.breadcrumb li + li::before {
  content: ">";
  color: var(--muted);
  margin: 0 .25rem 0 .1rem;
  font-size: 1.95rem;
}
.breadcrumb a {
  color: #0b63b6;
  text-decoration: none;
  font-size: 1.95rem;
}
.breadcrumb a:hover { text-decoration: underline; }

/* 10) Media queries for outlined paragraph (exact breakpoints) */
.outlined-paragraph {
  border: 2px solid #333;   /* outlined */
  padding: 16px;
  background: transparent;  /* <576px: no fill */
}
/* Small ≥ 576px => red */
@media (min-width: 576px) {
  .outlined-paragraph { background: red; }
}
/* Medium ≥ 768px => blue (overrides red) */
@media (min-width: 768px) {
  .outlined-paragraph { background: blue; }
}
/* Large ≥ 992px => yellow (overrides blue) */
@media (min-width: 992px) {
  .outlined-paragraph { background: yellow; }
}

/* 11) CSS-only "No bitmaps" static logo from the brief */
.no-bitmap-logo {
  position: relative;
  width: 280px;               /* circle outer size (220 + 2*14 border) */
  height: 280px;
  margin: 24px auto;
  display: grid;              /* center the word inside the circle */
  place-items: center;
  text-align: center;
  font: 800 56px/1 "Trebuchet MS", Arial, sans-serif;
  color: #000;
}
.no-bitmap-logo span {
  position: relative;
  z-index: 2;                 /* text sits above the ring */
  max-width: 80%;
  word-break: break-word;
}
.no-bitmap-logo::before {     /* red ring, exactly around the container */
  content: "";
  position: absolute;
  inset: 0;                   /* fill the 248x248 box */
  border: 14px solid #e11;
  border-radius: 60%;
  background: transparent;
  z-index: 1;                 /* behind the text */
}
.no-bitmap-logo::after {      /* diagonal red slash */
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 320px;
  height: 14px;
  transform: translate(-50%, -50%) rotate(-25deg);
  background: #e11;
  border-radius: 7px;
  z-index: 3;                 /* over the text */
}



/* 12) Table styles */
table.jobs {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 40px;
  font-size: 0.95rem;
}
table.jobs th,
table.jobs td {
  border: 1px solid #d1d5db;
  padding: 8px 10px;
  text-align: center;
}
table.jobs thead th {
  background: #f3f4f6;
  font-weight: 700;
}
