@import url('./card-style/style.css');

body,
body > .scroll-page {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f4f4f4;
  color: #333;
  overflow: scroll;
  scrollbar-width: thin;
  scroll-behavior: auto;
}

header {
  background: #333;
  color: white;
  padding: 1rem;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}

nav a {
  color: white;
  text-decoration: none;
}

#hero {
  text-align: center;
  padding: 5rem 1rem;
  background: #333;
  color: white;
  box-shadow: 1px 10px 10px grey;
  max-width: 1600px;
  min-width: auto;
}

.btn {
  background: #007bff;
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 5px;
}

.scroll-page {
  height: 300px;
  overflow-y: auto;
  border: 1px solid #ccc;
  padding: 10px;
}

/* Base Table Style */
.academy-table {
  width: 100%;
  border-collapse: collapse;
  /* Removes gaps between borders */
  font-family: sans-serif;
}

/* Header Styling */
.academy-table thead th {
  background-color: #009879;
  color: #ffffff;
  text-align: left;
  padding: 12px 15px;
}

/* Cell Styling */
.academy-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #dddddd;
}

/* Zebra Striping */
.academy-table tbody tr:nth-child(even) {
  background-color: #f3f3f3;
}

/* Row Hover */
.academy-table tbody tr:hover {
  background-color: #f1f1f1;
  font-weight: 800;
}

/* Specific Column Targeting: Make the first column (Subject) bold */
.academy-table tbody td:nth-child(1) {
  color: #009879;
  font-weight: bold;
}

section {
  padding: 4rem 1rem;
  max-width: 1000px;
  min-width: auto;
  margin: auto;
}

div.card > a {
  text-decoration: underline;
}

div.card > a:last-child::after {
  content: "\2197";
}

p > a,
a {
  color: #007bff;
  text-decoration: none;
}

a.external-link::after {
  content: "\2197";
  font-size: 0.9em;
  margin-left: 0.2em;
  border-left: solid grey 1px;
  border-bottom: solid grey 1px;
}

@import url('./card-style/style.css') layer(card_style);

footer {
  text-align: center;
  padding: 1rem;
  background: #333;
  color: white;
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
  }
}
