/* Typography Hierarchy - Following LongTermTrends Design Rules */
h1 {
  font-family: Arial, sans-serif;
  font-size: 40px;
  font-weight: bold;
  color: #333333;
  margin: 2rem 0 1.5rem 0;
  line-height: 1.2;
}

h2,
.section-title {
  font-family: Arial, sans-serif;
  font-size: 30px;
  font-weight: bold;
  color: #333333;
  margin: 3rem 0 2rem 0;
  line-height: 1.3;
}

h3 {
  font-family: Arial, sans-serif;
  font-size: 26px;
  font-weight: bold;
  color: #333333;
  margin: 2.5rem 0 1.5rem 0;
  line-height: 1.3;
}

h4 {
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: bold;
  color: #333333;
  margin: 2rem 0 1rem 0;
  line-height: 1.4;
}

.subheading {
  font-family: Arial, sans-serif;
  font-size: 20px;
  font-weight: bold;
  color: #333333;
  margin: 2rem 0 1.5rem 0;
  line-height: 1.3;
}

p,
.paragraph {
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: normal;
  color: #333333;
  line-height: 1.75;
  margin: 1.5rem 0;
}

.small-text {
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: normal;
  color: #707070;
  line-height: 1.5;
  margin: 1rem 0;
}

/* Button and Link Styles */
.btn-primary {
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: bold;
  color: #ffffff;
  background-color: #1652f0;
  border: none;
  border-radius: 6px;
  padding: 12px 24px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s ease;
}

.btn-primary:hover {
  background-color: #1341ba;
  color: #ffffff;
  text-decoration: none;
}

.btn-secondary {
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: bold;
  color: #1652f0;
  background-color: #ffed00;
  border: none;
  border-radius: 6px;
  padding: 12px 24px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s ease;
}

.btn-secondary:hover {
  background-color: #e6d600;
  color: #1652f0;
  text-decoration: none;
}

.link-primary {
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: bold;
  color: #1652f0;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.link-primary:hover {
  color: #1341ba;
  text-decoration: underline;
}

/* General content container - center aligned container with left-aligned text */
.content-container {
  max-width: 800px;
  margin: 0 auto 3rem auto;
  padding: 0 20px;
  text-align: left;
}

.content-container p {
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: normal;
  color: #333333;
  margin: 1.5rem 0;
  line-height: 1.75;
}

.content-container h2 {
  font-family: Arial, sans-serif;
  font-size: 30px;
  font-weight: bold;
  color: #333333;
  margin: 3rem 0 1.5rem 0;
  line-height: 1.3;
}

.section-title {
  font-family: Arial, sans-serif;
  font-size: 30px;
  font-weight: bold;
  color: #333333;
  margin: 3rem 0 2rem 0;
  line-height: 1.3;
}

.content-container ul {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
  list-style: none;
}

.content-container li {
  margin: 0.75rem 0;
  padding-left: 0.5rem;
  position: relative;
}

.content-container li::before {
  content: "•";
  position: absolute;
  left: -1rem;
  color: #333333;
}

.content-container blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background-color: #f8f8f8;
  border-left: none;
  border-radius: 4px;
}

.content-container blockquote p {
  margin: 0;
  font-style: italic;
  color: #333333;
}

/* Hero container - full width with centered content */
.hero-container {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  max-width: 100vw;
  margin-top: 15px;
}

/* Hero section - image and text together */
.hero-section {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  background-color: #fdf6ea; /* cream background */
  padding: 0;
  position: relative;
  overflow: hidden;
  width: 95vw;
  max-width: 1250px;
}

@media (max-width: 1500px) {
  .hero-section {
    min-width: 90vw;
  }
  .hero-text-container {
    padding: 50px 70px;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
  }
  .hero-title {
    font-size: 42px;
  }
  #hero-image {
    max-width: 75%;
  }
}

@media (max-width: 1200px) {
  .hero-section {
  }
  .hero-text-container {
    padding: 40px 50px;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
  }
  .hero-title {
    font-size: 36px;
  }
  .hero-list li {
    font-size: 14px;
  }
  #hero-image {
    max-width: 80vw;
  }
}

@media (min-width: 801px) and (max-width: 992px) {
  .hero-section {
  }
  .hero-text-container {
    padding: 30px 40px;
    width: 70%;
    flex: 0 0 70%;
  }
  .hero-title {
    font-size: 30px;
  }
  .hero-list li {
    font-size: 13px;
  }
  .hero-image-container {
    width: 30%;
    flex: 0 0 30%;
  }
  #hero-image {
    max-width: 85%;
    max-height: 35vw;
  }
}

/* Hero text */
.hero-text-container {
  background-color: #1e1f22; /* black background */
  color: #ffffff;
  padding: 20px 50px;
  width: 50%;
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
  z-index: 1;
}

.hero-subtitle {
  color: #ffffff; /* white text */
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 32px;
  line-height: 1.1;
  color: #ffffff;
}

