/***************** CELLVI HTML STARTS *************/
/* Global Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
  color: #333;
}

h1, h3 {
  text-align: center;
  color: #2c3e50;
}
/* Introduction Section */
.cellvi-intro {
  text-align: center;
  margin: 20px auto;
  padding: 20px;
  max-width: 800px;
  line-height: 1.6;
  font-family: 'Arial', sans-serif;
  color: #333;
}

.cellvi-intro h2 {
  font-size: 1.8em;
  margin-bottom: 10px;
  color: #0056b3; /* Subtle color for the heading */
}

.cellvi-intro p {
  font-size: 1em;
}
.blog-section {
  width: 90%;
  max-width: 1200px;
  margin: 90px auto;
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.latest-post {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 20px;
}

.post-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 10px;
}

.post-content {
  flex: 1;
}

.post-content h2 {
  color: #3498db;
  margin: 0 0 10px;
  font-size: 1.8rem;
}

.post-content p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 20px;
}

.btn {
  display: inline-block;
  background-color: #3498db;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  text-align: center;
}

.btn:hover {
  background-color: #10182F;
}

/* Embed Section */
.embed-section {
  margin-top: 40px;
  text-align: center; /* Add this line to center-align the button */
}

.embed-section .btn {
  margin: 20px auto;
  display: inline-block; /* Ensures button respects centering */
}


.embed-section h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.embed-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Flexible grid layout */
  gap: 20px; /* Space between embeds */
  margin: 20px auto;
  padding: 0; /* Remove extra padding */
  max-width: 100%; /* Ensure the container doesn't exceed the screen width */
  box-sizing: border-box; /* Include padding/borders in width */
}

.substack-post-embed {
  padding: 0; /* Remove padding */
  border: none; /* Remove border */
  border-radius: 0; /* Remove rounded corners */
  box-shadow: none; /* Remove shadow */
  word-wrap: break-word; /* Break long text */
}



.embed-box {
  flex: 1 1 calc(50% - 20px);
  background-color: #f1f1f1;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.embed-box iframe {
  width: 100%;
  height: 200px;
  border-radius: 5px;
  border: none;
}

.embed-box p {
  font-size: 1rem;
  margin: 10px 0;
}

.embed-box a {
  display: inline-block;
  margin-top: 10px;
  color: #3498db;
  text-decoration: none;
  font-weight: bold;
}

.embed-box a:hover {
  text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .embed-container {
      flex-direction: column;
      gap: 15px;
  }

  .embed-box {
      flex: 1 1 100%;
  }
}

@media (max-width: 480px) {
  .post-content h2 {
      font-size: 1.3rem;
  }

  .post-content p {
      font-size: 0.9rem;
  }

  .btn {
      font-size: 0.9rem;
      padding: 8px 16px;
  }

  .embed-box iframe {
      height: 150px;
  }
}