/* Base styles */
body {
  margin: 0;
  font-family: 'Titillium Web', sans-serif;
  background-color: #fdfdfd;
  color: #111;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container for consistent layout */
.container {
  max-width: 900px;
  width: 100%;
  margin-inline: auto;
  padding-inline: 1.5rem;
  box-sizing: border-box;
}

/* Header */
header {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-block: 1rem;
}

nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

nav a {
  color: #007acc;
  text-decoration: none;
  font-weight: 500;
}

nav a:hover {
  text-decoration: underline;
}

/* Main */
main {
  flex: 1;
  padding-block: 2rem;
  display: grid;
  gap: 2rem;
}

main section {
  margin-bottom: 3rem;
}

h1 {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
}

ul {
  padding-left: 1.25rem;
}

a {
  color: #007acc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Background image section */
.with-bg {
  background-image: url('your-background.jpg'); /* Replace with your image path */
  background-size: cover;
  background-position: center;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.2);
  color: #fff;
}

.with-bg h2,
.with-bg p,
.with-bg li {
  color: #fff;
}

/* Footer */
footer {
  background-color: #f5f5f5;
  font-size: 0.9rem;
  color: #555;
}

footer .container {
  padding-block: 1rem;
}

footer p {
  text-align: center;
  margin: 0;
}

/* Responsive typography and layout */
@media (min-width: 600px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  main {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1024px) {
  main {
    grid-template-columns: 1fr 1fr;
  }
}