@media (min-width: 801px) and (max-width: 992px) {
  .hero-text-container {
    width: 70%;
    flex: 0 0 70%;
  }
  .hero-image-container {
    width: 30%;
    flex: 0 0 30%;
  }
}

.hero-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.hero-list li {
  font-size: 15px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  color: #ffffff;
  line-height: 1.4;
}

.hero-list li::before {
  content: "⚡";
  color: #ffed00; /* secondary color */
  font-size: 18px;
  margin-right: 14px;
  display: inline-block;
  flex-shrink: 0;
}

/* Hero image container */
.hero-image-container {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 20px;
}

#hero-image {
  max-width: 70%;
  height: auto;
  max-height: 250px;
  display: block;
}

/* Chart container */
.chart-container {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 20px;
}

/* Centered images */
.centered-image {
  display: block;
  margin: 3rem auto;
  max-width: 800px;
  width: 100%;
  height: auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.chart-container h3 {
  font-family: Arial, sans-serif;
  font-size: 26px;
  font-weight: bold;
  color: #333333;
  margin-top: 0;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.chart-container p {
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: normal;
  color: #707070;
  margin: 0.75rem 0;
  line-height: 1.75;
}

/* Text styling elements */
strong {
  font-weight: bold;
  color: #333333;
}

em {
  font-style: italic;
  color: #707070;
}

.underline {
  text-decoration: underline;
}

.negative {
  color: #ff0000;
  font-weight: bold;
}

/* Wrong ideas list styling */
.wrong-ideas-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

.wrong-ideas-list div {
  padding-left: 0.5rem;
  position: relative;
}

/* Improve content section spacing */
.content-container > img {
  display: block;
  margin: 2rem auto;
  max-width: 100%;
  height: auto;
}

/* Better paragraph spacing after headings */
.content-container h2 + p {
  margin-top: 1rem;
}

/* First paragraph in content sections */
.section-title + img {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* Responsive adjustments */
@media (max-width: 800px) {
  .hero-section {
    justify-content: center;
  }

  .hero-text-container {
    padding: 35px 30px;
    width: 100%;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
  }

  .hero-subtitle {
    font-size: 12px;
    margin-bottom: 10px;
  }

  .hero-title {
    font-size: 28px;
    margin-bottom: 20px;
    line-height: 1.1;
  }

  .hero-list li {
    font-size: 12px;
    margin-bottom: 12px;
  }

  .hero-list li::before {
    font-size: 16px;
    margin-right: 10px;
  }

  .hero-image-container {
    visibility: hidden;
    opacity: 0;
    width: 0;
    padding: 0;
  }

  #hero-image {
    visibility: hidden;
    opacity: 0;
  }
}

/* Isaac Newton Section - Grid Layout */
.isaac-newton-section {
  /* Match centered width and padding of .content-container for perfect alignment */
  max-width: 800px;
  margin: 4rem auto;
  padding: 0 20px;
}

.isaac-newton-section h3 {
  font-family: Arial, sans-serif;
  font-size: 26px;
  font-weight: bold;
  color: #333333;
  margin: 0 0 2.5rem 0;
  line-height: 1.3;
  text-align: left;
}

.isaac-newton-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* equal columns like the reference */
  gap: 2rem; /* tighter gap to fit in 800px container */
  align-items: start;
}

.isaac-newton-text {
  display: flex;
  flex-direction: column;
}

.isaac-newton-text p {
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: normal;
  color: #333333;
  line-height: 1.75;
  margin: 0 0 1.5rem 0;
}

.isaac-newton-text p:last-of-type {
  margin-bottom: 1.5rem;
}

.isaac-newton-text p em {
  font-style: italic;
  color: #333333;
}

.isaac-newton-text blockquote {
  margin: 1.5rem 0 0 0;
  padding: 0;
  border-left: none;
  background-color: transparent;
}

.isaac-newton-text blockquote p {
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-style: italic;
  color: #333333;
  margin: 0;
}

.isaac-newton-image {
  position: relative;
  display: flex;
  flex-direction: column;
}

.isaac-newton-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.image-caption {
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: normal;
  color: #707070;
  text-align: center;
  margin-top: 0.75rem;
}

/* Image grid for side-by-side images */
.image-grid {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

/* Bordered image with primary color */
.bordered-image {
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 50%;
}

/* Tight blockquote margin */
.blockquote-tight {
  margin: 0 0 1em 0;
  font-style: italic;
  color: #333333;
}

/* Section image with specific margin */
.section-image {
  width: 100%;
  max-width: 800px;
  margin: 2rem auto;
  display: block;
}

/* H2 with adjusted top margin */
.h2-adjusted-margin {
  margin-top: 2.5em;
}

/* Responsive adjustments for Isaac Newton section */
@media (max-width: 1024px) {
  .isaac-newton-section {
    max-width: 800px;
    padding: 0 20px;
  }

  .isaac-newton-grid {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .isaac-newton-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .isaac-newton-section {
    padding: 0 16px;
  }

  .image-grid {
    flex-direction: column;
    align-items: center;
  }
}
