:root {
    --primary-blue: #0056b3;
    --bg-light: #f8f9fa;
    --text-dark: #333333;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --accent-soft: #e3f0ff;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Verdana, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header & Centered Logos */
.site-header {
    background: var(--card-bg);
    padding: 20px 0 0 0;
    border-bottom: 1px solid var(--border-color);
}

.logo-wrapper {
    display: flex;
    justify-content: center; /* Center logos horizontally */
    padding-bottom: 20px;
}

.logo-link {
    display: flex;
    flex-direction: column; /* Stack vertically for a cleaner center */
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.main-logo { height: 85px; width: auto; }
.text-logo { height: 40px; width: auto; }

/* Navigation Bar */
.nav-bar {
    background: #f1f3f5;
    padding: 5px 0;
    border-top: 1px solid var(--border-color);
}

.main-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center; /* Center menu items */
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 1.1rem; 
}

.nav-link.active {
    background: var(--primary-blue);
    color: white;
}

/* Slimmed Content Cards */
.content-wrapper {
    margin-top: 20px; /* Reduced space from menu */
    padding-bottom: 40px;
}

.content-card, .status-card {
    background: var(--card-bg);
    padding: 15px 20px; /* Reduced vertical and horizontal padding */
    border-radius: 8px;
    margin-bottom: 10px; /* Reduced margin between cards */
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

.status-card {
    background-color: var(--accent-soft);
    border-left: 6px solid var(--primary-blue);
}

h1 { 
    color: var(--primary-blue); 
    font-size: 1.8rem; 
    margin: 0 0 10px 0; /* Tightened margins */
}

h3 { margin: 0 0 8px 0; }
p { margin: 0 0 10px 0; }
p:last-child { margin-bottom: 0; }

/* Responsive Adjustments */
@media (min-width: 768px) {
    .logo-link { flex-direction: row; gap: 20px; } /* Side-by-side on desktop but still centered */
    .main-logo { height: 95px; }
    .text-logo { height: 45px; }
    .nav-link { font-size: 1.25rem; padding: 10px 30px; }
    h1 { font-size: 2.2rem; }
}

@media (max-width: 599px) {
  /* If .logo is an <img> element or wraps an <img>, these rules cover both cases */
  .logo,
  .logo img {
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  /* Optional: reduce outer body padding so the logo can reach screen edges */
  body {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  /* If .content has padding that causes horizontal scroll, ensure box fits */
  .content {
    padding-left: 1rem;
    padding-right: 1rem;
  }