/* Base styles for AWS Cloud Computing Guide */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f4f4f4;
}

.main-nav {
  background-color: #232f3e;
  color: white;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.nav-menu a:hover {
  background-color: #ff9900;
}

main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

article {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1, h2, h3, h4, h5, h6 {
  color: #232f3e;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  border-bottom: 3px solid #ff9900;
  padding-bottom: 0.5rem;
}

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

.intro {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 2rem;
  font-style: italic;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem 0;
}

.caption {
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
  text-align: center;
  margin-bottom: 2rem;
}

ul {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
}

strong {
  color: #232f3e;
}

.related-content, .professional-resources {
  background-color: #f8f8f8;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 2rem 0;
}

.related-content h3, .professional-resources h3 {
  color: #232f3e;
  margin-bottom: 1rem;
}

.gbp-embed {
  margin: 2rem 0;
  text-align: center;
}

.cta {
  background-color: #ff9900;
  color: white;
  padding: 1.5rem;
  text-align: center;
  border-radius: 8px;
  margin: 2rem 0;
}

.cta a {
  color: white;
  text-decoration: underline;
}

footer {
  background-color: #232f3e;
  color: white;
  padding: 2rem 0;
  margin-top: 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0 2rem;
}

.footer-section {
  flex: 1;
  min-width: 200px;
  margin-bottom: 1rem;
}

.footer-section h4 {
  color: #ff9900;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
  margin-left: 0;
}

.footer-section a {
  color: white;
  text-decoration: none;
}

.footer-section a:hover {
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding: 1rem 2rem;
  border-top: 1px solid #444;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .main-nav {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-content {
    flex-direction: column;
  }
}
