/* Base Styles */
body {
  font-family: "Open Sans", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8f8f8; /* Very light background */
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Headings */
h1,
h2,
h3 {
  text-align: center;
  margin-bottom: 40px;
  color: #222;
}

h1 {
  font-size: 3em;
  margin-bottom: 20px;
}

h2 {
  font-size: 2.5em;
}

h3 {
  font-size: 1.8em;
}

/* Buttons */
.button {
  display: inline-block;
  background-color: #007bff; /* Vibrant blue CTA */
  color: #fff;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  text-align: center;
}

.button:hover {
  background-color: #0056b3; /* Darker blue on hover */
}

.button-secondary {
  background-color: #5c4dff; /* Another vibrant CTA */
}

.button-secondary:hover {
  background-color: #4b3dcc;
}

/* Read More Link for Blog */
.read-more {
  display: inline-block;
  margin-top: 15px;
  color: #007bff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: #0056b3;
}

/* Read More Button for Articles */
.read-more-article {
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 0.9em;
}

/* --- Main Header --- */
.main-header {
  background-color: #ffffff;
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8em;
  font-weight: 700;
  color: #333;
}

.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 30px;
}

.main-nav a {
  color: #555;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: #007bff;
}

.header-button {
  padding: 10px 20px;
  font-size: 0.9em;
}

/* --- Hero Block --- */
.hero-block {
  background-color: #fff;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden; /* For image cropping */
}

.hero-block h1 {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-block p {
  font-size: 1.5em;
  margin-bottom: 40px;
}

.hero-image {
  max-width: 60%; /* Reduce image size */
  height: auto;
  margin-top: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* --- What You'll Learn Block --- */
.what-you-learn {
  padding: 60px 0;
  background-color: #f0f0f0;
}

.skills-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
}

.skill-item {
  text-align: center;
  flex-basis: calc(33% - 40px); /* Three items per row on desktop */
  max-width: 300px;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.skill-item img {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  border-radius: 50%;
  object-fit: cover;
}

.skill-item p {
  font-size: 1.2em;
  font-weight: 600;
  color: #444;
}

/* --- Training Program Block --- */
.program {
  padding: 60px 0;
  background-color: #fff;
}

.program-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
}

.step-item {
  flex-basis: calc(50% - 40px); /* Two items per row on desktop */
  max-width: 500px;
  padding: 25px;
  background-color: #f9f9f9;
  border-left: 5px solid #007bff;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.step-item h3 {
  margin: 0 0 10px 0;
  font-size: 1.4em;
  color: #333;
  text-align: left;
}

.step-item p {
  font-size: 0.95em;
  color: #666;
  text-align: left;
}

.program .button {
  margin: 0 auto;
  display: block; /* Center the button */
  max-width: 300px;
}

/* --- Testimonials Block --- */
.testimonials {
  padding: 60px 0;
  background-color: #f0f0f0;
}

.testimonials-grid {
  display: grid; /* Changed to Grid for better control with 3+ rows */
  grid-template-columns: repeat(
    auto-fit,
    minmax(300px, 1fr)
  ); /* Responsive columns */
  gap: 30px;
  justify-content: center; /* Center items if they don't fill the row */
}

.testimonial-card {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.testimonial-card .avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid #007bff;
}

.testimonial-card .name {
  font-weight: 700;
  margin-bottom: 10px;
  color: #333;
}

.testimonial-card .quote {
  font-style: italic;
  color: #555;
}

/* --- Mini Blog Block --- */
.mini-blog {
  padding: 60px 0;
  background-color: #fff;
}

.blog-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.blog-card {
  flex-basis: calc(33% - 40px); /* Three items per row on desktop */
  max-width: 380px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.blog-card h3 {
  padding: 20px 20px 10px 20px;
  margin: 0;
  font-size: 1.3em;
  text-align: left;
  color: #333;
}

.blog-card p {
  padding: 0 20px 20px 20px;
  margin: 0;
  font-size: 0.95em;
  color: #666;
  flex-grow: 1; /* Allow content to grow */
}

.blog-card .read-more {
  padding: 0 20px 20px 20px;
  text-align: left;
}

/* --- Articles Section --- */
.articles-section {
  padding: 60px 0;
  background-color: #f0f0f0;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  justify-content: center;
}

.article-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-5px);
}

.article-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.article-card h3 {
  padding: 20px 20px 10px 20px;
  margin: 0;
  font-size: 1.4em;
  text-align: left;
  color: #333;
}

.article-card p {
  padding: 0 20px 20px 20px;
  margin: 0;
  font-size: 0.95em;
  color: #666;
  flex-grow: 1;
}

.article-card .button {
  margin: 0 20px 20px 20px;
  align-self: flex-start; /* Align button to start of flex item */
}

/* --- New Content Section --- */
.new-content-section {
  padding: 60px 0;
  background-color: #fff;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  justify-content: center;
}

.content-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.content-card:hover {
  transform: translateY(-5px);
}

.content-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.content-card h3 {
  padding: 20px 20px 10px 20px;
  margin: 0;
  font-size: 1.4em;
  text-align: left;
  color: #333;
}

