/* ---------- Weather Models Page ---------- */

.page-hero {
  background-color: #1c3d5a;
  color: #ffffff;
  border-radius: 10px;
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.page-hero-content {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.page-hero-image {
  flex: 0 0 240px;
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.page-hero-text {
  flex: 1;
  min-width: 0;
}

@media (max-width: 650px) {
  .page-hero-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-hero-image {
    width: 100%;
    height: 200px;
  }
}

.page-hero h1 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: #ffffff;
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 75ch;
}

.content-block {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 1.75rem 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
}

.content-block h2 {
  font-size: 1.3rem;
  color: #1c3d5a;
  margin-bottom: 0.75rem;
}

.content-block p {
  color: #3c4756;
  max-width: 75ch;
}

/* ---------- Content Block With Side Image ---------- */

.content-with-image {
  display: flex;
  align-items: flex-start;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.content-with-image p {
  flex: 1;
  min-width: 250px;
}

.content-figure {
  flex: 0 0 260px;
  margin: 0;
}

.content-figure img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #dde5ec;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: block;
}

.content-figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #5a6472;
  text-align: center;
}

@media (max-width: 650px) {
  .content-figure {
    flex: 1 1 100%;
    max-width: 320px;
  }
}

/* ---------- External Link Buttons ---------- */

.external-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.external-link-button {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  background-color: #1c3d5a;
  color: #ffffff;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.2s ease;
}

.external-link-button:hover,
.external-link-button:focus {
  background-color: #2f5d84;
}

.home-link {
  padding: 0.6rem 1.1rem;
  border-radius: 6px;
  font-weight: 500;
  background-color: #2f5d84;
}

/* ---------- Model Category Click-Toggle Cards ---------- */

.model-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
}

.model-category {
  position: relative;
}

.model-category-label {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  background-color: #eaf2f8;
  color: #1c3d5a;
  border: 1px solid #cfe0ec;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.model-category-label:hover {
  background-color: #d7e6f1;
}

.model-category.open .model-category-label {
  background-color: #1c3d5a;
  color: #ffffff;
}

.model-category-panel {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 10;
  width: 320px;
  max-width: 80vw;
  margin-top: 0.5rem;
  padding: 1.1rem 1.25rem;
  background-color: #ffffff;
  border: 1px solid #dde5ec;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);

  /* hidden by default */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.model-category-panel p {
  color: #3c4756;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.model-category-panel p:last-child {
  margin-bottom: 0;
}

.model-examples strong {
  color: #1c3d5a;
}

/* reveal when the category is toggled open via click */
.model-category.open .model-category-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}