/* Reset some default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 200;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  background-color: #FFFFFF; /* Light background color f8f6f5*/
  opacity: 0;
  animation: fadeIn 1s ease-in forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}
/* Headings Styles */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.5;
  margin-bottom: 0.5em;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: left; /* Left align headings */
}

h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 700;
  margin: 1em 0 0.5em; /* Reduced margin below h1 */
  padding-left: 4rem;
}

h2 {
  font-size: 2.5rem;
  font-weight: 600;
  padding-left: 4rem;
}

h3 {
  font-size: 2rem;
  font-weight: 600;
  padding-left: 4rem;
}

h4 {
  font-size: 1.5rem;
  font-weight: 500;
  padding-left: 4rem;
}

h5 {
  font-size: 1.25rem;
  font-weight: 500;
  padding-left: 4rem;
}

h6 {
  font-size: 1rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-left: 4rem;
}

/* Paragraph Styles */
p {
  font-size: 1.3rem;
  margin-top: 0.5em;
  margin-bottom: 1em;
  font-weight: 300;
  text-align: left; /* Left align paragraphs */
  max-width: 1000px;
  padding-left: 4rem;
  margin-right: auto;
}

a {
  color: #000;
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between; /* Align logo and nav links as before */
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end; /* Align navigation items to the right */
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

/* Hamburger menu (hidden by default) */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: #333;
  border-radius: 2px;
}

/* Responsive styles */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    width: 100%;
    flex-direction: column;
    padding: 1rem 0;
    border-top: 1px solid #eee;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }
}

/* Hero Header Styles */
.hero-header {
  position: relative;
  width: 100%;
  height: 60vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  overflow: hidden;
}

.hero-header::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem;
  max-width: 900px;
  transform: translateX(-10%);
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

.hero-content p {
  font-size: 1.4rem;
  font-weight: 300;
  color: #f0f0f0;
}

/* Spacer to offset fixed navbar height */
.navbar-spacer {
  height: 60px; /* Adjust this to match your navbar height */
}


/* One-column layout for regular pages */
.page-content {
  width: 100%;
  max-width: 1200px; /* Limits the max-width */
  margin: 0 auto; /* Centers the content */
  padding: 2rem;
  margin-top: 2rem; /* Extra space for the navbar */
  background-color: #FFFFFF; /* White background for the page content */
  text-align: center; /* Center the text inside page-content */
}

.page-content .container {
  display: block; /* Makes sure the inner container does not follow the flex behavior */
  text-align: left; /* Align text in the container to the left, for headings and paragraphs */
}

/* New image-related styles */
.page-content img {
  display: block; /* Makes the image a block-level element */
  margin-bottom: 0.1rem; /* Adjusts the space between the image and the text */
  margin-left: 4rem; /* Left justify the image */
  width: 100%; /* Optional: Limit the image size to fit the container */
  max-width: 100%; /* Prevent the image from overflowing */
}

/* New figcaption-related styles */
figcaption {
  padding: 1rem; /* Adds padding inside the figcaption */
  font-size: 0.8rem; /* Adjust the font size if needed */
  font-weight: 300; /* Adjust the font weight if needed */
  color: #000; /* Change the text color */
  text-align: left; /* Align the text to the left */
  margin-top: 0rem; /* Add space above the figcaption */
  margin-left: 3rem; /* Align figcaption to the left, same as the image */
}

.accordion {
  max-width: 900px;
  margin: auto;
}

details {
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: white;
  overflow: hidden;
}

summary {
  padding: 15px;
  font-size: 1.1em;
  cursor: pointer;
  background-color: #eee;
  user-select: none;
}

summary:hover {
  background-color: #ddd;
}

.content {
  padding: 15px;
  border-top: 1px solid #ccc;
}


/* Three image containers (use 25% for four, and 50% for two, etc) */
.column {
  float: left;
  width: 33.33%;
  padding: 5px;
}

/* Clear floats after image containers */
.row::after {
  content: "";
  clear: both;
  display: table;
}

.blog-posts {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-left: 4rem;
}

.blog-card {
  background-color: #fff;
  padding: 1.5rem;
  border-left: 4px solid #999;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  max-width: 900px;
}

.blog-card h2 a {
  text-decoration: none;
  color: #333;
}

.blog-card .date {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 0.5rem;
}

.blog-card .excerpt {
  font-size: 1rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

.read-more {
  font-weight: 500;
  text-decoration: none;
  color: #0056b3;
}

.read-more:hover {
  text-decoration: underline;
}

.divider {
  border: none;
  height: 1px;
  background-color: #ccc;
}