body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  background-color: #f7f7fa;
  line-height: 1.6;
}

header {
  background-color: #2c3e50;
  color: white;
  padding: 16px 32px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: center; 
  position: relative;     
}

header h1 {
  position: absolute; 
  left: 32px;         
  margin: 0;
}

nav {
  display: flex;
  justify-content: center;
  margin: 0 auto; 
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

.hero {
  background-image: url("https://images.unsplash.com/photo-1500904156668-758cff89dcff?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&q=80&w=1170");
  background-size: cover; 
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  
  display: flex;
  flex-direction: column;
  justify-content: center; 
  align-items: center; 
  text-align: center; 
  
  padding: 100px 20px;
  min-height: 80vh; 
  background-color: rgba(0,0,0,0.4); 
  background-blend-mode: multiply;
}

main {
  display: flex; 
  flex-wrap: wrap;
  gap: 32px;
  padding: 32px;
  align-items: flex-start;
}

.hero {
  flex: 0 0 20%; 
  min-height: initial;
}

.articles-content {
  flex: 1 1 75%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

article {
    width: 100%;
    box-sizing: border-box; 
    word-wrap: break-word; 
    background-color: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

aside {
  flex: 0 0 100%;
  margin-top: 0;
  
  background-color: #ecf0f1;
  padding: 16px;
  border-radius: 8px;
}

.goals-main, .plans-main {
  display: flex;
  flex-direction: column;
  align-items: center; 
  padding: 32px;
}

.page-title {
  max-width: 1200px;
  width: 100%;
  text-align: center;
  padding: 16px 0 24px;
  margin: 0 auto;
}

.goals-container {
  width: 100%;
  max-width: 1200px; 
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
  gap: 32px;
  margin-bottom: 32px;
}

.goal-article {
  transition: transform 0.2s;
}

.goal-article:hover {
  transform: translateY(-5px);
}

.contact-main {
  display: flex;
  flex-direction: column;
  align-items: center; 
  padding: 32px;
}

.contact-section {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 32px;
}

.contact-info {
    background-color: #ecf0f1;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.contact-info h3 {
    color: #2c3e50;
    margin-top: 0;
}

.contact-form {
    background-color: white;
    padding: 30px; 
    border-radius: 12px; 
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1); 
}

.contact-form h3 {
    color: #3498db;
    margin-top: 0;
}

.form-group {
    margin-bottom: 20px; 
}

.contact-form label {
    display: block;
    margin-bottom: 8px; 
    font-weight: 600; 
    color: #2c3e50;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px; 
    border: 1px solid #ccc;
    border-radius: 6px; 
    box-sizing: border-box; 
    transition: border-color 0.3s;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: #3498db; 
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

.submit-btn {
    background-color: #3498db;
    color: white;
    padding: 12px 25px; 
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.1s;
}

.submit-btn:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
}

footer {
  background-color: #2c3e50;
  color: white;
  text-align: center;
  padding: 24px;
}

footer ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 8px 0 0;
  padding: 0;
}

footer a {
  color: white;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  main {
    flex-direction: column; 
    padding: 16px;
  }
  
  .hero, 
  .articles-content, 
  aside {
    flex: 0 0 100%; 
    max-width: 100%;
  }

  .goals-container {
      grid-template-columns: 1fr;
  }
  
  .contact-section {
      padding: 0 16px;
  }
  
  .header {
    flex-direction: column;
    text-align: center;
  }
  
  header h1 {
    margin: 0 0 10px; 
  }

  nav {
    justify-content: center;
    margin-left: 0;
    margin-right: 0;
  }
  
  nav ul {
    flex-direction: column;
    gap: 8px;
  }
}