/* Basic Reset & Box Sizing */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
}

.container {
  max-width: 1200px; /* Or a fluid width for responsiveness */
  margin: 0 auto;
  padding: 20px;
}

/* Header Styles */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end; /* Align items to the bottom */
  padding-bottom: 20px;
  position: relative; /* For background image if needed */
  height: 409px; /* Fixed height to contain absolute images */
}

.site-header .site-logo {
    position: absolute;
    left: 14px;
    top: 0px;
    max-width: 481px; /* Adjust as needed */
    height: auto;
}

.site-header .header-image {
    position: absolute;
    left: 665px;
    top: 0px;
    width: 535px;
    height: 409px;
    z-index: -1;
}

/* Navigation Styles */
.main-nav {
  background-color: #3e3f9ef0; /* Background color from original image */
  padding: 10px 0;
  text-align: center;
  position: relative; /* For the top/bottom borders */
}

.main-nav::before,
.main-nav::after {
    content: "";
    display: block;
    height: 7px; /* Half of original 14px */
    background-color: #9e06bd19; /* Color from original separator image */
    position: absolute;
    left: 0;
    right: 0;
}

.main-nav::before {
    top: -7px; /* Position above the nav */
}

.main-nav::after {
    bottom: -7px; /* Position below the nav */
}

.main-nav ul {
  list-style: none;
  display: flex; /* Use flexbox for horizontal navigation */
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.main-nav li {
  margin: 0 10px;
}

.main-nav .nav-item {
  display: block;
  padding: 5px 10px;
  color: #ff0000;
  font-family: Arial, sans-serif;
  font-size: 15px;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s ease;
}

.main-nav .nav-item:hover {
  background-color: rgba(255, 0, 0, 0.1); /* Example hover effect */
}

.main-nav .current-page {
  font-weight: bold; /* Indicate active page */
  /* Add specific active state styling */
}

/* Main Content Layout for Contact Page */
.main-content.contact-page {
  padding: 40px 0;
  line-height: 1.5;
  display: grid;
  grid-template-columns: 1fr 1.5fr; /* Contact info on left, reminders/troops on right */
  gap: 30px;
}

.contact-info-section {
    grid-column: 1 / 2; /* Contact details on the left */
}

.contact-details-block {
    border: 3px double #0000ff;
    padding: 20px;
    min-height: 407px; /* Matches original content box height for consistency */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically center content if box is taller */
}

.contact-details-block h2 {
    font-family: "Verdana", sans-serif;
    font-weight: 700;
    color: #0000ff;
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
}

.contact-details-block p {
    font-family: "Verdana", sans-serif;
    font-size: 19px;
    color: #000000;
    margin-bottom: 10px;
}

.contact-details-block .address-group,
.contact-details-block .phone-group,
.contact-details-block .fax-group,
.contact-details-block .email-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 5px;
}

.contact-details-block .label-text {
    font-family: "Verdana", sans-serif;
    font-size: 19px;
    color: #000000;
    font-weight: normal;
    min-width: 90px; /* Align labels */
    flex-shrink: 0;
    text-align: right;
    padding-right: 10px;
}

.contact-details-block .detail-text {
    font-family: "Verdana", sans-serif;
    font-size: 19px;
    color: #000000;
    flex-grow: 1;
}

.contact-details-block .detail-text p {
    margin: 0; /* Remove default paragraph margin */
}

.contact-details-block .detail-text a {
    color: #0000ff; /* Link color */
    text-decoration: none;
}

.contact-details-block .detail-text a:hover {
    text-decoration: underline;
}

.renewal-and-troops-section {
    grid-column: 2 / 3; /* Content on the right */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center items horizontally within this section */
    gap: 30px;
}

.support-troops-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.support-troops-text-img {
    max-width: 354px; /* Original width */
    height: auto;
    margin-bottom: 10px;
}

.support-troops-plate-img {
    max-width: 181px; /* Original width */
    height: auto;
}

.renewal-reminder-block {
    border: 3px double #0000ff;
    padding: 20px;
    text-align: center;
    max-width: 558px; /* Original width */
    width: 100%; /* Ensure it's responsive */
}

.renewal-reminder-block h3 {
    font-family: "Verdana", sans-serif;
    font-weight: 600;
    color: #0000ff;
    font-size: 19px;
    margin-bottom: 10px;
}

.renewal-reminder-block h3 .C-7 {
    font-weight: 700;
}

.renewal-reminder-block .renewal-description {
    font-family: "Verdana", sans-serif;
    font-size: 13px;
    color: #333333;
    margin-bottom: 20px;
    line-height: 1.3;
}

.renewal-reminder-block .renewal-description .bold-text {
    font-weight: 700;
    font-size: 14.7px; /* Based on C-5 in original */
}

.renewal-reminder-block .renewal-signup-img {
    max-width: 272px; /* Original width */
    height: auto;
    display: block;
    margin: 0 auto;
}

.renewal-reminder-block .renewal-map-link {
    display: block; /* Ensure the link behaves as a block to center the image */
    text-decoration: none;
}


/* Footer Styles (shared) */
.site-footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  grid-column: 1 / -1; /* Span across all columns in grid */
}

.site-footer .footer-link {
  color: #fff;
  text-decoration: none;
  margin: 0 15px;
  font-size: 16px;
}

.site-footer .footer-link:hover {
  text-decoration: underline;
}


/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  .main-nav ul {
    flex-direction: column;
    align-items: center;
  }

  .main-nav li {
    margin-bottom: 10px;
  }

  .site-header {
    flex-direction: column;
    align-items: center;
    height: auto; /* Allow height to adjust for stacked images */
  }

  /* Adjust absolute positioning for header images on smaller screens */
  .site-header .site-logo,
  .site-header .phone-number-img {
      position: relative; /* Make them flow with content */
      left: auto;
      top: auto;
      margin-bottom: 10px; /* Add some space between stacked images */
  }
  .site-header .header-image-contact {
      position: relative; /* Make it flow with content */
      width: 100%;
      height: auto;
      margin-top: 20px;
  }

  .container {
    padding: 10px;
  }

  .main-content.contact-page {
      grid-template-columns: 1fr; /* Stack columns on smaller screens */
  }

  .contact-info-section, .renewal-and-troops-section {
      grid-column: auto; /* Remove specific column assignments */
  }

  .contact-details-block, .renewal-reminder-block {
      max-width: 100%; /* Allow them to take full width */
  }

  .contact-details-block {
      min-height: auto; /* Allow height to shrink on smaller screens */
      padding: 15px;
  }

  .renewal-reminder-block {
      padding: 15px;
  }

  .contact-details-block h2 {
      font-size: 20px;
  }

  .contact-details-block p, .contact-details-block .label-text, .contact-details-block .detail-text {
      font-size: 16px;
  }

  .renewal-reminder-block h3 {
      font-size: 17px;
  }

  .renewal-reminder-block .renewal-description {
      font-size: 12px;
  }
}

@media (max-width: 480px) {
  .main-nav .nav-item {
    font-size: 14px;
    padding: 8px;
  }

  .contact-details-block h2 {
      font-size: 18px;
  }

  .contact-details-block p, .contact-details-block .label-text, .contact-details-block .detail-text {
      font-size: 14px;
  }

  .contact-details-block .label-text {
      min-width: 70px; /* Adjust label width for very small screens */
  }

  .renewal-reminder-block h3 {
      font-size: 15px;
  }

  .renewal-reminder-block .renewal-description {
      font-size: 11px;
  }

  .support-troops-text-img {
      max-width: 90%;
  }
}