/*------------------- JHWCR Secure Elegant Stylesheet ---------------------*/
/* Color Palette */
:root {
  --teal-main: #0097A7;         /* JHWCR logo teal */
  --teal-dark: #006064;         /* For hover and accents */
  --teal-light: #E0F7FA;        /* Background accent */
  --teal-soft: #b2ebf2;         /* Soft box backgrounds */
  --grey-light: #f8f9fa;
  --grey-border: #dee2e6;
  --white: #ffffff;
  --black: #11191f;
}

/* Universal resets */
*, *:before, *:after {
  box-sizing: border-box;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--black);
  background-color: #F9FCFC;
  font-size: 17px;
  line-height: 1.6;
  min-height: 100vh;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--teal-main);
  font-weight: 700;
  margin-bottom: 0.5em;
}

/* --- Article Card Styling --- */
.article-card {
  background: var(--white);
  border-radius: 18px;
  border: 1.5px solid var(--teal-soft);
  box-shadow:
    0 2.5px 14px 2.5px rgba(0, 151, 167, 0.09),
    0 1.5px 2px rgba(0,0,0,0.02);
  padding: 2rem 2.5rem;
  margin: 2.5rem auto 2.5rem auto;
  max-width: 900px;
  transition: box-shadow 0.25s, transform 0.18s;
}
.article-card:hover, .article-card:focus-within {
  box-shadow: 0 6px 30px 0 rgba(0, 151, 167, 0.18), 0 3px 10px rgba(0,0,0,0.07);
  transform: translateY(-2px) scale(1.012);
}

/* --- Footer Styling --- */
.footer {
  background: var(--teal-main);
  color: var(--white) !important;
  text-align: center;
  padding: 2.2rem 1rem 2rem 1rem;
  font-size: 1.09em;
  margin-top: 4rem;
  box-shadow: 0 -2px 8px 0 rgba(0,0,0,0.06);
}
.footer a, .footer a:visited {
  color: var(--white);
  text-decoration: underline;
  transition: color 0.18s;
  font-weight: 500;
}
.footer a:hover,
.footer a:focus {
  color: var(--teal-soft);
}

/* --- Navigation Bar --- */
.navbar {
  background: var(--teal-main);
  padding: 1.2rem 2rem;
  box-shadow: 0 2px 7px 0 rgba(0,0,0,0.09);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar a {
  color: var(--white);
  text-decoration: none;
  margin: 0 1.1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.24s;
}
.navbar a:hover, .navbar a:focus {
  color: var(--teal-soft);
}

/* --- Buttons --- */
.button, .btn {
  background: var(--teal-main);
  color: var(--white);
  border: none;
  border-radius: 7px;
  padding: 0.75em 1.5em;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  transition: background 0.22s, box-shadow 0.19s;
  text-decoration: none;
  display: inline-block;
  margin: 0.4em 0;
  box-shadow: 0 1.5px 6px rgba(0, 151, 167, 0.15);
}
.button:hover, .btn:hover, .button:focus, .btn:focus {
  background: var(--teal-dark);
  box-shadow: 0 4px 18px rgba(0, 151, 167, 0.20);
}

/* --- Table Styling --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 1.5px 8px rgba(0, 151, 167, 0.09);
}
th, td {
  border: 1px solid var(--grey-border);
  padding: 0.95rem 0.75rem;
  text-align: left;
  font-size: 1em;
}
th {
  background: var(--teal-light);
  color: var(--teal-dark);
  font-weight: 700;
}

/* --- Link Styling --- */
a, a:visited {
  color: var(--teal-main);
  text-decoration: none;
  transition: color 0.19s;
}
a:hover, a:focus {
  color: var(--teal-dark);
  text-decoration: underline;
}

/* --- Alert Boxes --- */
.alert {
  background: var(--teal-light);
  color: var(--teal-dark);
  padding: 1em 1.5em;
  border-radius: 6px;
  margin: 2em 0;
  border-left: 6px solid var(--teal-main);
  box-shadow: 0 1.5px 8px rgba(0,151,167,0.08);
}

/* --- Accessibility/Skip Link --- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--teal-main);
  color: var(--white);
  padding: 8px;
  z-index: 999;
}
.skip-link:focus {
  top: 0;
}

/* --- Misc --- */
hr {
  border: 0;
  border-top: 1.5px solid var(--teal-soft);
  margin: 2.5rem 0 2rem 0;
}

@media (max-width: 700px) {
  .article-card, .card, .navbar, .footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .article-card {
    padding: 1.3rem 1rem;
  }
  table, th, td {
    font-size: 0.95em;
  }
}
