/* Base styles */
body {
    font-family: Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    font-size: 1rem;
    background-color: #fff;
    color: #111;
}

.container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0.5rem;
}

h1 {
    font-family: "Times New Roman", Times, serif;
    font-size: 2.2rem; /* Increased size for larger screens (you can adjust this as needed) */
    font-weight: normal;
    margin-bottom: 0.5em;
    line-height: 1.3; /* Default line height for h1 */
}

/* Add the media query for mobile and reduce font size and line height */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem; /* Reduced font size on mobile */
        line-height: 1.2; /* Tighten the line height */
        margin-bottom: 0.3em; /* Reduce bottom margin to make it more compact */
    }
}

/* Other headers */
h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

h3 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    margin: 0 0 1rem 0;
}

ul {
    margin: 0 0 1rem 1.5rem;
    padding: 0;
}

.caption {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Other image styles */
.logo {
    width: auto;
    max-width: 300px;
    height: auto;
    display: block;
    margin-bottom: 0.5rem;
}

.horizontal-img {
    width: 100%;
    max-width: 1280px;
    height: auto;
    display: block;
    margin: 1rem 0;
}

.vertical-img {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 1rem 0;
}

.responsive-image {
  width: 100%;
  max-width: 800px;
  height: auto;
}

/* Container class for 1280x853 image */
.responsive-image-container {
  max-width: 800px; /* Set the maximum width for the container */
  width: 100%; /* Allow it to resize responsively */
  aspect-ratio: 1280 / 853; /* Maintain the 3:2 aspect ratio */
  background: #f0f0f0; /* Optional: see the container while the image loads */
  overflow: hidden; /* Prevent image from overflowing */
  margin-bottom: 20px; /* Optional spacing between text and image */
}

/* Container class for 1280x720 image */
.responsive-image-container-720 {
  max-width: 800px;
  width: 100%;
  aspect-ratio: 1280 / 720; /* New aspect ratio for this image */
  background: #f0f0f0;
  overflow: hidden;
  margin-bottom: 20px;
}

/* Container class for 1024x1024 image (square) */
.responsive-image-container-square {
  max-width: 800px;
  width: 100%;
  aspect-ratio: 1 / 1; /* 1:1 aspect ratio for square image */
  background: #f0f0f0;
  overflow: hidden;
  margin-bottom: 20px;
}

/* Responsive Photos to resize */
    .responsive-photo {
      max-width: 100%;
      height: auto;
      display: block;
}

/* Title underline style */
.title-underline {
    border: none;
    height: 2px;
    background-color: #17D2D9;
    margin: 0.5em auto 1.5em auto;
    width: 100%;
}

/* Link styles */
a {
    color: blue;
    text-decoration: none;
}

a:visited {
    color: blue;
}

a:hover {
    color: red;
    text-decoration: underline;
}

/* Footer styles */
footer {
    background-color: #FFF;
    color: #000;
    text-align: left;
    padding: 1rem;
}

footer .social-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

footer .social-links li {
    display: inline;
    margin-right: 1rem;
}

footer .social-links li a {
    color: red;
    text-decoration: none;
}

footer .social-links li a:hover {
    color: #f1c40f;
}

footer p {
    font-size: 0.9rem;
}

footer p a {
    color: blue;
    text-decoration: none;
}

footer p a:hover {
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    nav .nav-list {
        flex-direction: column;
        align-items: center;
        margin-top: 1rem;
    }

    nav .nav-list li {
        margin: 0.5rem 0;
    }

    footer .social-links {
        margin-top: 1rem;
    }

    /* Optional: Reinforce left alignment for mobile */
    h1 {
        text-align: left;
    }
}

/* Footer Banner */
.page-banner {
    text-align: left;
    margin-top: 2em;
    margin-bottom: 1em;
}

.page-banner img {
    max-width: 100%;
    height: auto;
}

/* Unified Responsive Embed Container */
.embed-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 1em 0;
}

.embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* YouTube Embed Code */

  .video-table {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 16px;
  }

  .video-cell {
    flex: 0 0 450px;
    max-width: 450px;
  }

  .video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
  }

  .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }

  .description-cell {
    flex: 1;
    background-color: #f9f9f9;
    padding: 20px;
    box-sizing: border-box;
  }

  /* Responsive behavior */
  @media (max-width: 768px) {
    .video-cell,
    .description-cell {
      flex: 1 1 100%;
      max-width: 100%;
    }
  }