/* ================================
   Background Image
=================================*/ 
 body.seabees-page {
    background-image: url('/images/molegroup.png');
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-color: rgba(0, 0, 0, 0.5);
    background-blend-mode: darken;
}
 
 /* Base styles (mobile first) */

    .hero-section {
      padding: 75px 15px 15px;
      text-align: center;
      margin-bottom: 20px;
      letter-spacing: 0.5px;
    }

    .hero-overlay {
      color: #808000;
      text-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
    }

    .hero-overlay h1,
    .hero-overlay p {
      margin: 0.5em 0;
    }

    .hero-overlay h1 {
      font-size: 2.8em;
    }

    .hero-overlay p {
      font-size: 1.2em;
      margin-top: 80px;
    }

    h2 {
      color: #808000;
      text-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
    }

    main.transportation-main {
      max-width: 100%;
      margin: 0 auto;
      padding: 15px;
      letter-spacing: 0.5px;
    }

    section {
      text-align: center;
      margin-bottom: 40px;
    }

    section:last-of-type {
      margin-top: 60px;
    }

    .officer-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
      gap: 10px; /* Reduced gap for tighter top row */
      justify-items: center;
      padding: 10px 10px;
      position: relative;
    }

    .officer-card {
      max-width: 100%;
      flex: 1 1 280px; /* flexible width, min 280px */
      text-align: center;
    }

    .officer-card img {
      width: 180px;
      height: 180px;
      border-radius: 10px;
      object-fit: cover;
      margin-bottom: 10px;
    }

    .officer-card h3 {
      margin-top: 15px;
      font-size: 1.2em;
      color: #808000;
      letter-spacing: 1px;
    }

    .officer-card p {
      font-size: 0.95em;
      color: #ddd;
      line-height: 1.5;
    }

    /* Related Divisions */
    .resource-container {
      display: grid;
      grid-template-columns: 1fr;
      gap: 20px;
      justify-content: center;
      padding: 30px 15px;
      max-width: 100%;
      margin: auto;
    }

    .resource-box {
      background: rgba(0, 0, 0, 0.7);
      padding: 20px;
      border-radius: 12px;
      text-align: center;
      box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      text-decoration: none;
      color: inherit;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .resource-box:hover {
      transform: scale(1.03);
      box-shadow: 0 0 25px rgba(0, 255, 255, 0.4);
    }

    .resource-box img {
      width: 100%;
      border-radius: 10px;
      margin-top: 15px;
      object-fit: cover;
      height: 180px;
    }

    .divisions-title {
      text-align: center;
      color: #808000;
      text-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
      margin-bottom: 30px;
    }

    .resource-header {
      font-size: 1.5em;
      color: #808000;
      letter-spacing: 2px;
    }

    /* Medium screens and up */
    @media (min-width: 600px) {
      main.transportation-main {
        max-width: 800px;
        padding: 20px;
      }

      .officer-card {
        max-width: 300px;
        flex: 0 0 auto;
      }

      .officer-grid {
        gap: 40px;
        margin-top: 30px;
      }

      .resource-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        max-width: 1200px;
        padding: 40px 20px;
      }
    }