/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #000000;
    background: #f9f9f9;
    padding-bottom: 60px; /* for footer */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  
  /* Container */
  .container {
    max-width: 700px;
    width: 90%;
    margin: 0 auto;
    padding: 20px 15px 40px 15px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    flex-grow: 1;
  }
  
  /* Header & Nav */
  header {
    background-color: #004080;
    color: white;
    padding: 15px 0;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  }
  
  nav {
    background-color: #0066cc;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  }
  
  nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  nav li {
    margin: 0 10px;
  }
  
  nav a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 12px 15px;
    font-weight: 600;
    border-radius: 6px;
    transition: background-color 0.3s ease;
  }
  
  nav a:hover,
  nav a:focus {
    background-color: #ffffff;
    color: #004080;
    font-weight: 700;
  }
  
  /* Main Headings */
  h1, h2, h3 {
    color: #004080;
    margin-bottom: 15px;
  }
  
  /* Paragraph and text */
  p {
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.5;
  }
  
  /* Lists */
  ul, ol {
    margin-left: 20px;
    margin-bottom: 15px;
  }
  
  /* Footer */
  footer {
    background-color: #004080;
    color: white;
    text-align: center;
    padding: 10px 15px;
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 700px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
  }
  
  /* Upload Form */
  form {
    max-width: 500px;
    margin: auto;
  }
  
  form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
  }
  
  form input[type="text"],
  form input[type="email"],
  form input[type="file"],
  form textarea {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 20px;
    border: 1.8px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
  }
  
  form input[type="text"]:focus,
  form input[type="email"]:focus,
  form input[type="file"]:focus,
  form textarea:focus {
    border-color: #0066cc;
    outline: none;
  }
  
  form button {
    background-color: #0066cc;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
  }
  
  form button:hover,
  form button:focus {
    background-color: #004080;
  }
  
  .error-msg {
    color: #cc0000;
    font-size: 0.9rem;
    margin-top: -15px;
    margin-bottom: 15px;
  }
  
  /* Editorial Board Table */
  table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
  }
  table th,
  table td {
    border: 1px solid #ccc;
    padding: 10px 12px;
    text-align: left;
    word-wrap: break-word;
    /* prevent overflow by forcing long words to break */
    word-break: break-word;
  }
  table th {
    background-color: #0066cc;
    color: white;
    font-weight: 700;
  }
  
  /* Archives list style */
  .archives-list {
    list-style: none;
    padding-left: 0;
  }
  
  .archives-list li {
    margin-bottom: 12px;
  }
  
  .archives-list a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
  }
  
  .archives-list a:hover,
  .archives-list a:focus {
    color: #004080;
    text-decoration: underline;
  }
  
  @media only screen and (max-width: 900px) {
    nav ul {
      flex-direction: column;
      align-items: center;
    }
    nav li {
      margin: 5px 0;
    }
    .container {
      width: 95%;
      padding: 15px 10px 35px 10px;
    }
    form button {
      padding: 12px 15px;
    }
    /* Make table container scrollable horizontally */
    table {
      display: block;
      overflow-x: auto;
      white-space: nowrap;
    }
    
    /* Ensure email cell breaks long words if possible */
    table td:nth-child(4),
    table th:nth-child(4) {
      word-break: break-all;
    }
  }
  