.content-card p {
  padding: 0 20px 20px 20px;
  margin: 0;
  font-size: 0.95em;
  color: #666;
  flex-grow: 1;
}

.content-card .button {
  margin: 0 20px 20px 20px;
  align-self: flex-start;
}

/* --- Form Block --- */
.form-block {
  padding: 60px 0;
  background-color: #f0f0f0;
}

.form-container {
  max-width: 500px;
  margin: 0 auto;
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.form-container h3 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 25px;
}

.training-form input,
.training-form textarea,
.guide-form input {
  width: calc(100% - 20px); /* Adjust for padding */
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: "Open Sans", sans-serif;
  font-size: 1em;
}

.training-form textarea {
  resize: vertical;
}

.training-form button,
.guide-form button {
  width: 100%;
  padding: 12px;
  font-size: 1.1em;
}

/* --- Contact Block --- */
.contact-block {
  padding: 60px 0;
  background-color: #fff;
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-start; /* Align items to the top */
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-info h2 {
  text-align: left;
  margin-top: 0;
}

.contact-info p {
  margin-bottom: 15px;
  color: #555;
}

.contact-info strong {
  color: #333;
}

.social-links {
  margin-top: 20px;
}

.social-icon {
  display: inline-block;
  background-color: #007bff;
  color: #fff;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  margin-right: 10px;
  transition: background-color 0.3s ease;
}

.social-icon:hover {
  background-color: #0056b3;
}

.contact-form-container {
  flex: 1;
  min-width: 300px;
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.contact-form-container h3 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 25px;
}

.contact-form input,
.contact-form textarea {
  width: calc(100% - 20px); /* Adjust for padding */
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: "Open Sans", sans-serif;
  font-size: 1em;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  width: 100%;
  padding: 12px;
  font-size: 1.1em;
}

.contact-image {
  max-width: 300px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  align-self: center; /* Center vertically in flex container */
  order: -1; /* Move image to the top on smaller screens */
  margin-bottom: 20px; /* Add space below image on mobile */
}

/* --- Policy Block --- */
.policy-block {
  padding: 60px 0;
  background-color: #f0f0f0;
}

.policy-content {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.policy-content h2,
.policy-content h3 {
  text-align: left;
  align-self: flex-start; /* Align headings to the left */
  margin-bottom: 20px;
}

.policy-content h2 {
  margin-top: 0;
}

.policy-content p {
  margin-bottom: 1em;
  color: #555;
}

.policy-image {
  max-width: 400px;
  height: auto;
  margin-top: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* --- Footer --- */
footer {
  background-color: #333;
  color: #fff;
  padding: 40px 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  font-size: 1.8em;
  font-weight: 700;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1em;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #007bff;
}

footer .button {
  margin: 0;
}

/* --- Responsiveness --- */
@media (max-width: 992px) {
  .main-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 20px;
  }

  .main-nav {
    margin-top: 15px;
    width: 100%;
  }

  .main-nav ul {
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
  }

  .header-button {
    margin-top: 15px;
    align-self: center;
  }

  .hero-block h1 {
    font-size: 2.8em;
  }

  .hero-block p {
    font-size: 1.3em;
  }

  .skills-grid,
  .program-steps,
  .testimonials-grid,
  .blog-grid,
  .article-grid,
  .content-grid {
    grid-template-columns: repeat(
      auto-fit,
      minmax(280px, 1fr)
    ); /* Adjust for smaller screens */
    flex-direction: column; /* For flex-based layouts */
    align-items: center;
  }

  .skill-item,
  .step-item,
  .testimonial-card,
  .blog-card,
  .article-card,
  .content-card {
    flex-basis: 90%;
    max-width: 500px; /* Limit width for centering */
  }

  .form-container {
    width: 100%;
    max-width: 500px;
  }

  .contact-content {
    flex-direction: column;
    align-items: center;
  }

  .contact-form-container,
  .contact-info {
    width: 100%;
    max-width: 500px; /* Limit width for centering */
  }

  .contact-image {
    order: -1; /* Move image to the top */
    margin-bottom: 20px;
  }

  .policy-content h2,
  .policy-content h3 {
    text-align: center;
    align-self: center;
  }

  .footer-content {
    flex-direction: column;
  }

  .footer-nav ul {
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5em;
  }

  h2 {
    font-size: 2em;
  }

  .hero-block h1 {
    font-size: 2.2em;
  }

  .hero-block p {
    font-size: 1.1em;
  }

  .hero-image {
    max-width: 80%;
  }

  .button {
    padding: 12px 25px;
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 15px;
  }

  h1 {
    font-size: 2em;
  }

  h2 {
    font-size: 1.8em;
  }

  .hero-block h1 {
    font-size: 1.8em;
  }

  .hero-block p {
    font-size: 1em;
  }

  .skill-item,
  .step-item,
  .testimonial-card,
  .blog-card,
  .article-card,
  .content-card {
    padding: 15px;
  }

  .main-nav ul {
    gap: 10px;
  }
}
