/*--CSS Reset --*/
*{
    padding: 0;
    margin: 0;
    max-width: 100vw;
    font-size: 100%;
    font-weight: normal;
    line-height: 1em;
}
*, *::before, *::after {
  box-sizing: border-box;
}

html, body{
    overflow-x: hidden;
}

body{
    background:#f2efe9;
    color:#111111;
    font-family: "IBM Plex Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:"wdth" 75;
}
section{
    width: 80%;
    max-width:1000px;
    margin: auto;
}
header{
    text-align: left;
    padding: 0rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}
.container{
    margin: 0 auto;
}
/* Ensures images and videos shrink to fit their containers rather than bursting out */
img, video, canvas {
  max-width: 100%;
  height: auto;
}
img{
    display: block;
    width:80%;
    max-width: 1200px;
    padding:0;
    margin:auto;
}
/*--Styling Links--*/

a{
    color: #111111;
    text-decoration: none;
}

a:hover{
    color: #0b3954;
    transition: all 0.3s ease-in-out;
}
p{
    padding: 0.5rem 0;
    line-height: 1.3;
     overflow-wrap: break-word;
}
h1,h2,h3,h4{
    color:#111111; 
    font-family: "Urbanist", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal; 

}
h1{
    font-size: 5.61rem;
    font-weight: 600;
}

h2{
    font-size: 3.157rem;
    font-weight:600;
}
h3{
    padding-top:1rem;
    padding-bottom:1rem;
    font-size: 2.369rem;
}

h4{
    font-size: 1.777rem;
}
.callout{
    width: auto;
    background:#002e31;
    color:#f7f7f7;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 2rem;
    margin-top:1rem;
    margin-bottom:1rem;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 1.25rem;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal; 
}
.callout h4{
    color: #f7f7f7;
}
/*--Style the CSS Grid--*/
.grid-container{
    display: grid;
    width: 80%;
    max-width: 1000px;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto auto auto;
    row-gap: 2rem;
    column-gap: 3rem;
    margin: auto;
    padding: 4rem 0;
}
.grid-item1{
    margin:auto;
}

