/* css/main.css - Add or extend these styles */

/* 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 */
}

.site-header .site-logo {
    max-width: 481px; /* Adjust as needed */
    height: auto;
}

.site-header .phone-number-img {
    max-width: 318px; /* Adjust as needed */
    height: auto;
}

/* Header image specific to vitalstatistics.html, placed absolutely within header */
.site-header .header-image-vitalstatistics {
    position: absolute;
    right: 0px;
    top: 28px; /* Based on original top position */
    width: 430px;
    height: 380px;
    z-index: -1;
    opacity: 0.8; /* Adjust for desired visibility */
}

/* 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 Vital Statistics Page */
.main-content.vital-statistics-page {
  padding: 40px 0;
  line-height: 1.5;
  display: grid;
  grid-template-columns: 1fr 2fr; /* Two columns for layout */
  gap: 30px;
}

.vital-statistics-intro {
    grid-column: 2 / 3; /* Place in the second column */
    padding: 0;
}

.vital-statistics-intro h2 {
    font-family: "Verdana", sans-serif;
    font-weight: 700;
    color: #0000ff;
    font-size: 18.7px;
    margin-bottom: 15px;
}

.vital-statistics-intro p {
    font-family: "Verdana", sans-serif;
    font-size: 16px;
    color: #000000;
    margin-bottom: 10px;
}

.vital-statistics-intro h3 {
    font-family: "Verdana", sans-serif;
    font-weight: 700;
    color: #0000ff;
    font-size: 16px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.vital-statistics-intro .vital-statistics-definition {
    font-family: "Verdana", sans-serif;
    font-size: 16px;
    color: #000000;
    margin-top: 20px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.vital-statistics-intro .vital-statistics-tip {
    font-family: "Verdana", sans-serif;
    font-weight: 700;
    color: #000000;
    font-size: 18.7px;
    margin-top: 20px;
    margin-bottom: 10px;
}


.vital-statistics-services {
    grid-column: 1 / 2; /* Place in the first column */
    text-align: center;
}

.vital-statistics-services .section-title {
    font-family: "Verdana", sans-serif;
    font-weight: 700;
    color: #0000ff;
    font-size: 18.7px;
    margin-bottom: 10px;
    text-align: center;
}

.vital-statistics-services .alberta-record-search-img {
    max-width: 198px;
    height: auto;
    margin-bottom: 30px;
}

.vital-statistics-services .service-boxes-grid {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Space between service boxes */
}

.vital-statistics-services .service-box {
    background-color: #3f3f9f;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2); /* Optional: add subtle shadow */
}

.vital-statistics-services .service-link {
    font-family: "Verdana", sans-serif;
    font-weight: 700;
    color: #ffffff;
    font-size: 16px;
    text-decoration: none;
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 0; /* Add some vertical padding inside the link */
}

.vital-statistics-services .service-link:hover {
    text-decoration: underline;
}

/* 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;
  }

  .site-header .header-image-vitalstatistics {
      position: relative; /* Make it flow with content */
      width: 100%;
      height: auto;
      margin-top: 20px;
  }

  .container {
    padding: 10px;
  }

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

  .vital-statistics-intro, .vital-statistics-services {
      grid-column: auto; /* Remove specific column assignments */
  }
}

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

  .vital-statistics-intro h2 {
      font-size: 16px;
  }

  .vital-statistics-intro p, .vital-statistics-intro h3,
  .vital-statistics-intro .vital-statistics-definition,
  .vital-statistics-intro .vital-statistics-tip,
  .vital-statistics-services .service-link {
      font-size: 14px;
  }

  .vital-statistics-services .service-box {
      height: auto;
      min-height: 44px;
      padding: 10px 15px;
  }
}