/* =========================================================
   Shared site components used by Elementor pages and the header.
   Formerly pasted as <style> blocks into individual Elementor HTML widgets
   (and defined differently on each page); now one stylesheet. Markup uses
   the classes below. Migration: migrations/2026-11-header-and-cards.php
   ========================================================= */

/* ---------- Header: "Lessons" popup ---------- */
.header-popup-container {
  position: relative;
  display: inline-block;
  line-height: 0;
}

#headerOpenBtn {
  cursor: pointer;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  outline: none;
  box-shadow: none;
}

#headerOpenBtn img {
  width: 60px;
  height: auto;
  border: none;
  display: block;
}

.header-popup-wrapper {
  display: none;
  position: absolute;
  top: calc(100% + 15px);
  right: 0;
  background: #f2f2f2;
  border-radius: 20px;
  line-height: 1.5;
  width: 500px;
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
  padding: 30px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 99999;
}

.header-popup-wrapper.is-open {
  display: block;
}

.header-close-btn {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

.header-grid-lessons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.header-lesson {
  text-align: center;
  font-size: 12px;
}

.header-lesson img {
  width: auto;
  height: 60px;
  object-fit: contain;
  margin-bottom: 5px;
}

.header-lesson p {
  margin: 0;
  line-height: 1.2;
}

@media (max-width: 600px) {
  .header-grid-lessons {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .header-popup-wrapper {
    padding: 20px;
    width: calc(100vw - 32px);
  }
}

/* ---------- Action card (Dashboard): icon + heading + subtext + button ---------- */
.ozo-action-card {
  display: flex;
  align-items: flex-start;
  background: #fff;
  padding: 20px 24px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  max-width: 700px;
  font-family: system-ui, sans-serif;
  justify-content: flex-start;
}

.ozo-action-card__icon {
  background-color: #fdf2cc;
  border-radius: 50%;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
}

.ozo-action-card__content {
  flex: 1;
}

.ozo-action-card__heading {
  font-size: 20px;
  font-weight: bold;
  margin: 0;
  color: #111;
}

.ozo-action-card__heading span {
  color: #1c1c1c;
}

.ozo-action-card__subtext {
  font-style: italic;
  color: #333;
  margin: 8px 0 16px;
}

.ozo-action-card__button {
  background: white;
  border: 1px solid #027963;
  color: #027963;
  padding: 10px 20px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
  margin-left: 25%;
}

.ozo-action-card__button:hover {
  background: #027963;
}

/* ---------- Row card (Educator Training, Pacing Guides): heading on the left, link/button on the right ---------- */
.ozo-row-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 10px;
}

.ozo-row-card__heading {
  font-size: 16px;
  font-weight: bold;
  margin: 0;
  color: #111;
}

.ozo-row-card__heading span {
  color: #1c1c1c;
}

.ozo-row-card__subtext {
  font-style: italic;
  color: #333;
  margin: 8px 0 16px;
}

.ozo-row-card a {
  font-weight: 600;
  color: rgb(2, 121, 99);
}

.ozo-row-card__button {
  background: white;
  border: 1px solid #027963;
  color: #027963;
  padding: 10px 20px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
}

.ozo-row-card__button:hover {
  background: #027963;
}

/* ---------- Info card (Help): optional banner image + text ---------- */
.ozo-info-card {
  max-width: 600px;
  margin: 0 auto;
  background: #f2f2f2;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.ozo-info-card img {
  width: 100%;
  display: block;
}

.ozo-info-card__content {
  padding: 30px;
}

.ozo-info-card__content p {
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 0;
}

.ozo-info-card__content a {
  color: #009688;
  text-decoration: none;
  font-weight: bold;
}

/* ---------- Pill buttons in a row (Help) ---------- */
.ozo-button-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 30px;
}

.ozo-pill-button {
  background: #14d8b4;
  color: #000;
  padding: 10px 40px 12px;
  font-size: 15px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 40px;
  display: inline-block;
  height: fit-content;
  width: fit-content;
}