.grid-item4{
    margin:auto;
  
}
.grid-item5{
    margin: auto;
   
}
.grid-container2{
    display: grid;
    width:80%;
    max-width:1000px;
    grid-template-columns: auto;
    grid-template-rows: auto;
    margin:auto;
    padding: 4rem 0;
}
.grid-container3{
    display: grid;
    width:80%;
    max-width:1000px;
    grid-template-columns: auto auto auto;
    grid-template-rows: auto auto;
    gap:1rem;
    margin:auto;
    padding: 4rem 0;
}
.grid-container4{
    display: grid;
    width:80%;
    max-width:1000px;
    grid-template-columns: auto;
    grid-template-rows: auto;
    margin:auto;
    padding: 0 0 4rem 0;
}
.grid-container5{
    display: grid;
    width: 80%;
    max-width: 1000px;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    row-gap: 2rem;
    column-gap: 3rem;
    margin: auto;
    padding: 4rem 0;
}
.grid-item11{
    background-color: #f4f4f4;
    padding: 0.5rem;
    box-shadow: 0.5rem 0.5rem 1rem 1rem #f1f1f1;
}
.grid-item11 :hover{
    background-color: #f1f1f1;
    box-shadow: 0.5rem 0.5rem 1rem 1rem #efefef;
}
/*Table Styling*/
/* Table container styling */
.styled-table {
  width: 100%;
  max-width: 1000px;
  border-collapse: collapse;
  border-radius:12px;
  margin: 20px 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Cell styling */
.styled-table td {
  border: 1px solid #dddddd;
  padding: 12px 15px;
  text-align: left;
}

/* Make the first column bold and Add Line to match list*/
.styled-table td:first-child {
  font-weight: 600;
  border-left: 5px solid #002e31;
}

/* Zebra striping for alternating rows */
.styled-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* List container styling */
.styled-list {
  list-style-type: none; /* Removes the default bullet points */
  padding: 0;
  margin: 20px 0;
  font-family: "IBM Plex Sans", sans-serif;
  max-width: 1000px;
}

/* Individual list item styling */
.styled-list li {
  background-color: #f9f9f9;
  margin-bottom: 10px;
  padding: 12px 15px;
  border-radius: 12px;
  border-left: 5px solid #002e31; /* Adds a colored accent line on the left */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
/* Main container for the collapsible section */
.collapsible-section {
  max-width: 1000px;
  margin: 20px 0;
  background-color: #f9f9f9;
  border: 1px solid #dddddd;
  border-left: 5px solid #002e31; /* Matches your table and list */
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* The clickable title bar */
.collapsible-header {
  padding: 15px;
  font-weight: bold;
  background-color: #f9f9f9;
  cursor: pointer;
  list-style: none; /* Removes the default arrow in modern browsers */
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

/* Removes the default arrow in Safari */
.collapsible-header::-webkit-details-marker {
  display: none;
}

/* Hover effect for the title bar */
.collapsible-header:hover {
  background-color: #f1f1f1;
}

/* Custom arrow icon on the right */
.collapsible-header::after {
  content: '\25BC'; /* Unicode for a downward triangle */
  font-size: 14px;
  color: #002e31;
  transition: transform 0.3s ease;
}

/* Rotate the arrow to point up when the section is open */
.collapsible-section[open] .collapsible-header::after {
  transform: rotate(-180deg);
}

/* Add a line under the header only when it is open */
.collapsible-section[open] .collapsible-header {
  border-bottom: 1px solid #dddddd;
}

/* Padding for the content inside */
.collapsible-content {
  padding: 15px;
}
/* -- The Ghost Button -- */
.home-btn {
  display: inline-flex; /* Flexbox keeps the icon and text perfectly level */
  align-items: center; /* Centers them vertically */
  gap: 8px; /* Adds perfect spacing between the arrow and the text */
  padding: 10px 20px;
  margin-bottom: 1rem;
  color: #002e31;
  text-decoration: none;
  font-family: sans-serif;
  font-weight: bold;
  font-size: 16px;
  background-color: transparent;
  transition: all 0.2s ease;
}

/* Button Hover State */
.home-btn:hover {
  background-color:  #002e31;
  color: #ffffff; /* The text AND the SVG will both turn white automatically */
}

/* -- The SVG Icon -- */
.btn-icon {
  width: 20px; /* Sizes the arrow appropriately for the 16px font */
  height: 20px;
  transition: transform 0.2s ease;
}

/* Optional: Make the arrow slide left slightly when the button is hovered */
.home-btn:hover .btn-icon {
  transform: translateX(-4px);
}
#logo{
    display:inline;
    padding: 1rem;
    max-width: 100px;
    max-height: 100px;
}
/*Image Styling*/
.hero{
    margin:auto;
    width: 100%;
    max-height:50vh;
}
.heroimg{
    margin:auto;
    padding-bottom: 2rem;
}
/* 1. Make the anchor tag wrap like a box, not like text */
a.image-link {
  display: inline-block; /* or display: block; depending on your layout */
}

/* 2. Remove the text-spacing behavior from the image */
a.image-link img {
  display: block;
  max-width: 100%; /* Ensures the image doesn't overflow the link */
}
/* -- Thumbnail Styling -- */
.thumbnail-image {
  border-radius: 12px;
  max-height: 50vh;
  margin:auto;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.thumbnail-image:hover {
  transform: scale(1.02); /* Slight zoom on hover to show it's clickable */
}
.thumbnail-link{
    display:inline-block;
}
/* -- Lightbox Overlay (Hidden by default) -- */
.lightbox-overlay {
  display: none; /* Keeps it hidden until clicked */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85); /* Dark semi-transparent background */
  z-index: 9999; /* Ensures it sits on top of everything else */
  text-decoration: none;
  cursor: zoom-out; /* Changes the mouse pointer to indicate clicking will close it */
}

/* -- The Magic: Show Lightbox when Targeted -- */
/* When the URL ends in #enlarged-image-1, this rule applies */
.lightbox-overlay:target {
  display: flex; /* Flexbox makes centering easy */
  justify-content: center;
  align-items: center;
}

/* -- Enlarged Image Styling -- */
.lightbox-image {
  max-width: 90vw; /* Prevents it from touching the left/right edges */
  max-height: 90vh; /* Prevents it from touching the top/bottom edges */
  object-fit: contain; /* Keeps the original image proportions perfectly */
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  cursor: default; /* Normal cursor over the image itself */
}
 /*Styling the iframes*/
    .centre{
        text-align: center;
        margin:auto;
    }
    .list{

    list-style-position: inside;
}
.listitem{
    line-height: 1.5rem;
    font-weight: 600;
}

/*--Styling the Footer--*/
footer { 
    grid-area:footer;
    width:100%;
    text-align: center; 
    font-size: 1rem; 
    color: #111111;
    margin:auto; 
    padding: 2rem 0 1rem 0;
    scroll-snap-align: start;
} 

footer p { 
    margin-top: 1rem;
    text-align: center;
    max-width:80%; 
} 

.footergrid{
    margin: auto;
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto auto;
    row-gap: 0.75rem;
}
/* Button Styling*/
.button{
    background-color: #002e31;
    color: #f7f7f7;
    padding: 16px 32px;
    font-family:"Urbanist", sans-serif;
    text-align: center;
    text-decoration: none;
    display: block;
    font-size: 1.777rem;
    font-weight:600;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.button:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 8px 20px rgba(0, 0, 0, 0.08);
}

.button:active {
  background-color: #33585a;
 

}