/* 1. Typography & Global */
@font-face {
  font-family: 'roboto-thin';
  src: url('../fonts/roboto-light.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'roboto-bold';
  src: url('../fonts/roboto-bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

body {
  margin: 0;
  font-family: 'roboto-thin', sans-serif;
  background-color: #0d1016; /* New Dark Background */
  color: #fff;
  line-height: 1.5;
}

/* 2. Navigation */
nav {
  background-color: #0d1016; /* Replaced #140d59 with Deep Dark */
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  height: 72px;
  box-shadow: 0 5px 13px rgba(0, 0, 0, 0.12);
}

.nav-link {
  font-family: 'roboto-thin', sans-serif;
  color: #80858f; /* Muted grey for links */
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  transition: all ease 0.5s;
}

.nav-link:hover {
  color: #fff; /* White on hover */
}

nav img {
  width: 142px;
  height: auto;
}

/* 3. Main Content Layout */
main {
  margin-top: 24px;
}

main p {
  font-family: 'roboto-thin', sans-serif;
  font-size: 18px;
  line-height: 26px;
  text-align: justify;
  color: #fff;
}

/* 4. Containers (Article & Aside) */
/* Adapted to the "tematic-item" and "contentImg" card styles */
article .container {
  background-color: #13171f; /* Dark card color */
  border-radius: 12px;
  border: 1px solid #444852;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

/* Aside adapted to the "red-banner" style for visual hierarchy */
aside .container {
  background-color: #13171f;
  border-radius: 12px;
  border: 1px solid #ff2400; /* Red accent border */
  padding: 20px;
  color: #fff;
}

/* 5. Headers within content */
main h1, main h2, main h3 {
  font-family: 'roboto-bold', sans-serif;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* 6. Images */
main img {
  display: block;
  margin: 20px auto;
  max-width: 100%;
  border-radius: 8px;
  cursor: pointer;
}

/* 7. Buttons (Adapted from .bright-button) */
button, .button-link {
  background-color: #ff2400;
  color: #fff;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 0.25rem;
  font-weight: 600;
  transition: 0.3s linear;
  text-transform: uppercase;
}

button:hover {
  background-color: #e12708;
}

/* 8. Footer */
footer {
  background-color: #0d1016;
  border-top: 1px solid #444852;
  color: #80858f;
  text-align: center;
  padding: 24px 0;
  margin-top: 40px;
}

footer a {
  color: #80858f;
  text-decoration: none;
}

footer a:hover {
  color: #fff;
}

/* 9. Tables (New Style Integration) */
table {
  width: 100%;
  border-spacing: 0;
  margin: 20px 0;
}

thead tr {
  background: linear-gradient(255deg, #fe5337, #6f1000);
}

th {
  color: #fff;
  padding: 12px;
}

tbody tr:nth-child(even) {
  background: linear-gradient(255deg, #202632, #13171f);
}

td {
  padding: 12px;
  border-bottom: 1px solid rgba(38, 46, 72, 0.5);
  color: #fff;
  text-align: center;
}