
/* CSS Document */
  /* Reset and Base Styles */
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  body {
    font-family: 'Google Sans', Arial, sans-serif;
	font-size: large ;
    line-height: 1.6;
    background-color: #f5f5f5;
    color: #333;
    padding: 10px;
  }
  .container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  }

  /* Responsive Images */
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }

 /* Header & Navigation */
  .primary_header {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    background-color: #000000;
  }

  .primary_header_grey {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    background-color: #5c5b5b;
  }

  .primary_header img {
    max-width: 250px; /* Limits logo size on huge screens */
	max-height: 200px;
    width: auto;
	height: auto;
  }
  .secondary_header ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    background: #333;
    border-radius: 4px;
    padding: 10px;
  }
  .secondary_header li {
    color: #fff;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
  }

  /* Main Layout Section */
  section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
  }
  .left_article {
    background: #fdfdfd;
    padding: 20px;
    border-left: 4px solid #007bff;
    border-radius: 4px;
  }
  .left_article h3 {
    margin-bottom: 15px;
    color: #007bff;
  }
  .left_article p {
    margin-bottom: 12px;
  }

  /* Full Width Center Article */
  .centre_article {
    background: #fdfdfd;
    padding: 20px;
    margin: 30px 0;       /* Gives it top and bottom spacing */
    width: 100%;          /* Makes it span the whole page width */
    box-sizing: border-box; /* Includes padding in the width calculation */
    border-radius: 4px;
  }
  .centre_article h3 {
    margin-bottom: 15px;
    color: #007bff;
  }
  .centre_article p {
    margin-bottom: 12px;
  }

  /* Columns Grid Layout */
  .row {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
  }
  .columns {
    background: #fafafa;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #eee;
  }
  .thumbnail_align {
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    margin-bottom: 10px;
    width: 100%;
	height: 80px;
  }
  /* Ensures block-level layout elements sit correctly in the middle */
  .thumbnail_align img {
    margin: 0 auto;
  }
  .thumbnail {
    border-radius: 4px;
    max-height: 200px;
    object-fit: contain; /* Prevents cropping logo graphics */
  }
	
  /* Ensures the link container takes up the correct flex space */
  .img-pointer-link {
    display: flex;
    justify-content: center;
    width: 100%;
    cursor: pointer;
  }

  /* Footer */
  footer {
    text-align: center;
    padding: 20px;
    font-size: 14px;
    border-top: 1px solid #eee;
    margin-top: 20px;
  }


  /* Tablet and Desktop Layout Adjustments */
  @media (min-width: 768px) {
    body { padding: 20px; }
    section { flex-direction: row; }
    .left_article { flex: 3; }
    .right_article { flex: 1; }
    .row { flex-direction: row; }
    .columns { flex: 1; }
  }

.image-only-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.image-only-grid img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	cursor: pointer;
}

  .video-container {
    display: flex;
    justify-content: center; /* Centres horizontally */
    align-items: center;     /* Centres vertically (if container has height) */
    width: 100%;             /* Spans the full width of the screen */
  }

/* The outer window that hides the overflow */
.pdf-scroll-wrapper {
    width: 100%;
    height: 600px; /* The visible height on your webpage */
    overflow-y: auto; /* Enables standard scrollbars when paused */
    position: relative;
}

/* The inner container holding the PDF */
.pdf-scroll-content {
    display: block;
    width: 100%;
    /* Adjust '20s' to make the scroll faster or slower */
    animation: autoScrollPdf 20s linear infinite; 
}

/* THE MAGIC: Pauses the animation instantly when the user interacts with it */
.pdf-scroll-wrapper:hover .pdf-scroll-content,
.pdf-scroll-wrapper:active .pdf-scroll-content,
.pdf-scroll-wrapper:focus-within .pdf-scroll-content {
    animation-play-state: paused;
}

/* The animation that moves the PDF upward */
@keyframes autoScrollPdf {
    0% {
        transform: translateY(0);
    }
    100% {
        /* Adjust this percentage based on your PDF length so it doesn't scroll into empty space */
        transform: translateY(-50%); 
    }
}
