* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f4f6fb;
  color: #222;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background: white;
  color: #12285a;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #dde2ee;
}

table {
  border-collapse: collapse;
}

table, th, td {
  border: 1px solid black;
}

table > th> td {
  padding: 8px;
  background-color:#dde2ee;
}
.logo {
  width: 300px;
  max-width: 100%;
  height: auto;
}

.site-header {
  display: flex;
  align-items: center;
}

.header-buttons {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.svg-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-block;
}

.svg-btn > svg {
  height: 40px;
  width: auto;
  display: block;
}

header h1 {
  font-size: 22px;
}

header p {
  font-size: 21px;
}

/* ===== Meniul principal ===== */
nav {
  background: #12285a;
  padding: 0 40px;
}

nav > ul {
  list-style: none;
  display: flex;
  justify-content: center;
}

nav > ul > li {
  position: relative;
}

nav a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 16px 24px;
  font-size: 16px;
  transition: background 0.2s;
}

nav > ul > li > a:hover,
nav > ul > li:hover > a,
nav > ul > li:focus-within > a {
  background: #1f3d82;
  color: white;
  box-shadow: inset 0 -3px 0 #f2b705;
}

/* mica sageată după meniurile cu submeniu */
.are-submeniu > a::after {
  content: ' \25BE';
  font-size: 12px;
}

/* ===== Submeniuri ===== */
.submeniu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  max-width: 330px;
  background: white;
  border-top: 3px solid #f2b705;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  display: none;
  z-index: 10;
}

.submeniu2 {
  list-style: none;
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 230px;
  max-width: 600px;
  background: white;
  border-top: 3px solid #f2b705;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  display: none;
}

.are-submeniu:hover > .submeniu,
.are-submeniu:focus-within > .submeniu {
  display: block;
}

.submeniu > li {
  position: relative;
}

.submeniu > li:hover > .submeniu2,
.submeniu > li:focus-within > .submeniu2 {
  display: block;
}

.submeniu li a {
  color: #1c3c85;
  padding: 12px 20px;
  font-size: 15px;
  border-bottom: 1px solid #e6e9f2;
}

.submeniu li:last-child a {
  border-bottom: none;
}

.submeniu li a:hover {
  background: #eef2fb;
  padding-left: 28px;
}

main {
  max-width: 900px;
  margin: 20px auto;
  padding: 0 20px;
  flex: 1;
}

main p {
  line-height: 1.6;
}

.resources {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

footer {
  background: white;
  border-top: 1px solid #dde2ee;
  padding: 20px;
}

.resources img {
  width: 60px;
  height: 60px;
}

.copyright {
    margin-top: 20px;
    text-align: center;
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

.copyright p {
    margin: 4px 0;
}

@media (max-width: 600px) {
    .logo { width: 200px;}
    
    .site-header {
      flex-direction: row;
      align-items: flex-start;
  }
    .header-buttons {
      display: grid;
      grid-template-columns: repeat(2, auto);
      gap: 8px;
      margin-left: 0;
      justify-content: center;
  }
}