.page-blog-modric-career-legend {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #f8f8f8; /* A light background to ensure contrast with #333333 */
}

.page-blog-modric-career-legend__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: #B71C1C; /* Background color from custom palette */
  color: #FFF5E1; /* Text color for dark background from custom palette */
}

.page-blog-modric-career-legend__hero-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  display: block;
  margin-bottom: 30px; /* Space between image and text */
}

.page-blog-modric-career-legend__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  z-index: 1; /* Ensure content is above image if any layering occurs */
}

.page-blog-modric-career-legend__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFF5E1;
}

.page-blog-modric-career-legend__description {
  font-size: clamp(1em, 1.5vw, 1.25em);
  margin-bottom: 30px;
  color: #FFF5E1;
}

.page-blog-modric-career-legend__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.page-blog-modric-career-legend__btn-primary,
.page-blog-modric-career-legend__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog-modric-career-legend__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E; /* Deep Red for contrast with gold button */
  border: 2px solid #F2B544;
}

.page-blog-modric-career-legend__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-blog-modric-career-legend__btn-secondary {
  background-color: #C91F17; /* Main brand color */
  color: #FFF5E1;
  border: 2px solid #E53935;
}

.page-blog-modric-career-legend__btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-blog-modric-career-legend__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #ffffff; /* White background for main content */
  color: #333333; /* Dark text for white background */
}

.page-blog-modric-career-legend__article-heading {
  font-size: 2.2em;
  color: #C91F17; /* Main brand color for headings */
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-blog-modric-career-legend__article p {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: #333333;
}

.page-blog-modric-career-legend__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px 0;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-blog-modric-career-legend__cta-buttons--bottom {
  margin-top: 50px;
}

.page-blog-modric-career-legend__faq-section {
  margin-top: 60px;
  background-color: #f0f0f0; /* Light grey background for FAQ */
  padding: 40px 20px;
  border-radius: 8px;
  color: #333333;
}

.page-blog-modric-career-legend__faq-list {
  margin-top: 30px;
}

.page-blog-modric-career-legend__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-blog-modric-career-legend__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: #C91F17;
  cursor: pointer;
  background-color: #fdfdfd;
  list-style: none;
}

.page-blog-modric-career-legend__faq-question::-webkit-details-marker {
  display: none;
}

.page-blog-modric-career-legend__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-blog-modric-career-legend__faq-item[open] .page-blog-modric-career-legend__faq-toggle {
  transform: rotate(45deg);
}

.page-blog-modric-career-legend__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.05em;
  color: #555555;
}

.page-blog-modric-career-legend__faq-answer p {
  margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog-modric-career-legend__hero-image {
    max-height: 400px;
  }
  .page-blog-modric-career-legend__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }
  .page-blog-modric-career-legend__article-heading {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-blog-modric-career-legend {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-blog-modric-career-legend__hero-section {
    padding: 40px 15px;
  }

  .page-blog-modric-career-legend__hero-image {
    max-height: 300px !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-blog-modric-career-legend__hero-content {
    padding: 0 15px;
  }

  .page-blog-modric-career-legend__main-title {
    font-size: clamp(1.6em, 6vw, 2.5em);
  }

  .page-blog-modric-career-legend__description {
    font-size: 1em;
  }

  .page-blog-modric-career-legend__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-blog-modric-career-legend__btn-primary,
  .page-blog-modric-career-legend__btn-secondary {
    width: 100% !important;
    padding: 12px 20px;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-blog-modric-career-legend__content-area {
    padding: 30px 15px;
  }

  .page-blog-modric-career-legend__article-heading {
    font-size: 1.8em;
  }

  .page-blog-modric-career-legend__article p {
    font-size: 1em;
  }

  .page-blog-modric-career-legend__image-content {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-blog-modric-career-legend__faq-section {
    padding: 30px 15px;
  }

  .page-blog-modric-career-legend__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-blog-modric-career-legend__faq-answer {
    padding: 0 20px 15px;
  }

  .page-blog-modric-career-legend__faq-item,
  .page-blog-modric-career-legend__section,
  .page-blog-modric-career-legend__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .page-blog-modric-career-legend__hero-section {
    padding: 30px 10px;
  }

  .page-blog-modric-career-legend__hero-image {
    max-height: 250px !important;
  }

  .page-blog-modric-career-legend__main-title {
    font-size: clamp(1.4em, 7vw, 2em);
  }

  .page-blog-modric-career-legend__article-heading {
    font-size: 1.6em;
  }

  .page-blog-modric-career-legend__faq-question {
    font-size: 1em;
  }
}