/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #ffffff;
  color: #1b263b;
  min-height: 100vh;
  padding: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Navbar */
.navbar {
  background-color: #0d1b2a;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.navbar a {
  color: #ffffff;
  margin: 0.25rem 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: #00b4d8;
}

.navbar .right-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

@media (min-width: 768px) {
  .navbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .right-menu {
    justify-content: flex-end;
  }
}

/* Container */
main {
  max-width: 1000px;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

h2 {
  color: #0d1b2a;
  margin-bottom: 1.5rem;
  font-size: clamp(1.5rem, 2vw, 2rem);
  text-align: center;
  border-bottom: 3px solid #0077b6;
  padding-bottom: 0.5rem;
}

/* Table Styles */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background-color: #ffffff;
}

.styled-table thead {
  background-color: #0d1b2a;
  color: #ffffff;
}

.styled-table th,
.styled-table td {
  padding: 0.75rem;
  text-align: left;
  border: 1px solid #d9d9d9;
}

/* Responsive Table */
@media (max-width: 768px) {
  .styled-table thead {
    display: none;
  }

  .styled-table, .styled-table tbody, .styled-table tr, .styled-table td {
    display: block;
    width: 100%;
  }

  .styled-table tr {
    margin-bottom: 1rem;
    background-color: #f1f5f9;
    border-radius: 8px;
    padding: 1rem;
  }

  .styled-table td {
    text-align: right;
    padding: 0.5rem 0;
    position: relative;
  }

  .styled-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    width: 50%;
    padding-left: 0.5rem;
    font-weight: bold;
    text-align: left;
    color: #0d1b2a;
  }
}
