:root {
  --primary-color: #002952;
  /* Official deep blue */
  --secondary-color: #005bb8;
  /* Brighter blue for links */
  --accent-color: #bfa15f;
  --bar-color: #e6ddd1;
  /* Gold/Bronze accent */
  --text-color: #2c3e50;
  --bg-color: #f4f6f8;
  --white: #ffffff;
  --font-main: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --max-width: 1400px;
  /* Increased to give more room */
  --header-height: 70px;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  color: var(--text-color);
  background-color: var(--bg-color);
  margin: 0;
  line-height: 1.6;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background-color: var(--bar-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  /* Softer shadow */
  border-bottom: 4px solid var(--accent-color);
  position: relative;
  z-index: 1000;
  color: var(--primary-color);
  /* Updated text color for safety */
}

/* Removed overlay ::before */

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 70px;
  /* Slimmer */
  padding-top: 5px;
  padding-bottom: 5px;
  position: relative;
  z-index: 1;
}

/* Logo Area */
.logo-area a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-right: 20px;
}

.logo {
  height: 50px;
  /* Smaller logo */
  margin-right: 12px;
  flex-shrink: 0;
}

.title-text h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  /* Smaller font to prevent overlap */
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.5px;
  color: var(--primary-color);
  /* text-transform: uppercase;*/
  white-space: nowrap;
}

.title-text p {
  margin: 0;
  font-size: 0.8rem;
  color: #555;
  font-style: italic;
  font-family: var(--font-serif);
  line-height: 1.2;
}

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
  /* Push to right */
  flex-shrink: 1;
  /* Allow to shrink if needed */
}

.menu {
  list-style: none !important;
  padding: 0;
  margin: 0;
  display: flex !important;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  /* Allow wrapping on very small screens if needed */
  justify-content: flex-end;
}

.menu>li {
  position: relative;
  margin-left: 5px;
  list-style-type: none;
}

.menu>li>a {
  color: var(--primary-color);
  font-weight: 700;
  padding: 8px 12px;
  /* Reduced padding */
  display: block;
  text-transform: uppercase;
  font-size: 0.85rem;
  /* Smaller font for menu */
  letter-spacing: 0.5px;
  border-radius: 4px;
  background: transparent;
  /* TRANSPARENT BACKGROUND */
  transition: all 0.2s ease;
}

.menu>li:hover>a,
.menu>li.active>a {
  color: var(--white);
  background-color: var(--primary-color);
  text-decoration: none;
}

/* Dropdown Menu */
.sub-menu {
  display: block;
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  min-width: 240px;
  list-style: none !important;
  padding: 8px 0;
  z-index: 1000;
  border-top: 3px solid var(--accent-color);
  transform: translateY(10px);
  transition: all 0.2s ease;
  border-radius: 0 0 4px 4px;
}

.menu li:hover .sub-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.sub-menu li {
  margin: 0;
  display: block;
  list-style: none;
}

.sub-menu a {
  padding: 10px 15px;
  color: var(--text-color);
  font-size: 0.85rem;
  display: block;
  border-bottom: 1px solid #f0f0f0;
  background: none;
  text-transform: none;
  font-weight: 500;
}

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

.sub-menu a:hover {
  background-color: #d0e0f0;
  color: var(--primary-color);
  font-weight: 700;
}

/* Language Switcher */
.lang-switcher {
  margin-left: 15px;
  padding-left: 15px;
  border-left: 1px solid #ccc;
  display: flex;
  align-items: center;
}

.lang-link {
  background-color: var(--primary-color);
  color: var(--white) !important;
  border: 1px solid var(--primary-color);
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.lang-link:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  text-decoration: none !important;
}

/* Mobile Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--primary-color);
  cursor: pointer;
  padding: 5px;
  z-index: 2;
}

/* Main Content */
#main-content {
  padding: 40px 0;
  min-height: 60vh;
}

.page-header h1 {
  color: var(--primary-color);
  font-family: var(--font-serif);
  border-bottom: 3px solid var(--accent-color);
  padding-bottom: 10px;
  margin-bottom: 30px;
  display: inline-block;
}

.content {
  font-size: 1.05rem;
  color: #444;
}

.content h2,
.content h3 {
  color: var(--primary-color);
  margin-top: 1.5em;
}

/* Footer */
.site-footer {
  background-color: var(--primary-color);
  color: #dfdfdf;
  padding: 30px 0;
  text-align: center;
  margin-top: auto;
  font-size: 0.9rem;
  border-top: 4px solid var(--accent-color);
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .site-header .container {
    flex-wrap: wrap;
    justify-content: center;
    /* Center items on mobile */
  }

  .logo-area {
    width: 100%;
    justify-content: center;
    margin-bottom: 10px;
    margin-right: 0;
  }

  .title-text h1 {
    white-space: normal;
    text-align: center;
  }

  .mobile-menu-toggle {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
  }

  .main-nav {
    display: none;
    width: 100%;
    margin-top: 10px;
    border-top: 1px solid #ddd;
    padding-top: 10px;
    justify-content: center;
    margin-left: 0;
  }

  .main-nav.active {
    /* JS toggle would be needed here, simplified for now */
    display: flex;
    flex-direction: column;
  }

  /* Forcing display for verify if needed, or relying on simple stacked layout */

  .menu {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }

  .menu>li {
    margin: 5px 0;
    width: 100%;
    text-align: center;
  }

  .lang-switcher {
    border-left: none;
    margin-left: 0;
    margin-top: 10px;
    border-top: 1px solid #eee;
    padding-top: 10px;
  }

}

/* Tables */
.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  font-size: 0.95rem;
  background-color: var(--white);
  border: 1px solid #ddd;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.content table th,
.content table td {
  padding: 12px 15px;
  border: 1px solid #ddd;
  text-align: left;
}

.content table th {
  background-color: var(--bar-color);
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  border-bottom: 3px solid var(--accent-color);
}

.content table tr:nth-child(even) {
  background-color: rgba(0, 41, 82, 0.15);
}

.content table tr:hover {
  background-color: rgba(191, 161, 95, 0.3);
}