/* =========================================================
   GOVERNORS DOCUMENTS
========================================================= */

/* Tighten the transition from the governors grid. */
.ym-governors-section {
  padding-bottom: 52px !important;
}

.governor-documents-section {
  padding: 62px 0 82px !important;
  border-top: 1px solid rgba(10, 102, 93, 0.1);
  background:
    linear-gradient(
      180deg,
      var(--background) 0%,
      #f2f8f6 100%
    ) !important;
}

.governor-documents-section > .et_pb_row {
  width: 90% !important;
  max-width: 1120px !important;
}

/* =========================================================
   SECTION INTRODUCTION
========================================================= */

.governor-documents-section > .et_pb_row:first-child {
  padding: 0 0 42px !important;
}

.governor-documents-section
  > .et_pb_row:first-child
  .et_pb_text:first-child {
  margin-bottom: 18px !important;
}

.governor-documents-section
  > .et_pb_row:first-child
  .et_pb_text:nth-child(2) {
  max-width: 760px;
  margin-bottom: 0 !important;
}

.governor-documents-section
  > .et_pb_row:first-child
  h2 {
  margin: 0;
  padding: 0;
  color: var(--dark-text);
  font-size: clamp(30px, 3vw, 38px);
  line-height: 1.15;
}

.governor-documents-section
  > .et_pb_row:first-child
  .et_pb_text:first-child p {
  margin: 7px 0 0;
  padding: 0;
  color: var(--primary);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.governor-documents-section
  > .et_pb_row:first-child
  .et_pb_text:nth-child(2) p {
  margin: 0;
  padding: 0;
  color: var(--dark-text);
  font-size: 16px;
  line-height: 1.7;
}

.governor-documents-section
  > .et_pb_row:first-child
  .et_pb_text:nth-child(2) p + p {
  margin-top: 10px;
  color: var(--slate);
  font-size: 15px;
}

/* =========================================================
   ANNUAL REPORT FEATURE
========================================================= */

.governor-report-feature.et_pb_row {
  display: flex;
  align-items: center;
  padding: 38px 40px !important;
  overflow: hidden;
  border: 1px solid rgba(10, 102, 93, 0.15);
  border-left: 5px solid var(--accent);
  border-radius: 20px;
  background:
    linear-gradient(
      135deg,
      var(--white) 0%,
      #fbfdfc 100%
    );
  box-shadow: var(--shadow);
}

.governor-report-feature .et_pb_column {
  margin-bottom: 0;
}

/* Change the Divi Blurb from top-icon to a horizontal layout. */
.governor-report-feature .et_pb_blurb {
  margin: 0 !important;
  padding: 0 !important;
}

.governor-report-feature .et_pb_blurb_content {
  display: grid;
  max-width: none;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}

.governor-report-feature .et_pb_main_blurb_image {
  width: 58px;
  margin: 0 !important;
  text-align: left !important;
}

.governor-report-feature .et_pb_image_wrap {
  display: grid !important;
  width: 58px;
  height: 58px;
  place-items: center;
}

/* Prevent the icon remaining invisible before Divi triggers its animation. */
.governor-report-feature .et-pb-icon {
  display: grid !important;
  width: 58px;
  height: 58px;
  padding: 0 !important;
  place-items: center;
  border-radius: 14px !important;
  background: var(--mint);
  color: var(--primary);
  font-size: 23px !important;
  opacity: 1 !important;
  animation: none !important;
  transform: none !important;
}

.governor-report-feature .et_pb_blurb_container {
  min-width: 0;
}

.governor-report-feature .et_pb_module_header {
  margin: 0;
  padding: 2px 0 10px !important;
  color: var(--primary);
  font-family: Lexend, Arial, sans-serif;
  font-size: 12px !important;
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1.45;
}

.governor-report-feature .et_pb_blurb_description p {
  margin: 0;
  padding: 0;
}

.governor-report-feature
  .et_pb_blurb_description
  p:first-child {
  color: var(--dark-text);
  font-family: Fredoka, Georgia, serif;
  font-size: 21px;
  font-weight: 650;
  line-height: 1.42;
}

.governor-report-feature
  .et_pb_blurb_description
  p:last-child {
  display: inline-flex;
  margin-top: 18px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

/* Report button column. */
.governor-report-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.governor-report-actions,
.governor-report-actions .et_pb_button_module_wrapper {
  width: 100%;
}

.governor-report-actions .et_pb_button_module_wrapper {
  margin-bottom: 12px !important;
}

.governor-report-actions
  .et_pb_button_module_wrapper:last-child {
  margin-bottom: 0 !important;
}

.governor-report-actions .et_pb_button {
  display: flex !important;
  width: 100% !important;
  min-height: 52px;
  box-sizing: border-box;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: var(--primary) !important;
  color: var(--white) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  text-align: left;
}

.governor-report-actions
  .et_pb_button_module_wrapper:nth-child(2)
  .et_pb_button {
  background: #eef4f7 !important;
  color: var(--supporting-blue) !important;
}

.governor-report-actions .et_pb_button:hover {
  padding: 12px 16px !important;
  background: var(--primary-hover) !important;
  color: var(--white) !important;
}

.governor-report-actions
  .et_pb_button_module_wrapper:nth-child(2)
  .et_pb_button:hover {
  background: var(--supporting-blue) !important;
  color: var(--white) !important;
}

.governor-report-actions .et_pb_button::after {
  position: static !important;
  display: block !important;
  margin: 0 0 0 14px !important;
  content: "↗" !important;
  color: inherit;
  font-family: Arial, sans-serif !important;
  font-size: 17px !important;
  line-height: 1;
  opacity: 1 !important;
}

/* =========================================================
   MEETING MINUTES HEADING
========================================================= */

.governor-report-feature
  + .et_pb_row {
  padding: 50px 0 22px !important;
}

.governor-report-feature
  + .et_pb_row
  .et_pb_text {
  margin: 0 !important;
}

.governor-report-feature
  + .et_pb_row
  h2 {
  margin: 0;
  padding: 0;
  color: var(--dark-text);
  font-size: clamp(26px, 2.5vw, 32px);
  line-height: 1.2;
}

.governor-report-feature
  + .et_pb_row
  p {
  margin: 6px 0 0;
  padding: 0;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

/* =========================================================
   MEETING MINUTE CARDS
========================================================= */

.governor-minutes-row.et_pb_row {
  padding: 0 !important;
}

.governor-minute-card {
  position: relative;
  display: flex;
  min-height: 330px;
  flex-direction: column;
  padding: 28px !important;
  overflow: hidden;
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(23, 42, 42, 0.07);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.governor-minute-card:hover {
  transform: translateY(-4px);
  border-color: rgba(62, 193, 170, 0.7);
  box-shadow: var(--shadow);
}

.governor-minute-card > .et_pb_module {
  width: 100%;
}

/* Minutes badge. */
.governor-minute-card
  > .et_pb_text:first-child {
  margin: 0 0 21px !important;
}

.governor-minute-card
  > .et_pb_text:first-child
  p {
  display: inline-flex;
  margin: 0;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1.35;
}

/* Meeting date. */
.governor-minute-card
  > .et_pb_text:nth-child(2) {
  margin: 0 0 18px !important;
}

.governor-minute-card
  > .et_pb_text:nth-child(2)
  p {
  margin: 0;
  padding: 0;
  color: var(--dark-text);
  font-family: Fredoka, Georgia, serif;
  font-size: 21px;
  font-weight: 650;
  line-height: 1.45;
}

/* Term and language details. */
.governor-minute-card
  > .et_pb_text:nth-child(3) {
  margin: 0 !important;
}

.governor-minute-card
  > .et_pb_text:nth-child(3)
  p {
  margin: 0;
  padding: 0;
  color: var(--slate);
  font-size: 13px;
  line-height: 1.65;
}

/* Pin the button to the bottom of every card. */
.governor-minute-card
  .et_pb_button_module_wrapper {
  width: 100%;
  margin: auto 0 0 !important;
  padding: 23px 0 0 !important;
}

.governor-minute-card .et_pb_button {
  display: flex !important;
  width: 100% !important;
  min-height: 48px;
  box-sizing: border-box;
  align-items: center;
  justify-content: space-between;
  padding: 10px 13px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: var(--mint) !important;
  color: var(--primary) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  text-align: left;
}

.governor-minute-card .et_pb_button:hover,
.governor-minute-card .et_pb_button:focus-visible {
  padding: 10px 13px !important;
  background: var(--primary) !important;
  color: var(--white) !important;
}

.governor-minute-card .et_pb_button::after {
  position: static !important;
  display: block !important;
  flex: 0 0 auto;
  margin: 0 0 0 10px !important;
  content: "↗" !important;
  color: inherit;
  font-family: Arial, sans-serif !important;
  font-size: 16px !important;
  line-height: 1;
  opacity: 1 !important;
}

/* Ensure the English annual report button remains readable */
.governor-report-actions
  .et_pb_button_module_wrapper:last-child
  .et_pb_button,
.governor-report-actions
  .et_pb_button_module_wrapper:last-child
  .et_pb_button:visited {
  border: 2px solid var(--supporting-blue) !important;
  background: var(--supporting-blue) !important;
  color: var(--white) !important;
}

.governor-report-actions
  .et_pb_button_module_wrapper:last-child
  .et_pb_button:hover,
.governor-report-actions
  .et_pb_button_module_wrapper:last-child
  .et_pb_button:focus-visible {
  border-color: #193f57 !important;
  background: #193f57 !important;
  color: var(--white) !important;
}

.governor-report-actions
  .et_pb_button_module_wrapper:last-child
  .et_pb_button::after {
  color: var(--white) !important;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 980px) {
  .ym-governors-section {
    padding-bottom: 44px !important;
  }

  .governor-documents-section {
    padding: 52px 0 64px !important;
  }

  .governor-report-feature.et_pb_row {
    display: block;
    padding: 30px !important;
  }

  .governor-report-feature .et_pb_column {
    width: 100% !important;
    margin-right: 0 !important;
  }

  .governor-report-actions {
    margin-top: 28px;
  }

  .governor-report-feature
    + .et_pb_row {
    padding-top: 42px !important;
  }

  .governor-minute-card {
    min-height: 0;
    margin-bottom: 20px !important;
  }

  .governor-minutes-row
    .governor-minute-card:last-child {
    margin-bottom: 0 !important;
  }
}

@media (max-width: 767px) {
  .governor-documents-section {
    padding: 44px 0 54px !important;
  }

  .governor-documents-section
    > .et_pb_row:first-child {
    padding-bottom: 32px !important;
  }

  .governor-report-feature.et_pb_row {
    padding: 24px !important;
    border-left-width: 4px;
    border-radius: var(--radius);
  }

  .governor-report-feature .et_pb_blurb_content {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 15px;
  }

  .governor-report-feature .et_pb_main_blurb_image,
  .governor-report-feature .et_pb_image_wrap,
  .governor-report-feature .et-pb-icon {
    width: 52px;
    height: 52px;
  }

  .governor-report-feature
    .et_pb_blurb_description
    p:first-child {
    font-size: 18px;
  }

  .governor-minute-card {
    padding: 24px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .governor-minute-card {
    transition: none;
  }
}