/**
 * IHCT / Chuffty shared page styles
 * Consolidates inline styles previously duplicated across HTML pages.
 */

/* ── Video embed (YouTube 16:9) ── */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Flex-centered video (contact / app-feature pages) */
.video-container--flex {
  display: flex;
  justify-content: center;
  padding-bottom: 0;
}

.responsive-video {
  width: 75%;
  aspect-ratio: 16 / 9;
  max-width: 100%;
}

@media (max-width: 768px) {
  .responsive-video {
    width: 100%;
  }
}

/* ── Portfolio / feature hero images ── */
.responsiveImage {
  width: 85%;
  height: auto;
}

.responsiveImage--medium {
  width: 65%;
  height: auto;
}

.responsiveImage--half {
  width: 50%;
  height: auto;
  max-width: 100%;
  display: block;
}

.responsiveImage--narrow {
  width: 30%;
  height: auto;
  max-width: 100%;
  display: block;
}

/* ── Purple form buttons ── */
input[type="button"] {
  background-color: purple;
  color: white;
  padding: 15px 30px;
  border-radius: 50px;
  border: none;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease;
  width: auto;
}

input[type="button"]:hover {
  background-color: #7a4b9e;
}

/* ── Green rounded CTA buttons ── */
.rounded-button {
  background-color: #4caf50;
  color: white;
  padding: 8px 16px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.rounded-button:hover {
  background-color: #45a049;
}

/* Orange variant (NARI framework page) */
.rounded-button--orange {
  background-color: #f57c00;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.rounded-button--orange:hover {
  background-color: #e65100;
}

/* Inline article / page link CTA (not section.cta from Bethany template) */
.cta-link {
  display: block;
  margin: 30px auto;
  padding: 15px 25px;
  background-color: #e76f51;
  color: white;
  text-align: center;
  font-size: 1.2em;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  width: fit-content;
}

.cta-link:hover {
  background-color: #d65f41;
  color: white;
  text-decoration: none;
}

/* Article callout box */
.cta-callout {
  display: block;
  margin: 30px auto;
  padding: 15px 25px;
  background-color: #e0f7fa;
  border-left: 5px solid #0078d7;
  border-radius: 4px;
}

/* ── Testimonial / subscription sections ── */
.features,
.testimonials,
.subscription {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

.testimonial {
  background-color: #e0f7fa;
  padding: 15px;
  margin: 10px 0;
  border-left: 5px solid #0078d7;
}

/* ── Feature tables (index, free trial) ── */
table.ihct-features-table {
  width: 100%;
  border-collapse: collapse;
}

table.ihct-features-table th,
table.ihct-features-table td {
  border: 0 solid black;
  padding: 8px;
  text-align: left;
  vertical-align: top;
}

table.ihct-features-table th:nth-child(1),
table.ihct-features-table td:nth-child(1) {
  width: 70%;
}

table.ihct-features-table th:nth-child(2),
table.ihct-features-table td:nth-child(2) {
  width: 15%;
}

table.ihct-features-table th:nth-child(3),
table.ihct-features-table td:nth-child(3) {
  width: 15%;
}

@media screen and (max-width: 600px) {
  table.ihct-features-table,
  table.ihct-features-table tr,
  table.ihct-features-table th,
  table.ihct-features-table td {
    display: block;
    width: 100%;
    height: auto;
  }
}
