/**
 * =============================================================================
 * [LAYER 1: CORE ENGINE]
 * =============================================================================
 * PURPOSE: Styling and layout for [LAYER 1: CORE ENGINE]
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */

/* --- Configuration & Root Variables --- */
:root {
  /* Brand Palette */
  --hs-gold: #f0b323;
  --hs-dark: #003057;
  --hs-light-glass: rgba(255, 255, 255, 0.05);
  --hs-border-glass: rgba(255, 255, 255, 0.1);

  /* Typography */
  --hs-font-head: "Montserrat", sans-serif;
  --hs-font-body: "Open Sans", sans-serif;

  /* Spacing Engine */
  --hs-gap: 2rem;
}

@media (max-width: 768px) {
  :root {
    --hs-gap: 1rem;
  }
}

/* --- Global Resets & Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* --- Visibility Utilities --- */
@media (max-width: 767px) {
  .hs-hide-mobile {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .hs-show-mobile-only {
    display: none !important;
  }
}

/* --- Tab Typography & Data Utilities --- */
.hs-section-tabs .hs-heading-bordered {
  font-family: var(--hs-font-head, "Montserrat", sans-serif) !important;
  color: var(--hs-dark, #003057) !important;
  font-size: 1.7rem !important;
  font-weight: 700 !important;
  line-height: 1.2em !important;
  margin: 0 0 1rem 0 !important;
  padding: 10px 0 10px 15px !important;
  border-left: 6px solid var(--hs-gold, #f0b323) !important;
  display: block !important;
}

.hs-section-tabs .hs-subheading-heavy {
  font-family: var(--hs-font-head, "Montserrat", sans-serif) !important;
  color: var(--hs-dark, #003057) !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  line-height: 1.4em !important;
  margin: 1.5rem 0 0.5rem 0 !important;
}

.hs-section-tabs .hs-body-text {
  font-family: var(--hs-font-body, "Open Sans", sans-serif) !important;
  color: #475569 !important;
  font-size: 1rem !important;
  line-height: 1.7 !important;
  margin-top: 0 !important;
  margin-bottom: 16px !important;
}

.hs-section-tabs .hs-standard-table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 0.5rem 0 25px 0 !important;
  font-size: 0.95rem !important;
  color: #475569 !important;
}

.hs-section-tabs .hs-standard-table th,
.hs-section-tabs .hs-standard-table td {
  padding: 6px 10px !important;
  border: 1px solid #e2e8f0 !important;
  text-align: left !important;
  line-height: 1.5 !important;
}

.hs-section-tabs .hs-standard-table th {
  background-color: var(--hs-dark, #003057) !important;
  color: #ffffff !important;
  font-family: var(--hs-font-head, "Montserrat", sans-serif) !important;
  font-weight: 700 !important;
  font-size: 0.875rem !important;
}

.hs-section-tabs .hs-standard-table tr:nth-child(even) {
  background-color: #f8fafc !important;
}

@media (max-width: 768px) {
  .hs-section-tabs .hs-heading-bordered {
    font-size: 1.5rem !important;
  }
  .hs-section-tabs .hs-body-text {
    font-size: 0.875rem !important;
    line-height: 1.4em !important;
  }
}

/**
 * =============================================================================
 * [LAYER 2: BASE ELEMENTS & FORMS]
 * =============================================================================
 * PURPOSE: Styling and layout for [LAYER 2: BASE ELEMENTS & FORMS]
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */

/* --- Global Text Lists --- */
.et_pb_text ul,
.et_pb_toggle_content ul,
.et_pb_blurb_content ul {
  list-style-type: none !important;
  padding-left: 0 !important;
  margin-top: 15px !important; /* Forces breathing room above */
  margin-bottom: 15px !important; /* Forces breathing room below */
}

.et_pb_text ul li,
.et_pb_toggle_content ul li,
.et_pb_blurb_content ul li {
  position: relative !important;
  padding-left: 27px !important;
  margin-bottom: 12px !important;
  line-height: 1.6em !important;
}

/* Prevent double-stacking margin on the very last bullet */
.et_pb_text ul li:last-child,
.et_pb_toggle_content ul li:last-child,
.et_pb_blurb_content ul li:last-child {
  margin-bottom: 0 !important;
}

.et_pb_text ul li::before,
.et_pb_toggle_content ul li::before,
.et_pb_blurb_content ul li::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 5px !important;
  width: 16px !important;
  height: 16px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23f0b323' d='M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat !important;
  background-size: contain !important;
}

.et_pb_text ul li ul,
.et_pb_toggle_content ul li ul {
  margin-top: 10px !important;
  margin-left: 10px !important;
}

/**
 * =============================================================================
 * FLUENT FORMS STANDARDIZATION
 * =============================================================================
 * PURPOSE: Styling and layout for FLUENT FORMS STANDARDIZATION
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */

/* --- Tier 1: Global Base Styles --- */
form.frm-fluent-form .ff-el-input--label {
  margin-bottom: 0;
}

form.frm-fluent-form .ff-el-input--label label {
  font-family: var(--hs-font-head);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  color: inherit;
}

form.frm-fluent-form .ff-el-form-control,
form.frm-fluent-form .ff-el-form-control::placeholder {
  font-family: var(--hs-font-body);
  font-size: 0.875rem;
}

form.frm-fluent-form .ff-btn-submit {
  background-color: var(--hs-gold) !important;
  color: var(--hs-dark) !important;
  border: none;
  border-radius: 4px;
  font-family: var(--hs-font-head);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: auto !important;
  transform: none !important;
}

form.frm-fluent-form .ff-btn-submit:hover {
  background-color: var(--hs-dark) !important;
  color: #ffffff !important;
  opacity: 1 !important;
  box-shadow: 0 4px 12px rgba(240, 179, 35, 0.4);
  transform: translateY(-2px) !important;
}

form.frm-fluent-form .ff-btn-submit::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%23003057' d='M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0-105.4 105.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: all 0.2s ease;
}

form.frm-fluent-form .ff-btn-submit:hover::after {
  transform: translateX(4px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%23ffffff' d='M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0-105.4 105.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z'/%3E%3C/svg%3E");
}

/* --- Tier 2: Form Themes (.hs-glass-form) --- */
form.hs-glass-form .ff-el-form-control {
  background-color: var(--hs-light-glass) !important;
  border: 1px solid var(--hs-border-glass) !important;
  color: #ffffff !important;
  border-radius: 4px !important;
  padding: 10px 16px !important;
  transition: border-color 0.3s ease, background-color 0.3s ease !important;
}

form.hs-glass-form .ff-el-form-control:focus {
  border-color: var(--hs-gold) !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  outline: none !important;
}

form.hs-glass-form .ff-el-form-control::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

form.hs-glass-form label,
form.hs-glass-form .ff-el-input--label label {
  color: #ffffff !important;
}

form.hs-glass-form select option {
  background-color: var(--hs-dark);
  color: #ffffff;
}

form.hs-glass-form .ff-message-success {
  background-color: transparent !important;
  border: 1px solid var(--hs-gold) !important;
  padding: 10px !important;
  margin-top: 10px !important;
  text-align: center !important;
}

form.hs-glass-form .ff-message-success p {
  color: #ffffff !important;
  font-size: 1rem !important;
  font-family: var(--hs-font-body) !important;
  margin: 0 !important;
}

/* --- Tier 3: Layout Utilities --- */
form.hs-submit-center .ff_submit_btn_wrapper {
  text-align: center !important;
  margin-top: 10px !important;
  margin-bottom: 0 !important;
}

form.hs-inline-form {
  width: 100% !important;
  max-width: 450px !important;
}

form.hs-inline-form .ff-t-container {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  align-items: stretch !important;
}

form.hs-inline-form .ff-el-form-control {
  height: 42px !important;
}

form.hs-inline-form .ff-btn-submit {
  height: 42px !important;
  width: 100% !important;
  min-width: 140px !important;
  padding: 0 32px !important;
}

@media (min-width: 768px) {
  form.hs-inline-form .ff-t-container {
    flex-direction: row !important;
    align-items: flex-start !important;
  }
  form.hs-inline-form .ff-btn-submit {
    width: auto !important;
  }
}

/* --- Tier 4: Component Utilities --- */
form.hs-glass-form .hs-grid-2col .ff-el-input--content {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px !important;
  width: 100% !important;
}

form.hs-glass-form .hs-grid-1col .ff-el-input--content {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  width: 100% !important;
}

form.hs-glass-form .hs-grid-2col input,
form.hs-glass-form .hs-grid-2col .ff-el-form-check-label::before,
form.hs-glass-form .hs-grid-2col .ff-el-form-check-label::after,
form.hs-glass-form .hs-grid-1col input,
form.hs-glass-form .hs-grid-1col .ff-el-form-check-label::before,
form.hs-glass-form .hs-grid-1col .ff-el-form-check-label::after {
  display: none !important;
  content: none !important;
}

form.hs-glass-form .hs-grid-2col .ff-el-form-check,
form.hs-glass-form .hs-grid-1col .ff-el-form-check {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background-color: var(--hs-light-glass) !important;
  border: 2px solid var(--hs-border-glass) !important;
  border-radius: 5px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

form.hs-glass-form .hs-grid-2col .ff-el-form-check:hover,
form.hs-glass-form .hs-grid-1col .ff-el-form-check:hover {
  border-color: rgba(255, 255, 255, 0.5) !important;
  background-color: var(--hs-border-glass) !important;
}

form.hs-glass-form .hs-grid-2col .ff-el-form-check:has(input:checked),
form.hs-glass-form .hs-grid-2col .ff-el-form-check.ff_item_selected,
form.hs-glass-form .hs-grid-1col .ff-el-form-check:has(input:checked),
form.hs-glass-form .hs-grid-1col .ff-el-form-check.ff_item_selected {
  border-color: var(--hs-gold) !important;
  background-color: rgba(240, 179, 35, 0.15) !important;
}

form.hs-glass-form .hs-grid-2col .ff-el-form-check-label,
form.hs-glass-form .hs-grid-1col .ff-el-form-check-label {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 12px 5px !important;
  text-align: center !important;
  line-height: 1.1 !important;
  cursor: pointer !important;
}

form.hs-glass-form .hs-grid-2col .ff-el-form-check-label span,
form.hs-glass-form .hs-grid-1col .ff-el-form-check-label span {
  font-family: var(--hs-font-head) !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  font-size: 0.75rem !important;
  color: #ffffff !important;
  letter-spacing: 0.5px !important;
}

form.hs-glass-form .hs-grid-image-4col .ff_el_checkable_photo_holders {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 10px !important;
  width: 100% !important;
}

form.hs-glass-form .hs-grid-image-2col .ff_el_checkable_photo_holders {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px !important;
  width: 100% !important;
}

form.hs-glass-form .hs-grid-image-4col input[type="radio"],
form.hs-glass-form .hs-grid-image-2col input[type="radio"] {
  display: none !important;
}

form.hs-glass-form .hs-grid-image-4col .ff-el-form-check,
form.hs-glass-form .hs-grid-image-2col .ff-el-form-check {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  background-color: var(--hs-light-glass) !important;
  border: 2px solid var(--hs-border-glass) !important;
  border-radius: 5px !important;
  padding: 8px 4px !important;
  cursor: pointer !important;
  height: 100% !important;
  margin: 0 !important;
}

form.hs-glass-form .hs-grid-image-4col .ff-el-form-check:hover,
form.hs-glass-form .hs-grid-image-2col .ff-el-form-check:hover {
  border-color: rgba(255, 255, 255, 0.5) !important;
  background-color: var(--hs-border-glass) !important;
}

form.hs-glass-form .hs-grid-image-4col .ff-el-form-check:has(input:checked),
form.hs-glass-form .hs-grid-image-4col .ff-el-form-check.ff_item_selected,
form.hs-glass-form .hs-grid-image-2col .ff-el-form-check:has(input:checked),
form.hs-glass-form .hs-grid-image-2col .ff-el-form-check.ff_item_selected {
  border-color: var(--hs-gold) !important;
  background-color: rgba(240, 179, 35, 0.15) !important;
}

form.hs-glass-form .hs-grid-image-4col label.ff-el-image-input-src,
form.hs-glass-form .hs-grid-image-2col label.ff-el-image-input-src {
  width: 100% !important;
  height: 30px !important;
  margin-bottom: 5px !important;
  border: none !important;
  cursor: pointer !important;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

form.hs-glass-form
  .hs-grid-image-4col
  .ff-el-form-check
  label.ff-el-form-check-label,
form.hs-glass-form
  .hs-grid-image-2col
  .ff-el-form-check
  label.ff-el-form-check-label {
  width: 100% !important;
  text-align: center !important;
  margin: 0 !important;
  padding: 0 !important;
  cursor: pointer !important;
  border: none !important;
}

form.hs-glass-form .hs-grid-image-4col .ff-el-form-check label > span,
form.hs-glass-form .hs-grid-image-2col .ff-el-form-check label > span {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #ffffff !important;
  padding: 0 !important;
  margin: 0 !important;
  font-family: var(--hs-font-head) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  line-height: 1.2 !important;
  display: block !important;
}

/**
 * =============================================================================
 * FORM TOGGLE: BOOKING & CONTACT (.HS-SECTION-BOOKING-FORM)
 * =============================================================================
 * PURPOSE: Styling and layout for FORM TOGGLE: BOOKING & CONTACT (.HS-SECTION-BOOKING-FORM)
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */

.hs-section-booking-form .hs-form-hidden {
  display: none !important;
}

.hs-section-booking-form .hs-form-active {
  display: block !important;
  animation: hs-fade-in 0.4s ease;
}

@keyframes hs-fade-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Divi Visual Builder Failsafe --- */
body.et-fb .hs-section-booking-form .hs-form-hidden {
  display: block !important;
  opacity: 0.6;
  margin-top: 50px;
  padding-top: 50px;
  border-top: 2px dashed rgba(240, 179, 35, 0.5);
}

body.et-fb .hs-section-booking-form .hs-form-hidden::before {
  content: "HIDDEN FORM (Visible in Builder Only)";
  display: block;
  text-align: center;
  color: var(--hs-gold);
  font-weight: bold;
  margin-bottom: 20px;
}

.hs-section-booking-form .hs-form-active .ff_submit_btn_wrapper {
  margin-top: 15px !important;
}

.hs-section-booking-form .hs-form-switch-container {
  text-align: center;
  padding-top: 20px;
  margin-top: 25px;
  border-top: 1px solid rgba(240, 179, 35, 0.4);
}

/* --- Bento Layout Tuning --- */
.hs-section-booking-form
  #hs-email-form-wrapper
  form
  .ff-column-container:has(.hs-grid-1col) {
  display: flex !important;
  align-items: stretch !important;
}

.hs-section-booking-form
  #hs-email-form-wrapper
  form
  .ff-column-container:has(.hs-grid-1col)
  > .ff-t-cell {
  display: flex !important;
  flex-direction: column !important;
}

.hs-section-booking-form #hs-email-form-wrapper form .hs-grid-1col,
.hs-section-booking-form #hs-email-form-wrapper form .hs-grid-image-2col {
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
  margin-bottom: 0 !important;
}

.hs-section-booking-form
  #hs-email-form-wrapper
  form
  .hs-grid-1col
  .ff-el-input--content {
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
  gap: 10px !important;
}

.hs-section-booking-form
  #hs-email-form-wrapper
  form
  .hs-grid-1col
  .ff-el-form-check {
  flex-grow: 1 !important;
  height: auto !important;
  margin: 0 !important;
}

.hs-section-booking-form
  #hs-email-form-wrapper
  form
  .hs-grid-1col
  .ff-el-form-check-label
  span {
  line-height: 1 !important;
}

.hs-section-booking-form
  #hs-email-form-wrapper
  form
  .hs-grid-image-2col
  .ff-el-input--content {
  position: relative !important;
  flex-grow: 1 !important;
  display: block !important;
  min-height: 80px;
}

@media (min-width: 768px) {
  .hs-section-booking-form
    #hs-email-form-wrapper
    form
    .hs-grid-image-2col
    .ff_el_checkable_photo_holders {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: 1fr 1fr !important;
    gap: 10px !important;
    margin: 0 !important;
  }
}

@media (max-width: 767px) {
  .hs-section-booking-form
    #hs-email-form-wrapper
    form
    .hs-grid-image-2col
    .ff_el_checkable_photo_holders {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
}

.hs-section-booking-form
  form.hs-glass-form
  .hs-grid-image-2col
  .ff-el-form-check {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 0 10px !important;
  height: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.hs-section-booking-form
  form.hs-glass-form
  .hs-grid-image-2col
  label.ff-el-image-input-src {
  width: 20px !important;
  height: 15px !important;
  margin: 0 8px 0 0 !important;
  flex-shrink: 0 !important;
  background-position: left center !important;
}

.hs-section-booking-form
  form.hs-glass-form
  .hs-grid-image-2col
  .ff-el-form-check
  label.ff-el-form-check-label {
  width: auto !important;
  flex-grow: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.hs-section-booking-form
  form.hs-glass-form
  .hs-grid-image-2col
  .ff-el-form-check
  label
  > span {
  display: block !important;
  text-align: left !important;
  font-size: 0.75rem !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.hs-section-booking-form .hs-secondary-link {
  outline: none;
  display: inline-flex;
  align-items: center;
}

.hs-section-booking-form .hs-secondary-link:focus-visible {
  outline: 2px dashed var(--hs-gold);
  outline-offset: 6px;
  border-radius: 4px;
}

.hs-section-booking-form .hs-secondary-link i {
  margin-left: 16px !important;
  transition: transform 0.3s ease;
}

.hs-section-booking-form .hs-secondary-link:hover i {
  transform: translateX(5px);
}

/* --- Full Button Clickability --- */
.hs-section-booking-form form.hs-glass-form .ff-el-form-check {
  position: relative !important;
}

.hs-section-booking-form
  form.hs-glass-form
  .ff-el-form-check
  label.ff-el-form-check-label::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 10 !important;
  cursor: pointer !important;
  background: transparent !important;
  border: none !important;
}

@media (max-width: 767px) {
  form.hs-glass-form .hs-grid-2col .ff-el-input--content {
    grid-template-columns: 1fr !important;
  }
  form.hs-glass-form .hs-grid-2col .ff-el-form-check {
    min-height: 44px !important;
  }
  form.hs-glass-form .hs-grid-image-4col .ff_el_checkable_photo_holders {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 767px) {
  form.hs-form-booking-modal .ff-el-group {
    margin-bottom: 10px !important;
  }
  form.hs-form-booking-modal
    .jez-cta-curriculum-checkboxes
    .ff-el-input--content,
  form.hs-form-booking-modal .jez-cta-campus-radio .ff-el-input--content {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
  }
  form.hs-form-booking-modal .jez-cta-curriculum-checkboxes .ff-el-form-check,
  form.hs-form-booking-modal .jez-cta-campus-radio .ff-el-form-check {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    height: auto !important;
    min-height: 32px !important;
    margin: 0 !important;
  }
}

/**
 * =============================================================================
 * [LAYER 3: STRUCTURAL LAYOUT]
 * =============================================================================
 * PURPOSE: Styling and layout for [LAYER 3: STRUCTURAL LAYOUT]
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */

/* --- Header, Utility Bar & Base Z-Index --- */
.et_pb_section:has(.hs-utility-bar) {
  position: relative !important;
  z-index: 1002 !important;
  overflow: visible !important;
  background-color: var(--hs-dark) !important;
}

.et_pb_section_0_tb_header,
.hs-utility-bar {
  position: relative !important;
  z-index: 1002 !important;
  overflow: visible !important;
}

.et_pb_section_1_tb_header,
.hs-primary-nav {
  position: relative !important;
  z-index: 999 !important;
  overflow: visible !important;
}

/* --- Global Mega Containers (Hidden State) --- */
div[class*="mega-dropdown"],
.et_pb_column.mega-dropdown,
.et_pb_section.mega-dropdown,
.mega-dropdown,
.mega-contact-form {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  overflow: visible !important;
  transform: translateY(-100%) !important;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.3s ease, visibility 0.3s !important;
}

/* --- Z-Index Layering --- */
.mega-resources,
.mega-community,
.mega-social-fb,
.mega-social-insta,
.mega-contact-form {
  z-index: 1001 !important;
}

.mega-student {
  z-index: 998 !important;
}

.mega-social-fb .et_pb_row,
.mega-social-insta .et_pb_row {
  pointer-events: auto !important;
}

/* --- Contact Form Drawer Specifics --- */
body #page-container .mega-contact-form {
  max-width: 550px !important;
  height: auto !important;
  background-color: var(--hs-dark) !important;
  background: var(--hs-dark) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

/* --- Active / Open States --- */
.mega-dropdown.hs-show-mega,
.mega-contact-form.hs-show-mega,
.mega-local-popup.hs-show-mega {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0%) !important;
}

/* --- Divi Builder Preview Override --- */
.hs-mega-initialized {
  margin-top: 0px !important;
}

body.et-fb div[class*="mega-dropdown"],
body.et-fb .et_pb_column.mega-dropdown,
body.et-fb .et_pb_section.mega-dropdown,
body.et-fb .mega-dropdown,
body.et-fb #page-container .mega-contact-form,
body.et-fb .mega-local-popup {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  margin-top: 20px !important;
  border: 2px dashed var(--hs-gold) !important;
}

/* --- Local Footer Popups --- */
.hs-mega-parent-column {
  overflow: visible !important;
  position: relative !important;
  z-index: 1005 !important;
}

.mega-local-popup {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  top: 100% !important;
  bottom: auto !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  min-width: auto !important;
  margin-top: -35px !important;
  padding-top: 20px !important;
  transform: translateY(-10px) !important;
  transform-origin: top center !important;
  transition: all 0.3s ease !important;
  z-index: 9999 !important;
}

/* --- Pointers & Triggers --- */
.trigger-fb,
.trigger-insta,
.trigger-student,
.trigger-community,
.trigger-resources,
.trigger-fb-footer,
.trigger-insta-footer,
.cta-column,
.tour-inline-hover,
.hs-contact-toggle,
.hs-cta-open,
#secondary-cta-trigger {
  pointer-events: auto !important;
  position: relative;
  z-index: 1006 !important;
  cursor: pointer !important;
}

/* --- X-Icon Toggle Logic (Header & Footer) --- */

/* Top Button (Header CTA) */
.cta-column .et_pb_icon_8_tb_header .et-pb-icon {
  transition: all 0.3s ease !important;
  position: relative !important;
  display: inline-block !important;
}

.cta-column.hs-cta-open .et_pb_icon_8_tb_header .et-pb-icon {
  color: transparent !important;
  transform: rotate(90deg) !important;
}

.cta-column.hs-cta-open .et_pb_icon_8_tb_header .et-pb-icon::after {
  content: "\4d" !important;
  font-family: "ETmodules" !important;
  color: var(--hs-dark) !important;
  font-size: 26px !important;
  font-weight: 900 !important;
  text-shadow: 0 0 1px var(--hs-dark) !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.cta-column .et_pb_icon_7_tb_header .et-pb-icon,
.cta-column.hs-cta-open .et_pb_icon_7_tb_header .et-pb-icon {
  transform: none !important;
  color: inherit !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.cta-column.hs-cta-open .et_pb_icon_7_tb_header .et-pb-icon::after {
  display: none !important;
}

/* Bottom Button (Footer CTA) */
body
  #page-container
  .et_pb_section
  a.hs-secondary-cta-button.et_pb_button.hs-cta-open::after,
body
  #page-container
  .et_pb_section
  a.secondary-cta-button.et_pb_button.hs-cta-open::after {
  content: "\00D7" !important;
  font-family: Arial, sans-serif !important;
  color: var(--hs-gold) !important;
  font-size: 40px !important;
  font-weight: 300 !important;
  line-height: 1 !important;
  position: absolute !important;
  top: 50% !important;
  right: 0px !important;
  transform: translateY(-50%) rotate(90deg) !important;
}

body
  #page-container
  .et_pb_section
  a.hs-secondary-cta-button.et_pb_button:not(.hs-cta-open):hover::after,
body
  #page-container
  .et_pb_section
  a.secondary-cta-button.et_pb_button:not(.hs-cta-open):hover::after {
  right: -5px !important;
}

body
  #page-container
  .et_pb_section
  a.hs-secondary-cta-button.et_pb_button.hs-cta-open:hover::after,
body
  #page-container
  .et_pb_section
  a.secondary-cta-button.et_pb_button.hs-cta-open:hover::after {
  right: -5px !important;
  transform: translateY(-50%) rotate(180deg) !important;
}

/* --- Mobile Drawer & Hamburger Styles --- */
@media (min-width: 981px) {
  #hs-mobile-nav-root {
    display: none !important;
  }
  .hs-standalone-button {
    display: none !important;
  }
}

@media (max-width: 980px) {
  #hs-mobile-nav-root {
    display: block !important;
  }
  .hs-standalone-button {
    display: block !important;
  }
}

body.et-fb #hs-mobile-nav-root {
  display: none !important;
}

.et_pb_section_10_tb_header {
  display: none !important;
}

.et_pb_code_inner {
  position: static;
}

.hs-standalone-button {
  position: relative !important;
  width: 32px !important;
  height: 32px !important;
  cursor: pointer !important;
  z-index: 100000 !important;
}

.hs-burger-icon {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  fill: #003057 !important;
  transition: opacity 0.2s ease, transform 0.2s ease !important;
  opacity: 1 !important;
  transform: scale(1) !important;
  visibility: visible !important;
}

.hs-custom-close-icon {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0 !important;
  transform: scale(0.5) !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.2s ease, transform 0.2s ease !important;
}

.hs-custom-close-icon svg {
  width: 28px !important;
  height: 28px !important;
  fill: #003057 !important;
}

/* Open State */
.mobile-hamburger.hs-is-open .hs-burger-icon {
  opacity: 0 !important;
  transform: scale(0.5) !important;
  visibility: hidden !important;
}

.mobile-hamburger.hs-is-open .hs-custom-close-icon {
  opacity: 1 !important;
  transform: scale(1) !important;
  visibility: visible !important;
}

#hs-drawer-mask {
  position: fixed;
  left: 0;
  right: 0;
  background-color: transparent;
  z-index: 9999;
  overflow: hidden;
  pointer-events: none;
}

#hs-drawer-mask.active {
  pointer-events: auto;
}

#hs-drawer-content {
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

#hs-drawer-content.active {
  transform: translateY(0);
}

#hs-form-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #003058;
  z-index: 100001;
  transform: translateX(-100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

#hs-form-panel.active {
  transform: translateX(0);
}

#hs-form-teleport-target label,
#hs-form-teleport-target h2,
#hs-form-teleport-target h3,
#hs-form-teleport-target p {
  color: #ffffff !important;
}

#fluentform_4 .ff-el-group {
  margin-bottom: 10px !important;
}

#fluentform_4 .jez-cta-campus-radio {
  margin-top: 25px !important;
}

#fluentform_4 .jez-cta-curriculum-checkboxes .ff-el-input--content,
#fluentform_4 .jez-cta-campus-radio .ff-el-input--content {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px !important;
  width: 100% !important;
}

#fluentform_4 .jez-cta-curriculum-checkboxes .ff-el-form-check,
#fluentform_4 .jez-cta-campus-radio .ff-el-form-check {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  height: auto !important;
  min-height: 54px !important;
  margin: 0 !important;
}

.hs-no-scrollbar::-webkit-scrollbar {
  display: none;
}

.hs-no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hs-submenu-grid {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease-out;
}

.hs-submenu-grid.open {
  grid-template-rows: 1fr;
}

.hs-submenu-inner {
  overflow: hidden;
}

.hs-social-popup {
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: all 0.2s ease-in-out;
}

.hs-social-popup.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.hs-popup-triangle {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #003057;
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
}

/* --- Global Footer System --- */
.hs-copyright a {
  color: rgba(255, 255, 255, 0.2) !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
}

.hs-copyright a:hover {
  color: rgba(255, 255, 255, 0.4) !important;
}

.hs-mega-content {
  background-color: var(--hs-dark) !important;
  border-top: 3px solid var(--hs-gold) !important;
  border-bottom-left-radius: 8px !important;
  border-bottom-right-radius: 8px !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
  overflow: hidden !important;
  min-width: 220px !important;
}

.hs-mega-content .hs-mega-link {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 20px !important;
  color: white !important;
  text-decoration: none !important;
  font-family: var(--hs-font-body) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  transition: background 0.2s, padding-left 0.2s !important;
  line-height: 1.4 !important;
}

.hs-mega-content .hs-mega-link:last-child {
  border-bottom: none !important;
}

.hs-mega-content .hs-mega-link:hover {
  background-color: var(--hs-gold) !important;
  color: var(--hs-dark) !important;
  padding-left: 24px !important;
}

.hs-mega-content .hs-mega-icon {
  width: 16px !important;
  height: 16px !important;
  opacity: 0.9 !important;
  object-fit: contain !important;
}

/* --- Footer CTAs & Button Animations --- */
.et_pb_section.hs-footer-CTAs .hs-secondary-cta-button.et_pb_button,
.et_pb_section.hs-footer-CTAs .secondary-cta-button.et_pb_button {
  display: inline-flex !important;
  align-items: center !important;
  position: relative !important;
  padding: 0 1.8em 0 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  text-decoration-color: var(--hs-gold) !important;
  text-underline-offset: 6px !important;
  text-decoration-thickness: 2px !important;
  letter-spacing: 0px !important;
  transition: color 0.3s ease !important;
}

.et_pb_section.hs-footer-CTAs .hs-secondary-cta-button.et_pb_button:after,
.et_pb_section.hs-footer-CTAs .secondary-cta-button.et_pb_button:after {
  content: "\f061" !important;
  font-family: "FontAwesome" !important;
  font-weight: 900 !important;
  position: absolute !important;
  top: 50% !important;
  right: 0px !important;
  transform: translateY(-50%) !important;
  font-size: 1em !important;
  line-height: 1 !important;
  opacity: 1 !important;
  transition: all 0.3s ease !important;
}

.et_pb_section.hs-footer-CTAs .hs-secondary-cta-button.et_pb_button:hover,
.et_pb_section.hs-footer-CTAs .secondary-cta-button.et_pb_button:hover {
  color: var(--hs-gold) !important;
}

.et_pb_section.hs-footer-CTAs .cta-animate {
  transition: transform 0.3s ease-out !important;
  transform: translateY(0px) !important;
}

.et_pb_section.hs-footer-CTAs .cta-column:hover .cta-animate {
  transform: translateY(3px) !important;
}

/**
 * =============================================================================
 * [LAYER 4: REUSABLE COMPONENTS]
 * =============================================================================
 * PURPOSE: Styling and layout for [LAYER 4: REUSABLE COMPONENTS]
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */

/* --- Media Components --- */
.et-pb-controllers {
  bottom: -10px;
}

.zoom-card {
  position: relative !important;
  overflow: hidden !important;
  aspect-ratio: 16/9 !important;
  width: 100% !important;
  height: auto !important;
  isolation: isolate;
  border-radius: 15px;
  transition: transform 0.5s ease;
  cursor: pointer;
  display: block;
}

.zoom-card .card-image {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  z-index: 1 !important;
}

.zoom-card .card-image .et_pb_image_wrap,
.zoom-card .card-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  transform-origin: center !important;
}

.zoom-card img {
  transition: transform 0.5s ease;
}

.zoom-card:hover .card-image img,
.zoom-card:hover img {
  transform: scale(1.1) !important;
}

.zoom-card .et_pb_text {
  position: relative !important;
  z-index: 10 !important;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Code modules inside zoom-cards need the same fill treatment as .card-image */
.zoom-card .et_pb_code,
.zoom-card .et_pb_code_inner {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 2 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.et_pb_row .mejs-container,
.et_pb_row .mejs-overlay,
.et_pb_row .mejs-poster {
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
}

.et_pb_row video {
  object-fit: cover;
}

/* --- Layout Utilities --- */
.hs-section-bento-feature .et_pb_column {
  display: flex;
  flex-direction: column;
}

.hs-section-bento-feature .hs-bento-image-wrapper {
  flex-grow: 1;
  display: flex;
  gap: 30px;
}

.hs-section-bento-feature .hs-bento-image-wrapper > .et_pb_group {
  flex-grow: 1;
  overflow: hidden;
  position: relative;
}

@media (max-width: 767px) {
  .hs-section-bento-feature .hs-bento-image-wrapper {
    flex-direction: column;
  }

  .hs-section-bento-feature .hs-bento-image-wrapper > .et_pb_group {
    min-height: 200px;
  }
}

.hs-ribbon-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  width: 100%;
}

.gallery-ribbon-item img {
  height: 300px;
  object-fit: cover;
  width: 100%;
  display: block;
}

@media (max-width: 980px) {
  .hs-ribbon-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery-ribbon-item img {
    height: 200px;
  }
}

@media (max-width: 767px) {
  .hs-ribbon-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/**
 * =============================================================================
 * DATA TABLES COMPONENT
 * =============================================================================
 * PURPOSE: Styling and layout for DATA TABLES COMPONENT
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */

/* --- Base Table Styling --- */
.hs-standard-table {
  width: 100% !important;
  border-collapse: collapse !important;
  font-family: var(--hs-font-body) !important;
  color: #4b5563 !important;
  margin-bottom: 0 !important;
  background: #ffffff !important;
}

.hs-standard-table th {
  background-color: var(--hs-dark) !important;
  color: #ffffff !important;
  font-family: var(--hs-font-head) !important;
  font-weight: 700 !important;
  padding: 10px 14px !important;
  text-align: center !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  font-size: 1rem !important;
}

.hs-standard-table td {
  padding: 10px 14px !important;
  vertical-align: middle !important;
  border-bottom: 1px solid #e2e8f0 !important;
  border-right: 1px solid #f1f5f9 !important;
  line-height: 1.4em !important;
  text-align: center !important;
  font-size: 0.95rem !important;
}

/* --- Row Titles & Mobile Constraints --- */
.hs-standard-table td:first-child,
.hs-standard-table th:first-child {
  text-align: left !important;
}

.hs-standard-table td:first-child strong {
  color: var(--hs-dark) !important;
  font-weight: 700 !important;
  font-family: var(--hs-font-head) !important;
}

.hs-standard-table tbody tr:nth-child(even) {
  background-color: #f8fafc !important;
}

.hs-standard-table tr:last-child td {
  border-bottom: none !important;
}

/* Constrain width heavily on Mobile via Container Queries */
@container (max-width: 767px) {
  .hs-standard-table td:first-child,
  .hs-standard-table th:first-child {
    width: 35vw !important;
    min-width: 35vw !important;
    max-width: 35vw !important;
    white-space: normal !important;
    word-break: break-word !important;
  }
}

/* Ensure uniform first-column width on tablet and desktop across multiple tables */
@container (min-width: 768px) {
  .hs-standard-table td:first-child,
  .hs-standard-table th:first-child {
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
    white-space: normal !important;
    word-break: break-word !important;
  }
}

/* --- Responsive Wrapper & Scroll Arrow --- */
.hs-table-container-relative {
  position: relative;
  width: 100%;
  container-type: inline-size;
}

.hs-table-wrapper-scroll {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  margin-bottom: 0 !important;
  background: #ffffff !important;
}

.hs-scroll-arrow-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 60px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.9) 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.hs-scroll-arrow-overlay.is-visible {
  opacity: 1;
}

.hs-scroll-arrow-overlay svg {
  color: var(--hs-dark);
  animation: hs-bounce-right 1.5s infinite;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  padding: 4px;
  width: 28px;
  height: 28px;
}

@keyframes hs-bounce-right {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-4px); }
}

@container (min-width: 980px) {
  .hs-scroll-arrow-overlay {
    display: none !important;
  }
}

/* --- Sticky First Column Strategy --- */
.hs-table-sticky {
  /* min-width removed so native table layout handles scroll triggers */
}

.hs-table-sticky th:first-child,
.hs-table-sticky td:first-child {
  position: -webkit-sticky !important;
  position: sticky !important;
  left: 0 !important;
  z-index: 2 !important;
  border-right: none !important;
  /* Uses an inset shadow so the border never gets hidden under adjacent cells */
  box-shadow: inset -2px 0 0 var(--hs-gold), 4px 0 8px -2px rgba(0,0,0,0.15) !important;
}

.hs-table-sticky th:first-child {
  background-color: var(--hs-dark) !important;
  z-index: 3 !important;
}

.hs-table-sticky tbody tr td:first-child {
  background-color: #ffffff !important;
}

.hs-table-sticky tbody tr:nth-child(even) td:first-child {
  background-color: #f8fafc !important;
}

/**
 * =============================================================================
 * GLOBAL DOWNLOAD CARD COMPONENT
 * =============================================================================
 * PURPOSE: Styling and layout for GLOBAL DOWNLOAD CARD COMPONENT
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */

/* Optional wrapper to stack multiple buttons nicely */
.hs-download-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 16px;
  margin-bottom: 24px;
}

/* The Button / Card */
.hs-download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #003057; 
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 48, 87, 0.2);
  width: 100%;
  box-sizing: border-box;
}

.hs-download-card:hover {
  background: #001f3b;
  transform: translateY(-2px);
}

.hs-download-content {
  display: flex;
  flex-direction: column;
  padding-right: 15px;
  flex-grow: 1;
}

.hs-download-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
  display: block;
  margin-bottom: 2px;
  line-height: 1.3;
}

.hs-download-meta {
  font-family: "Open Sans", sans-serif;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.4;
  display: block;
}

.hs-download-icon {
  color: #f0b323; 
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hs-download-icon svg {
  width: 22px;
  height: 22px;
}

/* Mobile Adjustments */
@media (max-width: 767px) {
  .hs-download-meta {
    display: none;
  }
  .hs-download-title {
    margin-bottom: 0;
    font-size: 1rem;
  }
  .hs-download-card {
    padding: 16px 20px;
  }
}

/**
 * =============================================================================
 * HEADSTART POST SLIDER STYLES
 * =============================================================================
 * PURPOSE: Styling and layout for HEADSTART POST SLIDER STYLES
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */
        .hs-shortcode-slider-wrapper .hs-post-filters {
            display: flex;
            gap: 12px;
            margin-bottom: 25px;
            flex-wrap: wrap;
        }
        .hs-shortcode-slider-wrapper .hs-post-filters a {
            padding: 8px 18px;
            border-radius: 50px;
            background-color: white;
            color: var(--hs-dark, #003057);
            text-decoration: none;
            font-family: var(--hs-font-head, 'Montserrat', sans-serif);
            font-weight: 700;
            font-size: 0.85rem;
            text-transform: uppercase;
            box-shadow: 0 2px 5px rgba(0,0,0,0.08);
            transition: all 0.2s ease;
            border: 2px solid transparent;
        }
        .hs-shortcode-slider-wrapper .hs-post-filters a:hover {
            background-color: #f9f9f9;
            transform: translateY(-2px);
        }
        .hs-shortcode-slider-wrapper .hs-post-filters a.active {
            background-color: var(--hs-gold, #f0b323);
            color: var(--hs-dark, #003057);
            border-color: var(--hs-gold, #f0b323);
        }
        
        /* RESTORED 1400px MAX-WIDTH TO PREVENT MASSIVE SCALING */
        .hs-shortcode-slider-wrapper {
            max-width: 100% !important;
            margin: 0 auto !important;
            position: relative;
            padding: 0 !important;
            overflow: hidden !important;
            width: 100%;
            min-width: 0 !important;
            box-sizing: border-box;
        }
        
        .hs-shortcode-slider-wrapper .swiper {
            width: 100% !important;
            padding: 20px 0 50px 0 !important;
            box-sizing: border-box !important;
        }
        
        @media (min-width: 1024px) {
            
            .hs-shortcode-slider-wrapper .hs-side-prev { left: 0px !important; }
            .hs-shortcode-slider-wrapper .hs-side-next { right: 0px !important; }
        }
        .hs-shortcode-slider-wrapper .swiper-slide {
            display: flex;
            justify-content: center;
            height: auto;
            width: 270px !important;
        }
        @media (max-width: 767px) {
            .hs-shortcode-slider-wrapper .hs-side-prev,
            .hs-shortcode-slider-wrapper .swiper-button-prev { left: 5px !important; }
            .hs-shortcode-slider-wrapper .hs-side-next,
            .hs-shortcode-slider-wrapper .swiper-button-next { right: 5px !important; }
        }
        @media (min-width: 768px) {
            .hs-shortcode-slider-wrapper .hs-side-prev,
            .hs-shortcode-slider-wrapper .swiper-button-prev { left: 0px !important; }
            .hs-shortcode-slider-wrapper .hs-side-next,
            .hs-shortcode-slider-wrapper .swiper-button-next { right: 0px !important; }
        }
        
        .hs-shortcode-slider-wrapper .hs-side-next, 
        .hs-shortcode-slider-wrapper .hs-side-prev,
        .hs-shortcode-slider-wrapper .swiper-button-next, 
        .hs-shortcode-slider-wrapper .swiper-button-prev {
            position: absolute !important;
            top: 50% !important;
            transform: translateY(-50%) !important;
            z-index: 20 !important;
            background-color: var(--hs-gold, #f0b323) !important;
            color: var(--hs-dark, #003057) !important;
            width: 38px !important; height: 38px !important;
            font-size: 16px !important;
            border-radius: 50% !important;
            border: none !important;
            box-shadow: 0 2px 5px rgba(0,0,0,0.15) !important;
            transition: all 0.2s ease !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            margin-top: 0 !important;
        }
        .hs-shortcode-slider-wrapper .hs-side-next svg, 
        .hs-shortcode-slider-wrapper .hs-side-prev svg {
            display: block !important;
            visibility: visible !important;
            opacity: 1 !important;
            width: 12px !important;
            height: auto !important;
            fill: var(--hs-dark, #003057) !important;
        }
        
        /* Style Swiper's native pseudo-element arrows perfectly if they appear (for cached HTML) */
        .hs-shortcode-slider-wrapper .swiper-button-next:after, 
        .hs-shortcode-slider-wrapper .swiper-button-prev:after {
            font-size: 16px !important;
            font-weight: 900 !important;
            color: var(--hs-dark, #003057) !important;
            display: block !important;
        }
        
        /* Prevent clicks from falling through to the last post when loading more */
        .hs-shortcode-slider-wrapper .swiper-button-disabled {
            opacity: 1 !important;
            pointer-events: auto !important;
            cursor: pointer !important;
        }
        
        /* Loader Spinner Above Arrow (Fallback) */
        .hs-shortcode-slider-wrapper.hs-is-fetching .hs-side-next::before,
        .hs-shortcode-slider-wrapper.hs-is-fetching .swiper-button-next::before {
            content: '';
            position: absolute;
            top: -25px;
            left: 50%;
            transform: translateX(-50%);
            width: 16px;
            height: 16px;
            border: 2px solid rgba(240, 179, 35, 0.3);
            border-top-color: var(--hs-gold, #f0b323);
            border-radius: 50%;
            animation: hsSpinner 0.8s linear infinite;
        }
        @keyframes hsSpinner {
            to { transform: translateX(-50%) rotate(360deg); }
        }
        .hs-shortcode-slider-wrapper .swiper-pagination {
            position: absolute !important;
            bottom: 0 !important;
            left: 0 !important;
            width: 100% !important;
            text-align: center !important;
            z-index: 10 !important;
        }
        /**
 * =============================================================================
 * FIXED PAGINATION SPACING
 * =============================================================================
 * PURPOSE: Styling and layout for FIXED PAGINATION SPACING
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */
        .hs-shortcode-slider-wrapper .swiper-pagination-bullet { background: var(--hs-dark); opacity: 0.5; margin: 0 6px !important; }
        .hs-shortcode-slider-wrapper .swiper-pagination-bullet-active { background: var(--hs-gold); opacity: 1; }

        
/**
 * =============================================================================
 * GRID MODE OVERRIDES
 * =============================================================================
 * PURPOSE: Styling and layout for GRID MODE OVERRIDES
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */
.hs-shortcode-slider-wrapper[data-display="grid"] .hs-post-grid.swiper {
    padding: 0 !important;
    overflow: visible !important;
}
@media (min-width: 768px) {
    .hs-shortcode-slider-wrapper[data-display="grid"] .swiper-wrapper {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 6px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        transform: none !important;
    }
    .hs-shortcode-slider-wrapper[data-display="grid"] .swiper-slide {
        width: 100% !important;
        margin-right: 0 !important;
    }
    .hs-shortcode-slider-wrapper[data-display="grid"] .swiper-button-next,
    .hs-shortcode-slider-wrapper[data-display="grid"] .swiper-button-prev,
    .hs-shortcode-slider-wrapper[data-display="grid"] .swiper-pagination {
        display: none !important;
    }
}
@media (min-width: 768px) and (max-width: 900px) {
    .hs-shortcode-slider-wrapper[data-display="grid"] .swiper-wrapper {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
.hs-shortcode-slider-wrapper[data-display="grid"] .hs-loading .swiper-wrapper {
    opacity: 0.5;
    pointer-events: none;
}

        /* Explicit Loader Styling */
        .hs-shortcode-slider-wrapper .swiper:not(.hs-swiper-loaded) .swiper-wrapper {
            opacity: 0;
            visibility: hidden;
            height: 450px;
        }
        .hs-slider-loader {
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            background: #ffffff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: var(--hs-font-head, 'Montserrat', sans-serif);
            font-size: 1.2rem;
            color: var(--hs-dark, #003057);
            font-weight: bold;
            z-index: 100;
            animation: hsPulse 1.5s infinite ease-in-out;
            border-radius: 15px;
        }
        @keyframes hsPulse {
            0% { opacity: 0.5; transform: scale(0.98); }
            50% { opacity: 1; transform: scale(1); }
            100% { opacity: 0.5; transform: scale(0.98); }
        }

        /* SKELETON CARD (LOADING STATE) */
        .hs-skeleton-card {
            border-radius: 12px;
            width: 100%;
            position: relative;
            overflow: hidden;
            background: linear-gradient(90deg, #e0e0e0 25%, #f8f8f8 50%, #e0e0e0 75%);
            background-size: 200% 100%;
            animation: hsSkeletonShimmer 1.5s infinite linear;
        }
        .hs-slider-skeleton-card {
            aspect-ratio: 9 / 16 !important;
            height: 100% !important;
            width: calc(100% - 1rem) !important;
            max-width: calc(100% - 1rem) !important;
            min-width: calc(100% - 1rem) !important;
            margin: 0 0.5rem !important;
        }
        @keyframes hsSkeletonShimmer {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }

        /* CARD STYLES */
        .hs-story-card {
            container-type: inline-size;
            aspect-ratio: 9 / 16 !important;
            background-color: var(--hs-dark, #003057);
            color: white;
            border-radius: 12px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            width: 100%;
            max-width: 400px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            position: relative;
            text-decoration: none;
            height: auto !important;
        }
        .hs-story-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
        }
        .hs-story-image {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
        }
        .hs-story-image::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to bottom, rgba(0,48,87,0.3) 0%, rgba(0,48,87,0.8) 100%);
            z-index: 2;
        }
        .hs-story-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        .hs-story-card:hover .hs-story-image img {
            transform: scale(1.05);
        }
        
        /**
 * =============================================================================
 * CHIP STYLES MATCHING ORIGINAL DIVI REFERENCE
 * =============================================================================
 * PURPOSE: Styling and layout for CHIP STYLES MATCHING ORIGINAL DIVI REFERENCE
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */
        
        /* Department Chip */
        .hs-shortcode-slider-wrapper .hs-badge-primary {
            position: static !important;
            display: flex !important;
            justify-content: center !important;
            align-items: center !important;
            text-align: center !important;
            margin: 0 auto !important;
            width: max-content !important;
            max-width: 90% !important;
        }
        
        .hs-shortcode-slider-wrapper .hs-badge-primary, .hs-shortcode-slider-wrapper .hs-badge-primary-inner {
            width: fit-content !important;
            margin: 0 auto !important;
            background: rgba(255, 255, 255, 0.15) !important;
            backdrop-filter: blur(12px) !important;
            -webkit-backdrop-filter: blur(12px) !important;
            border: 1px solid rgba(255, 255, 255, 0.2) !important;
            border-radius: 50px !important;
            padding: 4px !important;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
        }
        
        .hs-shortcode-slider-wrapper .hs-badge-primary:has(.hs-badge-primary-inner) {
            background: transparent !important;
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
            border: none !important;
            padding: 0 !important;
            box-shadow: none !important;
        }
        
        .hs-shortcode-slider-wrapper .hs-badge-primary p {
            background: var(--hs-gold, #f0b323) !important;
            color: var(--hs-dark, #003057) !important;
            padding: 6px 16px !important;
            border-radius: 50px !important;
            font-family: var(--hs-font-head, 'Montserrat', sans-serif) !important;
            font-weight: 800 !important;
            line-height: 1.2 !important;
            margin: 0 !important;
            letter-spacing: 0.5px !important;
            text-align: center !important;
            display: block !important;
            font-size: clamp(0.3rem, 4.5cqw, 0.8rem) !important;
            white-space: nowrap !important;
            box-sizing: border-box !important;
            text-transform: uppercase !important;
        }

        /* Location Chip */
        .hs-shortcode-slider-wrapper .hs-badge-location {
            width: max-content !important;
            position: static !important;
            display: flex !important;
            justify-content: center !important;
            align-items: center !important;
            text-align: center !important;
            margin: 0 auto !important;
        }
        
        .hs-shortcode-slider-wrapper .hs-badge-location p {
            color: white !important;
            font-family: var(--hs-font-head, 'Montserrat', sans-serif) !important;
            font-size: 0.75rem !important;
            font-weight: 600 !important;
            text-transform: uppercase !important;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6) !important;
            letter-spacing: 0.5px !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            margin: 0 auto !important;
            width: max-content !important;
            white-space: nowrap !important;
        }
        
        .hs-shortcode-slider-wrapper .hs-badge-location {
            position: static !important; margin: 0 !important; top: auto !important; left: auto !important; right: auto !important;
        }
        
        .hs-shortcode-slider-wrapper .hs-badge-location p {
            display: flex !important; align-items: center !important;
        }

        .hs-shortcode-slider-wrapper .hs-badge-location p::before {
            content: "\f041" !important;
            font-family: "Font Awesome 6 Free" !important;
            font-weight: 900 !important;
            color: var(--hs-gold, #f0b323) !important;
            margin-right: 6px !important;
            text-shadow: none !important;
        }
        
        .hs-shortcode-slider-wrapper .hs-story-date {
            position: static !important;
            margin: 0 !important;
            top: auto !important;
            right: auto !important;
            display: flex !important;
            justify-content: center !important;
            align-items: center !important;
            width: 100% !important;
            background: rgba(255, 255, 255, 0.2) !important;
            backdrop-filter: blur(4px) !important;
            -webkit-backdrop-filter: blur(4px) !important;
            padding: 4px 0 !important;
        }
        .hs-shortcode-slider-wrapper .hs-story-date p {
            color: white !important;
            font-family: var(--hs-font-head, 'Montserrat', sans-serif) !important;
            font-size: 0.65rem !important;
            font-weight: 700 !important;
            text-transform: uppercase !important;
            letter-spacing: 0.5px !important;
            margin: 0 !important;
            padding: 0 !important;
            line-height: 1 !important;
            text-shadow: 0 1px 4px rgba(0,0,0,0.8) !important;
        }

        .hs-shortcode-slider-wrapper .hs-story-bottom-group {
            position: relative !important; z-index: 20 !important; display: flex !important; flex-direction: column !important; align-items: center !important; width: 100% !important;
        }

        .hs-shortcode-slider-wrapper .hs-story-title { position: static !important; z-index: 10 !important; margin: 0 0 12px 0 !important; padding: 0 25px !important; text-align: center !important; width: 100% !important; display: flex !important; justify-content: center !important; }
        .hs-shortcode-slider-wrapper .hs-story-title p {
            color: white !important;
            font-family: var(--hs-font-head, 'Montserrat', sans-serif) !important;
            font-weight: 800 !important;
            font-size: 1.4rem !important;
            line-height: 1.25 !important;
            margin: 0 auto !important;
            text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4) !important;
            text-align: center !important;
            display: -webkit-box !important;
            -webkit-line-clamp: 4 !important;
            -webkit-box-orient: vertical !important;
            overflow: hidden !important;
            width: 100% !important;
            text-decoration: none !important;
            padding-bottom: 0 !important;
        }
        
        .hs-story-tags { position: static !important; z-index: 10 !important; margin: 0 !important; bottom: auto !important; padding: 0 15px !important; display: flex !important; justify-content: center !important; }
        .hs-story-tags p { display: flex !important; flex-wrap: wrap !important; gap: 4px !important; justify-content: center !important; margin: 0 !important; }
        .hs-story-tags span { background: rgba(240, 179, 35, 0.15) !important; border: 1px solid rgba(240, 179, 35, 0.3) !important; color: var(--hs-gold) !important; font-family: var(--hs-font-head, 'Montserrat', sans-serif) !important; font-size: 0.55rem !important; font-weight: 700 !important; text-transform: uppercase !important; padding: 5px 8px !important; border-radius: 6px !important; backdrop-filter: blur(4px) !important; -webkit-backdrop-filter: blur(4px) !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; line-height: 1 !important; }

        /* Grid Header */
        .hs-shortcode-slider-wrapper .hs-grid-header-wrap { display: flex !important; justify-content: space-between !important; align-items: center !important; margin-bottom: 25px !important; flex-wrap: wrap !important; gap: 15px !important; width: 100% !important; box-sizing: border-box !important; }
        .hs-shortcode-slider-wrapper .hs-grid-header-wrap h2 { font-family: var(--hs-font-head, 'Montserrat', sans-serif) !important; color: #003057 !important; font-size: 1.6rem !important; font-weight: 700 !important; line-height: 1.2 !important; margin: 0 !important; padding: 5px 0 5px 12px !important; border-left: 6px solid #f0b323 !important; display: block !important; box-sizing: border-box !important; flex: 1 1 auto !important; }
        
        /* Controls & Filter */
        .hs-shortcode-slider-wrapper .hs-grid-controls-right { display: flex !important; align-items: center !important; gap: 15px !important; margin-left: auto !important; flex: 0 1 auto !important; }
        .hs-shortcode-slider-wrapper select.hs-slider-grid-filter { padding: 0 36px 0 16px !important; border: 1px solid #cbd5e1 !important; border-radius: 6px !important; font-family: var(--hs-font-head, 'Montserrat', sans-serif) !important; font-size: 0.8rem !important; font-weight: 700 !important; color: #003057 !important; background: #ffffff !important; outline: none !important; cursor: pointer !important; height: 38px !important; box-sizing: border-box !important; appearance: none !important; -webkit-appearance: none !important; -moz-appearance: none !important; background-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2212%22 height=%2212%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23003057%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpolyline points=%226 9 12 15 18 9%22%3E%3C/polyline%3E%3C/svg%3E') !important; background-repeat: no-repeat !important; background-position: right 16px center !important; background-size: 12px !important; margin: 0 !important; }
        
        /* Top Arrows */
        .hs-shortcode-slider-wrapper .hs-top-arrows { display: flex !important; gap: 8px !important; }
        .hs-shortcode-slider-wrapper .hs-top-arrows button { background-color: var(--hs-gold, #f0b323) !important; border: none !important; border-radius: 50% !important; width: 38px !important; height: 38px !important; display: flex !important; align-items: center !important; justify-content: center !important; cursor: pointer !important; color: var(--hs-dark, #003057) !important; font-size: 16px !important; box-shadow: 0 2px 5px rgba(0,0,0,0.15) !important; transition: all 0.2s ease !important; }
        
        /* Story Card Layout */
        .hs-shortcode-slider-wrapper .hs-story-card { justify-content: space-between !important; padding: 15px 0 20px 0 !important; text-decoration: none !important; height: 100% !important; }
        .hs-shortcode-slider-wrapper .hs-badge-primary { position: absolute !important; margin: 0 !important; top: 0 !important; left: 50% !important; transform: translate(-50%, -50%) !important; right: auto !important; z-index: 30 !important; }
        .hs-shortcode-slider-wrapper .hs-story-top-group { position: relative !important; z-index: 20 !important; display: flex !important; flex-direction: column !important; align-items: center !important; gap: 0 !important; width: 100% !important; padding-top: 5px !important; }
        
        /* Builder Preview */
        .hs-builder-preview-wrapper { background:#f8fafc !important; border:2px dashed #94a3b8 !important; padding:40px 20px !important; text-align:center !important; border-radius:12px !important; margin: 20px 0 !important; width:100% !important; box-sizing:border-box !important; }
        .hs-builder-preview-title { color:#0f172a !important; font-family:var(--hs-font-head, 'Montserrat', sans-serif) !important; font-weight:700 !important; font-size: 1.2rem !important; margin:0 0 10px 0 !important; }
        .hs-builder-preview-desc { color:#64748b !important; font-family:var(--hs-font-body, 'Open Sans', sans-serif) !important; margin:0 !important; font-size: 0.9rem !important; }

        /* AJAX Fallback */
        .hs-no-posts-message { padding: 20px !important; text-align: center !important; font-family: var(--hs-font-body, 'Open Sans', sans-serif) !important; }

@media (min-width: 1450px) {
    .hs-shortcode-slider-wrapper {
        max-width: 1390px !important;
    }
}

@media (max-width: 1449px) {
    .hs-shortcode-slider-wrapper {
        max-width: 100vw !important;
    }
}

/**
 * =============================================================================
 * HEADSTART NOTICEBOARD WIDGET - SCOPED CSS
 * =============================================================================
 * PURPOSE: Styling and layout for HEADSTART NOTICEBOARD WIDGET - SCOPED CSS
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */

/* 1. Main Wrapper & Variables */
.hs-weekly-update-list-sidebar {
    --hs-gold: #f0b323;
    --hs-dark: #003057;
    --hs-font-head: 'Montserrat', sans-serif;
    --hs-font-body: 'Open Sans', sans-serif;
    
    font-family: var(--hs-font-body) !important;
    width: 100% !important; 
    background: #ffffff !important;
    border-radius: 15px !important;
    box-shadow: 0 0 35px rgba(0, 48, 87, 0.12) !important;
    border: 1px solid #f1f5f9 !important;
    
    /* FIX: Block and Auto Height forces the Divi column to expand to fit the content naturally */
    display: block !important; 
    height: auto !important; 
    overflow: hidden !important; /* Keeps corners rounded */
    box-sizing: border-box !important;
}

.hs-weekly-update-list-sidebar * {
    box-sizing: border-box;
}

/* Noticeboard Component Heading (Left Yellow Border Style from Blog Roll) */
.hs-noticeboard-heading {
    font-family: 'Montserrat', sans-serif !important;
    color: #003057 !important;
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin: 1rem 0 1rem 0 !important;
    padding: 10px 0 10px 10px !important;
    border-left: 6px solid #f0b323 !important;
    display: block !important;
}

/* 2. Aggressive Divi Resets within scope */
.hs-weekly-update-list-sidebar h1, 
.hs-weekly-update-list-sidebar h2, 
.hs-weekly-update-list-sidebar h3, 
.hs-weekly-update-list-sidebar h4 {
    font-family: var(--hs-font-head) !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    color: var(--hs-dark) !important;
}

.hs-weekly-update-list-sidebar p {
    font-family: var(--hs-font-body) !important;
    margin: 0 !important;
    padding: 0 0 1em 0 !important;
    font-size: 1rem !important;
    line-height: 1.7 !important;
}

@media (max-width: 767px) {
    .hs-weekly-update-list-sidebar p {
        font-size: 0.875rem !important;
        line-height: 1.4 !important;
    }
}

.hs-weekly-update-list-sidebar ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.hs-weekly-update-list-sidebar li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.hs-weekly-update-list-sidebar li::before,
.hs-weekly-update-list-sidebar li::after {
    display: none !important;
    content: none !important;
}

/* 3. Bespoke Module Styles */
.hs-weekly-update-list-sidebar .hs-pinned-heading {
    font-family: var(--hs-font-head) !important;
    font-weight: 700 !important;
    font-size: 1.125rem !important;
    line-height: 1.3em !important;
    margin: 0 0 1rem 0 !important;
    padding: 8px 0 8px 12px !important;
    border-left: 5px solid var(--hs-gold) !important;
    color: #ffffff !important;
    display: block !important;
    transition: color 0.3s ease !important;
}

/* Forces spacing below the blurb and enforces exactly 2 lines of text */
.hs-weekly-update-list-sidebar .hs-pinned-blurb {
    margin-bottom: 1.25rem !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.hs-weekly-update-list-sidebar .hs-older-notice-item {
    padding: 1rem 1.5rem !important;
    margin-left: -1.5rem !important;
    margin-right: -1.5rem !important;
    border-bottom: 1px solid #f3f4f6 !important;
    background-color: transparent !important;
    transition: background-color 0.2s ease !important;
    cursor: pointer !important;
    display: block !important;
    position: relative !important;
}

.hs-weekly-update-list-sidebar .hs-older-notice-item:last-child {
    border-bottom: none !important;
}

.hs-weekly-update-list-sidebar .hs-older-notice-item:hover {
    background-color: #f9fafb !important;
}

.hs-weekly-update-list-sidebar .hs-older-notice-border {
    border-left: 4px solid transparent !important;
    padding-left: 0.75rem !important;
    transition: border-color 0.2s ease !important;
}

.hs-weekly-update-list-sidebar .hs-older-notice-item:hover .hs-older-notice-border {
    border-color: var(--hs-gold) !important;
}

/* 4. Modal Scope & Rich Text Formatting */
.hs-noticeboard-modal-scope {
    --hs-gold: #f0b323;
    --hs-dark: #003057;
    --hs-font-head: 'Montserrat', sans-serif;
    --hs-font-body: 'Open Sans', sans-serif;
    font-family: var(--hs-font-body) !important;
    z-index: 999999 !important;
}

.hs-noticeboard-modal-scope h3 {
    font-family: var(--hs-font-head) !important;
    margin-top: 0 !important;
    margin-bottom: 1.5rem !important;
    padding-bottom: 1rem !important;
}

.hs-modal-prose p {
    font-family: var(--hs-font-body) !important;
    font-size: 1rem !important;
    line-height: 1.7 !important;
    color: #475569 !important;
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
    padding: 0 !important;
}

@media (max-width: 767px) {
    .hs-modal-prose p {
        font-size: 0.875rem !important;
        line-height: 1.4 !important;
    }
}

.hs-modal-prose ul {
    list-style: none !important;
    padding-left: 20px !important;
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
}

.hs-modal-prose li {
    font-family: var(--hs-font-body) !important;
    font-size: 1rem !important;
    color: #475569 !important;
    margin-bottom: 0.5rem !important;
    padding: 0 !important;
    padding-left: 27px !important;
    position: relative !important;
    display: block !important;
    line-height: 1.7 !important;
}

@media (max-width: 767px) {
    .hs-modal-prose li {
        font-size: 0.875rem !important;
        line-height: 1.4 !important;
    }
}

.hs-modal-prose li::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 5px !important;
    width: 16px !important;
    height: 16px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23f0b323' d='M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204 0z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    display: block !important;
}

.hs-modal-prose strong {
    font-weight: 700 !important;
    color: var(--hs-dark) !important;
}

/**
 * =============================================================================
 * WEEKLY UPDATE V5: STEP 2 (HTML & CSS STRUCTURE)
 * =============================================================================
 * PURPOSE: Styling and layout for WEEKLY UPDATE V5: STEP 2 (HTML & CSS STRUCTURE)
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */

/**
 * =============================================================================
 * A. SECTION CARDS
 * =============================================================================
 * PURPOSE: Styling and layout for A. SECTION CARDS
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */
.hs-post-content-sandbox .hs-section-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.12); /* Slightly stronger and wider equal glow */
    padding: 2rem 2.5rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
    .hs-post-content-sandbox .hs-section-card {
        padding: 1.5rem;
        border-radius: 8px;
    }
}

/**
 * =============================================================================
 * B. STORY DIVIDER
 * =============================================================================
 * PURPOSE: Styling and layout for B. STORY DIVIDER
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */
.hs-post-content-sandbox .hs-story-divider {
    border: 0 !important;
    height: 1px !important;
    background-color: #eaeaec !important;
    margin: 3rem 0 !important;
    clear: both;
}

/**
 * =============================================================================
 * TYPOGRAPHY (RESTORED FROM PREVIOUS MOCKUPS)
 * =============================================================================
 * PURPOSE: Styling and layout for TYPOGRAPHY (RESTORED FROM PREVIOUS MOCKUPS)
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */

/**
 * =============================================================================
 * 0. MAIN WEEKLY TITLE (H1)
 * =============================================================================
 * PURPOSE: Styling and layout for 0. MAIN WEEKLY TITLE (H1)
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */
.hs-post-content-sandbox h1.hs-weekly-title {
    font-family: var(--hs-font-head, 'Montserrat', sans-serif) !important;
    color: var(--hs-dark, #003057) !important;
    font-size: 2.8rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    margin: 0 auto 3rem auto !important;
    text-align: center;
    letter-spacing: -0.5px;
    text-transform: capitalize;
    /* Style 6: Gold Underline */
    width: fit-content !important;
    border-bottom: 4px solid var(--hs-gold, #f0b323) !important;
    padding-bottom: 8px !important;
}

/* 1. SECTION BREAK HEADINGS (e.g., "---- Announcements ----")
   Matches the old .hs-section-header h2 styling, but adapted to support both h2 and h3 tags. */
.hs-post-content-sandbox :is(h2, h3).hs-section {
    display: flex;
    align-items: center;
    text-align: center;
    font-family: var(--hs-font-head, 'Montserrat', sans-serif) !important;
    color: var(--hs-dark, #003057) !important;
    background-color: transparent !important;
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    margin: 0 0 2rem 0 !important;
    padding: 0 !important;
    border: none !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hs-post-content-sandbox :is(h2, h3).hs-section::before,
.hs-post-content-sandbox :is(h2, h3).hs-section::after {
    content: '';
    flex: 1;
    border-bottom: 2px solid var(--hs-gold, #f0b323);
}

.hs-post-content-sandbox :is(h2, h3).hs-section::before {
    margin-right: 20px;
}

.hs-post-content-sandbox :is(h2, h3).hs-section::after {
    margin-left: 20px;
}

/* 2 & 3. STORY HEADINGS AND SUB-HEADINGS (h2 and h3 inside articles)
   Matches the old .hs-text-content h2 styling with the yellow left border.
   Using > h2 ensures this ONLY styles legacy raw HTML imports, leaving Divi presets 100% untouched.
   Excludes .hs-section so section headers don't inherit the left-border styling. */
.hs-post-content-sandbox .hs-weekly-article > h2:not(.hs-section),
.hs-post-content-sandbox .hs-weekly-article > h3:not(.hs-section),
.hs-post-content-sandbox .hs-section-card > h2:not(.hs-section) {
    font-family: var(--hs-font-head, 'Montserrat', sans-serif) !important;
    color: var(--hs-dark, #003057) !important;
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    line-height: 1.2em !important;
    margin: 2.5rem 0 1.2rem 0 !important;
    padding: 10px 0 10px 15px !important;
    border-left: 6px solid var(--hs-gold, #f0b323) !important;
    display: block !important;
    background-color: transparent !important;
}

/* 4. BODY TEXT */
.hs-post-content-sandbox .hs-weekly-article p {
    font-family: var(--hs-font-body, 'Open Sans', sans-serif);
    color: var(--hs-text-color, #475569);
    margin-top: 0 !important;
    margin-bottom: 0.8rem !important;
    line-height: 1.6 !important;
    font-size: 1rem;
}

.hs-post-content-sandbox .hs-weekly-article p:empty {
    display: none !important;
}

/* Fix bottom spacing in section cards and automate separator lines (Only for Divi built templates) */
.hs-post-content-sandbox .et_pb_group.hs-weekly-article {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important; /* Remove the buggy container border */
}

/* Use an absolutely cleared pseudo-element to guarantee the line sits below Divi's floated grid images */
.hs-post-content-sandbox .et_pb_group.hs-weekly-article::after {
    content: '';
    display: block;
    clear: both;
    width: 100%;
    border-bottom: 1px solid #e2e8f0; /* Soft gray separator */
    margin-top: 40px; /* Space between last image and the line */
    margin-bottom: 40px; /* Space between the line and the next article */
}

/* Hide the separator line on the last article */
.hs-post-content-sandbox .et_pb_group.hs-weekly-article.et-last-child::after {
    display: none !important;
}

.hs-post-content-sandbox .hs-section-card .hs-weekly-article:last-of-type > *:last-child {
    margin-bottom: 0 !important;
}

/**
 * =============================================================================
 * 5. EMBEDS AND VIDEOS
 * =============================================================================
 * PURPOSE: Styling and layout for 5. EMBEDS AND VIDEOS
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */
.hs-post-content-sandbox .embed-container {
    margin: 2.5rem 0 !important;
}

/* 6. LISTS */
.hs-post-content-sandbox .hs-weekly-article ul {
    margin-bottom: 0.8rem !important;
    padding-left: 20px;
}

.hs-post-content-sandbox .hs-weekly-article ul li {
    margin-bottom: 8px !important;
    line-height: 1.6em;
}

/**
 * =============================================================================
 * MOBILE TYPOGRAPHY ADJUSTMENTS
 * =============================================================================
 * PURPOSE: Styling and layout for MOBILE TYPOGRAPHY ADJUSTMENTS
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */
@media (max-width: 768px) {
    .hs-post-content-sandbox h1.hs-weekly-title {
        font-size: 2.2rem !important;
        margin-bottom: 2rem !important;
    }
    .hs-post-content-sandbox :is(h2, h3).hs-section {
        font-size: 1.3rem !important;
    }
    .hs-post-content-sandbox :is(h2, h3).hs-section::before {
        margin-right: 15px;
    }
    .hs-post-content-sandbox :is(h2, h3).hs-section::after {
        margin-left: 15px;
    }
    .hs-post-content-sandbox .hs-weekly-article > h2:not(.hs-section),
    .hs-post-content-sandbox .hs-weekly-article > h3:not(.hs-section),
    .hs-post-content-sandbox .hs-section-card > h2:not(.hs-section) {
        font-size: 1.4rem !important;
    }
    .hs-post-content-sandbox .hs-weekly-article p {
        font-size: 0.95rem;
    }
}

/**
 * =============================================================================
 * IMAGE GALLERIES & COLUMNS
 * =============================================================================
 * PURPOSE: Styling and layout for IMAGE GALLERIES & COLUMNS
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */

.hs-post-content-sandbox .hs-gallery-grid {
    margin: 2rem 0;
    display: grid;
    gap: 12px;
    align-items: start; /* Prevents images from stretching vertically to match adjacent taller images */
}

/* Ensure equal spacing (matching the 12px gap) between consecutive galleries instead of 2rem margin */
.hs-post-content-sandbox .hs-gallery-grid + .hs-gallery-grid {
    margin-top: calc(12px - 2rem) !important;
}

/* Single Image (Full Width) */
.hs-post-content-sandbox .hs-gallery-grid.hs-grid-1 {
    grid-template-columns: 1fr;
}

/* 2 Items */
.hs-post-content-sandbox .hs-gallery-grid.hs-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* 3 Items (e.g., 3 portrait images in a row) */
.hs-post-content-sandbox .hs-gallery-grid.hs-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (min-width: 768px) {
    .hs-post-content-sandbox .hs-gallery-grid.hs-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* On mobile, collapse 4-grids to 2 columns, but leave grid-2 and grid-3 alone so they stay in a single row */
@media (max-width: 768px) {
    .hs-post-content-sandbox .hs-gallery-grid {
        gap: 6px;
    }
    .hs-post-content-sandbox .hs-gallery-grid + .hs-gallery-grid {
        margin-top: calc(6px - 2rem) !important;
    }
    .hs-post-content-sandbox .hs-gallery-grid figure.wp-block-image a {
        border-radius: 6px;
    }
    .hs-post-content-sandbox .hs-gallery-grid.hs-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Image Styling: 15px radius and drop shadow glow */
.hs-post-content-sandbox .hs-gallery-grid figure.wp-block-image {
    margin: 0;
    padding: 0;
}

.hs-post-content-sandbox .hs-gallery-grid figure.wp-block-image a {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    /* Soft glowing drop shadow */
    box-shadow: 0 10px 30px rgba(0, 48, 87, 0.12), 0 4px 10px rgba(0, 0, 0, 0.06); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #f1f5f9;
}

.hs-post-content-sandbox .hs-gallery-grid figure.wp-block-image a:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 48, 87, 0.15), 0 8px 15px rgba(0, 0, 0, 0.08);
}

.hs-post-content-sandbox .hs-gallery-grid figure.wp-block-image img {
    max-width: 100%;
    width: auto;
    height: auto !important; /* Allow image to determine its natural height and override Divi forced heights */
    display: block;
    margin: 0 auto; /* Center image if it is smaller than the grid cell */
    transition: transform 0.4s ease;
}

.hs-post-content-sandbox .hs-gallery-grid figure.wp-block-image a:hover img {
    transform: scale(1.03);
}

/**
 * =============================================================================
 * IFRAMES (E.G., GOOGLE CALENDAR)
 * =============================================================================
 * PURPOSE: Styling and layout for IFRAMES (E.G., GOOGLE CALENDAR)
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */
.hs-post-content-sandbox iframe {
    border-radius: 12px !important;
    margin-bottom: 2.5rem !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    display: block;
}

/**
 * =============================================================================
 * TABLES
 * =============================================================================
 * PURPOSE: Styling and layout for TABLES
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */
.hs-post-content-sandbox table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0 2.5rem 0;
    font-family: var(--hs-font-body, 'Open Sans', sans-serif);
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    overflow: hidden; /* Ensures the rounded corners clip the header background */
}

/* Mobile scroll handling & custom scrollbar hint */
@media (max-width: 768px) {
    .hs-post-content-sandbox table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        border-radius: 8px; /* Need to explicitly keep this on block display */
    }
    
    .hs-post-content-sandbox table::-webkit-scrollbar {
        height: 6px;
    }
    .hs-post-content-sandbox table::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 4px;
    }
    .hs-post-content-sandbox table::-webkit-scrollbar-thumb {
        background: var(--hs-gold, #f0b323); 
        border-radius: 4px;
    }

    /* Keep table text left-aligned on mobile */
    .hs-post-content-sandbox table th,
    .hs-post-content-sandbox table td,
    .hs-post-content-sandbox table thead tr,
    .hs-post-content-sandbox table tr:first-child {
        text-align: left !important;
    }

    /* Add an animated 'Swipe ->' hint inside the table block */
    .hs-post-content-sandbox table::before {
        content: 'Swipe ➔';
        display: block;
        position: sticky;
        right: 0;
        width: fit-content;
        margin-left: auto;
        color: var(--hs-gold, #f0b323);
        font-family: var(--hs-font-head, 'Montserrat', sans-serif);
        font-weight: 800;
        font-size: 0.75rem;
        text-transform: uppercase;
        padding-bottom: 6px;
        animation: hs-swipe-hint 2s infinite ease-in-out;
        z-index: 5;
    }
}

@keyframes hs-swipe-hint {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(6px); }
}

.hs-post-content-sandbox table thead tr,
.hs-post-content-sandbox table tr:first-child {
    background-color: var(--hs-dark, #003057);
    color: #ffffff;
    text-align: center; /* Centered on desktop */
}

.hs-post-content-sandbox table th,
.hs-post-content-sandbox table td {
    padding: 12px 15px;
    text-align: center; /* Centered on desktop */
}

.hs-post-content-sandbox table th,
.hs-post-content-sandbox table tr:first-child td {
    font-family: var(--hs-font-head, 'Montserrat', sans-serif);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid var(--hs-gold, #f0b323);
    color: #ffffff; /* Ensure text is white even if it's a td */
}

.hs-post-content-sandbox table tbody tr {
    border-bottom: 1px solid #eaeaec;
}

.hs-post-content-sandbox table tbody tr:nth-of-type(even) {
    background-color: #f8fafc;
}

.hs-post-content-sandbox table tbody tr:last-of-type {
    border-bottom: 2px solid var(--hs-dark, #003057);
}

/**
 * =============================================================================
 * MAGNIFIC POPUP CUSTOMIZATIONS
 * =============================================================================
 * PURPOSE: Styling and layout for MAGNIFIC POPUP CUSTOMIZATIONS
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */
/* Apply rounded corners and drop shadow to the full-size image in the lightbox */
img.mfp-img {
    border-radius: 10px !important;
    box-shadow: 0 10px 30px rgba(0, 48, 87, 0.12), 0 4px 10px rgba(0, 0, 0, 0.06) !important;
    padding: 0 !important; /* Move padding to the figure container so the shadow tightly hugs the image */
}

.mfp-figure {
    padding: 40px 0 !important;
}

/* Custom Close Button (Matches Mosaic Gallery Pill Style) */
button.mfp-close, div.mfp-close {
    position: fixed !important;
    top: 25px !important;
    right: 25px !important;
    width: auto !important;
    height: auto !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-radius: 30px !important;
    padding: 8px 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15) !important;
    transition: all 0.3s ease !important;
    opacity: 1 !important;
    z-index: 1046 !important;
    line-height: 1 !important;
    font-size: 1rem !important;
}

button.mfp-close:hover, div.mfp-close:hover {
    background-color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2) !important;
}

.hs-modal-close-text {
    font-family: var(--hs-font-head, 'Montserrat', sans-serif);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--hs-dark, #003057);
    letter-spacing: 1px;
}

.hs-modal-close-icon {
    font-size: 1.6rem;
    color: var(--hs-dark, #003057);
    line-height: 1;
    margin-top: -2px; /* optical alignment for times symbol */
}

/* Mobile Close Button */
@media (max-width: 768px) {
    button.mfp-close, div.mfp-close {
        top: 15px !important;
        right: 15px !important;
        padding: 6px 14px !important;
    }
    
    .hs-modal-close-text {
        display: none !important; /* Hide 'CLOSE' text on mobile, just show the X */
    }
    
    .hs-modal-close-icon {
        margin-top: 0;
    }
}

/**
 * =============================================================================
 * DIVI THEME BUILDER FIXES (INDIVIDUAL POSTS & PAGE BUILDER PADDING)
 * =============================================================================
 * PURPOSE: Styling and layout for DIVI THEME BUILDER FIXES (INDIVIDUAL POSTS & PAGE BUILDER PADDING)
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */
/* Apply section card styling to individual Posts when viewed dynamically */
.single-post .hs-post-content-sandbox .hs-weekly-article {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.12);
    padding: 2rem 2.5rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
    .single-post .hs-post-content-sandbox .hs-weekly-article {
        padding: 1.5rem;
        border-radius: 8px;
    }
}

/* Strip Divi's injected Section and Row padding from Theme Builder layouts */
.et_pb_post_content .et-l--post .et_pb_section,
.et_pb_post_content .et-l--post .et_pb_row,
.et_pb_post_content .et-l--post .et_pb_module {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Force Divi Image Modules inside the Theme Builder to stretch full width automatically */
.et_pb_image[class*="_tb_body"],
.et_pb_image[class*="_tb_body"] .et_pb_image_wrap,
.et_pb_image[class*="_tb_body"] img {
    width: 100% !important;
    max-width: 100% !important;
}

/* If a fixed height (like 70vh) is applied in Divi, ensure the image fills it and crops cleanly */
.et_pb_image[class*="_tb_body"] .et_pb_image_wrap,
.et_pb_image[class*="_tb_body"] img {
    height: 100%;
    object-fit: cover;
}

.hs-post-content-sandbox .et_pb_text_inner {
    padding: 0 !important;
    margin: 0 !important;
}

/**
 * =============================================================================
 * ALUMNI FORM (#11) - STRETCHED & ALIGNED INLINE LAYOUT
 * =============================================================================
 * PURPOSE: Styling and layout for ALUMNI FORM (#11) - STRETCHED & ALIGNED INLINE LAYOUT
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */

/* 1. Ensure inputs have a strict, consistent height and NO invisible margins */
.fluent_form_11 .ff-el-form-control {
    height: 46px !important;
    box-sizing: border-box !important;
    margin-bottom: 0 !important; /* Kills hidden Divi margins */
    padding-bottom: 0 !important;
}

/* 2. Kill all hidden bottom spacing from Fluent Forms containers so alignment is perfect */
.fluent_form_11 .ff-el-group,
.fluent_form_11 .ff-t-container,
.fluent_form_11 .ff-el-input--content,
.fluent_form_11 .ff_submit_btn_wrapper {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* 3. Add 1rem space below the entire row of fields & button */
.fluent_form_11 fieldset {
    margin-bottom: 1rem !important; 
}

/* 4. Desktop: Stretched Layout */
@media (min-width: 981px) {
    
    /* Wrap the 3 inputs and the submit button in a single row */
    .fluent_form_11 fieldset {
        display: flex !important;
        align-items: flex-end !important; /* Anchors button exactly to the bottom of inputs */
        gap: 15px !important;
        width: 100% !important;
    }
    
    /* The 3 inputs container stretches to fill all available space */
    .fluent_form_11 .ff-t-container {
        display: flex !important;
        flex: 1 1 auto !important; /* Grows to fill left side */
        gap: 15px !important;
    }
    
    /* Ensure the 3 input columns share that stretched space equally */
    .fluent_form_11 .ff-t-cell {
        flex: 1 !important;
        padding: 0 !important;
        max-width: none !important; 
    }
    
    /* Button wrapper stays exactly the width of the button, anchored to the right */
    .fluent_form_11 .ff_submit_btn_wrapper {
        flex: 0 0 auto !important; /* Won't grow or shrink */
        margin-top: 0 !important;
    }
    
    /* Button styles */
    .fluent_form_11 .ff-btn-submit {
        height: 46px !important; /* Matches input height exactly */
        width: auto !important; /* Sizes itself to the text */
        padding: 0 30px !important; /* Keeps its original button padding */
        margin: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        white-space: nowrap !important; /* Prevents button text from wrapping */
    }
}

/* 5. Mobile & Tablet: Stack fields neatly */
@media (max-width: 980px) {
    .fluent_form_11 .ff-t-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        margin-bottom: 15px !important; /* Add space back between inputs and button on mobile */
    }
    
    .fluent_form_11 .ff-t-cell {
        flex-basis: auto !important;
        width: 100% !important;
        padding: 0 !important;
    }
    
    .fluent_form_11 .ff-btn-submit {
        width: 100% !important;
        height: 46px !important;
    }
}

/* Remove border from the main fluentform wrapper */
.hs-section-alumni-join .fluentform.fluentform_wrapper_11 {
    border: none !important;
    box-shadow: none !important; 
}

/* Center text, apply brand gold color, and remove border from the success/error messages */
.hs-section-alumni-join .ff-message-success,
.hs-section-alumni-join .ff-errors-in-stack {
    text-align: center !important;
    color: #D4AF37 !important; /* Replace #D4AF37 with your exact brand gold hex code */
    border: none !important; 
}

/* All styles are strictly locked to #hs-eca-directory to protect your Divi site */
#hs-eca-directory {
    --bg-color: transparent;
    --text-main: #475569;
    --primary: #003057;
    --primary-hover: #002244;
    --brand-yellow: #f0b323;
    --border-color: #e2e8f0;
    --card-bg: #ffffff;
    --border-radius: 12px;
    --shadow-sm: 0 4px 18px -6px rgba(0, 0, 0, 0.25);

    font-family: 'Open Sans', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.7em;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    box-sizing: border-box !important;
}

#hs-eca-directory * {
    box-sizing: border-box;
}

@media (max-width: 768px) {
    #hs-eca-directory {
        font-size: 0.875rem;
        line-height: 1.4em;
    }
}

#hs-eca-directory .controls {
    display: flex;
    gap: 1rem;
    margin: 0 0 2rem 0; /* Keep only bottom gap between controls and table */
    flex-wrap: wrap;
    background: var(--primary); /* Changed to #003057 */
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

#hs-eca-directory .control-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 200px;
}

#hs-eca-directory .control-group label {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff; /* Make labels white on the dark blue background */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#hs-eca-directory input, 
#hs-eca-directory select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #fff;
    color: var(--text-main);
}

#hs-eca-directory select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23475569" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 40px;
}

#hs-eca-directory input:focus, 
#hs-eca-directory select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 48, 87, 0.2);
}

#hs-eca-directory .table-wrapper {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
    margin: 0 0 1.5rem 0; /* Keep only bottom gap between table and pagination */
    padding: 0;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
}

#hs-eca-directory table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

#hs-eca-directory th, 
#hs-eca-directory td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}

@media (min-width: 769px) {
    #hs-eca-directory tbody td {
        height: 135px;
    }
}

#hs-eca-directory th {
    background: #f8fafc;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    position: sticky;
    top: 0;
    z-index: 10;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
    padding: 0.75rem 1.5rem;
}

#hs-eca-directory th:hover {
    background: #e2e8f0;
}

#hs-eca-directory .th-content {
    display: flex;
    align-items: center;
    gap: 6px;
}

#hs-eca-directory .sort-icon {
    font-size: 0.9em;
    color: var(--primary);
    line-height: 1;
    display: flex;
    align-items: center;
}

#hs-eca-directory tr:hover td {
    background: #f1f5f9;
}

#hs-eca-directory .col-name { width: 25%; font-weight: 700; color: #1a202c; }
#hs-eca-directory .col-category { width: 10%; }
#hs-eca-directory .col-ages { width: 15%; color: var(--text-main); font-weight: 600; }
#hs-eca-directory .col-desc { width: 50%; color: var(--text-main); }

#hs-eca-directory .desc-clamped {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

#hs-eca-directory .desc-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#hs-eca-directory .read-more-btn {
    background-color: var(--brand-yellow);
    color: var(--primary);
    border: none;
    border-radius: 6px;
    padding: 7px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 0.5rem;
    text-decoration: none;
    transition: opacity 0.2s;
}

#hs-eca-directory .read-more-btn:hover {
    opacity: 0.85;
}

#hs-eca-directory .tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
#hs-eca-directory .tag-Club { background: #e0e7ff; color: #4338ca; }
#hs-eca-directory .tag-Sport { background: #dcfce7; color: #15803d; }
#hs-eca-directory .tag-VAPP { background: #fef3c7; color: #b45309; }
#hs-eca-directory .tag-Fee { background: #fce7f3; color: #be185d; }

#hs-eca-directory .no-results {
    text-align: center;
    padding: 3rem;
    color: var(--text-main);
    font-style: italic;
}

@media (max-width: 768px) {
    #hs-eca-directory table, 
    #hs-eca-directory tbody, 
    #hs-eca-directory th, 
    #hs-eca-directory td, 
    #hs-eca-directory tr {
        display: block;
    }
    
    #hs-eca-directory thead {
        display: none;
    }
    
    #hs-eca-directory tbody tr {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-areas: 
            "name name"
            "category ages"
            "desc desc";
        padding: 1.25rem 1rem;
        border-bottom: 1px solid var(--border-color);
        gap: 0.25rem;
    }
    
    #hs-eca-directory tbody tr:hover td {
        background: transparent;
    }

    #hs-eca-directory tbody td {
        padding: 0;
        border: none;
    }
    
    #hs-eca-directory .col-name { 
        grid-area: name; 
        width: 100%; 
        margin-bottom: 0.5rem; 
        font-size: 1.1rem;
    }
    #hs-eca-directory .col-category { 
        grid-area: category; 
        width: 100%; 
        align-self: center;
    }
    #hs-eca-directory .col-ages { 
        grid-area: ages; 
        width: 100%; 
        align-self: center; 
        text-align: right; 
        font-size: 0.85rem;
    }
    #hs-eca-directory .col-desc { 
        grid-area: desc; 
        width: 100%; 
        margin-top: 0.75rem; 
        padding-top: 0.75rem; 
        border-top: 1px solid #f1f5f9; 
    }
}

#hs-eca-directory .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
}

#hs-eca-directory .page-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    cursor: pointer;
    border-radius: 6px;
    font-family: inherit;
    color: var(--text-main);
    font-weight: 600;
    transition: all 0.2s;
}

#hs-eca-directory .page-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

#hs-eca-directory .page-btn:hover:not(.active) {
    background: #f1f5f9;
}

#hs-eca-directory .page-dots {
    color: var(--text-main);
    font-weight: 600;
}

/* * HeadStart Language Switcher CSS 
 * Paste this into Divi > Theme Options > Custom CSS */

.headstart-language-switcher { 
    display: flex; 
    gap: 3px; 
    align-items: flex-start; 
    margin-left: 15px;
    padding-left: 15px;
    position: relative;
}

.headstart-language-switcher::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 15px;
    background-color: #475569; /* subtle grey line */
}

.hs-lang-flag {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    position: relative;
}

.hs-lang-flag::after {
    content: "";
    position: absolute;
    bottom: -11px; 
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 7px solid transparent; 
    transition: border-bottom-color 0.2s ease;
}

.hs-lang-flag:hover::after {
    border-bottom-color: #ffffff; 
}

.hs-lang-flag.hs-current-lang::after,
.hs-lang-flag.hs-current-lang:hover::after {
    border-bottom-color: var(--hs-gold, #d4af37);
}

/* * HeadStart Staff Directory CSS
============================================================================= 

/* Staff Sidebar Widget */
.hs-staff-widget {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 48, 87, 0.08);
    width: 100%;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 30px;
}

.hs-staff-widget:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 48, 87, 0.12);
}

.hs-staff-widget-link {
    display: block;
    text-decoration: none !important;
    color: inherit !important;
    padding: 24px;
}

.hs-staff-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.hs-staff-widget-title {
    font-size: 1.15rem;
    font-weight: 700;
    font-family: var(--hs-font-head, 'Montserrat', sans-serif);
    color: #003057;
    margin: 0;
    line-height: 1.2;
}

.hs-staff-widget-icon {
    color: #ffffff;
    background: #003057;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hs-staff-widget-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.hs-staff-widget-desc {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.5;
}

.hs-staff-avatars {
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: nowrap;
    justify-content: space-between;
    height: auto;
    padding: 5px 0;
    margin: -5px 0;
    overflow: hidden;
}

.hs-staff-avatar {
    flex: 1 1 0;
    min-width: 40px;
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: 50%;
    border: 3px solid #ffffff;
    margin-right: -16px;
    background-color: #e0e0e0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    object-fit: cover;
    position: relative;
    transition: transform 0.2s ease;
}

.hs-staff-avatar:hover {
    transform: translateY(-4px) scale(1.1);
    z-index: 1000 !important;
}

.hs-staff-more {
    flex: 1 1 0;
    min-width: 40px;
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: 50%;
    border: 3px solid #ffffff;
    background-color: #f0b323;
    color: #003057;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    position: relative;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.hs-staff-footer {
    margin-top: 20px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #003057;
}

.hs-staff-footer svg {
    width: 16px;
    height: 16px;
    margin-left: 6px;
    transition: transform 0.2s ease;
    fill: currentColor;
}

.hs-staff-widget:hover .hs-staff-footer svg {
    transform: translateX(4px);
}

 * Scoped cleanly inside .hs-staff-directory */

.hs-staff-directory { /**
 * =============================================================================
 * [STAFF DIRECTORY MOCKUPS CSS]
 * =============================================================================
 * PURPOSE: Styling and layout for [STAFF DIRECTORY MOCKUPS CSS]
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */ }
/* Divi Section override to ensure it stays below the mobile menu */
.hs-directory-section,
.hs-directory-section .et_pb_row,
.hs-directory-section .et_pb_column,
.hs-directory-section .et_pb_code,
.hs-directory-section .et_pb_module {
  position: static !important;
  z-index: auto !important;
}

.hs-staff-directory {
  font-family: var(--hs-font-body);
  color: var(--hs-dark);
  box-sizing: border-box;
  position: relative;
}
.hs-staff-directory .hs-section-staff-directory {
  font-family: var(--hs-font-body, "Open Sans", sans-serif);
  color: #334155;
  padding: 2rem 0;
}
.hs-staff-directory {
  /* --- Headers & Filters --- */
}
.hs-staff-directory .hs-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center !important;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e2e8f0;
}
.hs-staff-directory .hs-section-title {
  font-family: var(--hs-font-head, "Montserrat", sans-serif);
  color: var(--hs-dark, #003057);
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}
.hs-staff-directory .hs-filter-controls {
  display: flex;
  align-items: center !important;
  gap: 1rem;
  flex-wrap: wrap;
}
.hs-staff-directory .hs-header-divider {
  width: 2px;
  height: 30px;
  background-color: #cbd5e1;
}
.hs-staff-directory {
  /* Search */
}
.hs-staff-directory .hs-search-container {
  position: relative;
}
.hs-staff-directory .hs-search-container i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
}
.hs-staff-directory .hs-search-input {
  padding: 8px 12px 8px 35px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-family: var(--hs-font-body);
  font-size: 0.95rem;
  width: 200px;
}
.hs-staff-directory .hs-search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-top: none;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 10;
  max-height: 250px;
  overflow-y: auto;
  display: none;
}
.hs-staff-directory .hs-search-suggestion-item {
  padding: 8px 12px;
  font-size: 0.9rem;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
}
.hs-staff-directory .hs-search-suggestion-category {
  background: #f8fafc;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #e2e8f0;
}
.hs-staff-directory .hs-search-suggestion-item:last-child {
  border-bottom: none;
}
.hs-staff-directory .hs-search-suggestion-item:hover,
.hs-staff-directory .hs-search-suggestion-sub-item:hover {
  background-color: #f8fafc;
  color: var(--hs-dark);
}
.hs-staff-directory .hs-search-suggestion-sub-header {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 8px 12px 4px 12px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px dashed #e2e8f0;
  margin-bottom: 4px;
}
.hs-staff-directory .hs-search-suggestion-sub-item {
  padding: 6px 12px;
  font-size: 0.9rem;
  cursor: pointer;
  color: #475569;
  display: flex;
  align-items: center !important;
  gap: 8px;
}
.hs-staff-directory .hs-dept-primary {
  border-bottom: none;
  font-weight: 600;
}
.hs-staff-directory .hs-search-suggestions strong {
  color: var(--hs-gold);
  font-weight: 800;
}
.hs-staff-directory {
  /* Dropdown */
}
.hs-staff-directory .hs-mobile-filter-container {
  display: flex;
  align-items: center !important;
  gap: 0.5rem;
}
.hs-staff-directory .hs-filter-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #475569;
}
.hs-staff-directory .hs-mobile-filter {
  padding: 8px 30px 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-family: var(--hs-font-body);
  font-size: 0.95rem;
  background-color: #fff;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23003057%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 10px top 50%;
  background-size: 10px auto;
}
.hs-staff-directory {
  /* Campus Radio Buttons */
}
.hs-staff-directory .hs-campus-filter {
  display: flex;
  gap: 0;
  border: 1px solid var(--hs-dark, #003057);
  border-radius: 4px;
  overflow: hidden;
}
.hs-staff-directory .hs-campus-filter input[type=radio] {
  display: none;
}
.hs-staff-directory .hs-btn-radio {
  padding: 8px 16px;
  background-color: #fff;
  color: var(--hs-dark, #003057);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border-right: 1px solid var(--hs-dark, #003057);
}
.hs-staff-directory .hs-campus-filter label:last-child {
  border-right: none;
}
.hs-staff-directory .hs-campus-filter input[type=radio]:checked + label {
  background-color: var(--hs-dark, #003057);
  color: #fff;
}
@media (max-width: 900px) {
  .hs-staff-directory .hs-section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .hs-staff-directory .hs-header-divider {
    display: none;
  }
  .hs-staff-directory .hs-filter-controls {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
  .hs-staff-directory .hs-search-container, .hs-staff-directory .hs-search-input, .hs-staff-directory .hs-campus-filter {
    width: 100%;
  }
  .hs-staff-directory .hs-btn-radio {
    flex: 1;
    text-align: center;
    font-size: 0.8rem;
    padding: 8px 4px;
  }
}
.hs-staff-directory {
  /* --- Grids --- */
}
.hs-staff-directory .hs-staff-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hs-staff-directory .hs-section-standard {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.hs-staff-directory .hs-section-standard .hs-staff-name {
  font-size: 1rem;
}
.hs-staff-directory .hs-section-exec {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
}
.hs-staff-directory .hs-section-grouped {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-bottom: 2rem;
}
.hs-staff-directory .hs-section-grouped .hs-staff-name {
  font-size: 1rem;
}
.hs-staff-directory .hs-subgroup-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center !important;
  width: 100%;
}
.hs-staff-directory .hs-subgroup-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  width: 100%;
}
.hs-staff-directory .hs-section-senior {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
}
@media (max-width: 1200px) {
  .hs-staff-directory .hs-section-standard {
    grid-template-columns: repeat(5, 1fr);
  }
}
@media (max-width: 1024px) {
  .hs-staff-directory .hs-section-standard {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 768px) {
  .hs-staff-directory .hs-section-standard {
    grid-template-columns: repeat(2, 1fr);
  }
}
.hs-staff-directory {
  /* --- Grid Dividers & Prompts --- */
}
.hs-staff-directory .hs-grid-header {
  grid-column: 1/-1;
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  margin: 3rem 0 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e2e8f0;
  text-align: center;
}
.hs-staff-directory .hs-grid-subheader {
  font-size: 1.5rem;
  font-weight: 600;
  color: #475569;
  margin: 2rem 0 1rem;
  text-align: center;
}
.hs-staff-directory .hs-grid-mini-header {
  font-size: 1.25rem;
  font-weight: 600;
  color: #64748b;
  margin: 1.5rem 0 0.5rem;
  text-align: center;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed #cbd5e1;
  width: 100%;
}
.hs-staff-directory .hs-prompt {
  grid-column: 1/-1;
  text-align: center;
  font-size: 1.1rem;
  color: #64748b;
  padding: 3rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px dashed #cbd5e1;
  margin-top: 2rem;
}
.hs-staff-directory {
  /* --- Standard Card Base Styles (Uniform Sizing) --- */
}
.hs-staff-directory .hs-staff-card {
  background: #fff;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  width: 14%;
  min-width: 140px;
  max-width: 180px;
}
.hs-staff-directory .hs-staff-card.hs-has-profile {
  cursor: pointer;
}
.hs-staff-directory .hs-staff-card.hs-has-profile:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}
.hs-staff-directory {
  /* Image Wrap */
}
.hs-staff-directory .hs-staff-img-wrap {
  position: relative;
  aspect-ratio: 1/1;
  padding: 12px 12px 0 12px;
  overflow: hidden;
  background: transparent;
}
.hs-staff-directory .hs-staff-img-wrap img {
  position: absolute;
  top: 12px;
  left: 12px;
  width: calc(100% - 24px);
  height: calc(100% - 12px);
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease;
}
.hs-staff-directory .hs-staff-card:hover img {
  /* No filter change needed on hover */
}
.hs-staff-directory {
  /* Job Title (moved under name) */
}
.hs-staff-directory .hs-staff-title-wrap {
  height: 32px;
  display: flex;
  align-items: center !important;
  justify-content: center;
  width: 100%;
}
.hs-staff-directory .hs-badge-title {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  text-align: center;
  margin: 0;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hs-staff-directory .hs-badge-title.hs-title-sm {
  font-size: 9px;
  -webkit-line-clamp: 3;
}
.hs-staff-directory {
  /* Content Body */
}
.hs-staff-directory .hs-staff-body {
  min-height: 90px;
  padding: 12px 8px;
  text-align: center;
  background: #fff;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.hs-staff-directory .hs-staff-name-wrap {
  height: 44px; /* Fixed height for max 2-3 lines */
  display: flex;
  align-items: center !important;
  justify-content: center;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 6px;
  width: 100%;
}
.hs-staff-directory .hs-staff-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.hs-staff-directory .hs-staff-name.hs-name-sm {
  font-size: 0.75rem;
  line-height: 1.1;
  -webkit-line-clamp: 3;
}
.hs-staff-directory .hs-staff-name.hs-name-xsm {
  font-size: 0.7rem;
  line-height: 1.1;
  -webkit-line-clamp: 3;
}
.hs-staff-directory .hs-staff-nickname {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 4px;
  font-style: italic;
}
.hs-staff-directory {
  /* Read Profile Hover Overlay */
}
.hs-staff-directory .hs-hover-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  width: calc(100% - 24px);
  height: calc(100% - 12px);
  background: transparent;
  border-radius: 16px;
  display: flex;
  align-items: center !important;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
}
.hs-staff-directory .hs-staff-card.hs-has-profile:hover .hs-hover-overlay {
  opacity: 1;
}
.hs-staff-directory .hs-staff-card img {
  transition: filter 0.3s ease;
}
.hs-staff-directory .hs-staff-card.hs-has-profile:hover img {
  filter: grayscale(100%);
}
.hs-staff-directory .hs-btn-view {
  display: inline-block !important;
  background: #fff;
  color: #213a70;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  transform: translateY(10px);
  transition: transform 0.3s ease;
  white-space: nowrap !important;
  text-align: center !important;
}
.hs-staff-directory .hs-staff-card:hover .hs-btn-view {
  transform: translateY(0);
}
.hs-staff-directory .hs-staff-meta {
  font-size: 0.75rem;
  color: #64748b;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hs-staff-directory .hs-staff-meta i {
  width: 14px;
  text-align: center;
  margin-right: 4px;
}
.hs-staff-directory {
  /* --- Border & Badge Variations --- */
  /* Executives / Leadership (Gold) */
}
.hs-staff-directory .hs-card-exec {
  border-color: var(--hs-gold);
}
.hs-staff-directory {
  /* Managers / Head of Dept (Brand Blue) */
}
.hs-staff-directory .hs-card-manager {
  border-color: #fff;
}
.hs-staff-directory {
  /* Teachers (Brand Blue Border) */
}
.hs-staff-directory .hs-card-teacher {
  border-color: #fff;
}
.hs-staff-directory {
  /* Assistants / Support Staff (Grey Border) */
}
.hs-staff-directory .hs-card-support {
  border-color: #fff;
}
.hs-staff-directory {
  /* --- Modal Styles --- */
}
.hs-staff-directory .hs-staff-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center !important;
  z-index: 2147483647 !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.hs-staff-directory .hs-staff-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.hs-staff-directory .hs-staff-modal {
  background: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: row;
  align-items: stretch;
}
.hs-staff-directory .hs-staff-modal-overlay.active .hs-staff-modal {
  transform: translateY(0);
}
.hs-staff-directory .hs-modal-close {
  position: absolute !important;
  top: 24px !important;
  right: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  background-color: rgba(240, 179, 35, 0.95) !important;
  color: #003057 !important;
  border: 4px solid rgba(255, 255, 255, 0.3) !important;
  background-clip: padding-box !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  padding: 6px 16px 6px 20px !important;
  border-radius: 50px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25) !important;
  cursor: pointer !important;
  z-index: 100000000 !important;
  opacity: 1 !important;
  width: max-content !important;
  height: auto !important;
  transition: all 0.3s ease !important;
  line-height: 1 !important;
}
.hs-staff-directory .hs-modal-close:hover {
  background-color: #fff !important;
  color: #003057 !important;
  transform: scale(1.05) !important;
}
.hs-staff-directory .hs-modal-close-text {
  font-family: var(--hs-font-head, 'Montserrat', sans-serif);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--hs-dark, #003057);
  letter-spacing: 1px;
}
.hs-staff-directory .hs-modal-close-icon {
  font-size: 1.6rem;
  color: var(--hs-dark, #003057) !important;
  line-height: 1;
  margin-top: -2px;
  display: inline-block !important;
}
.hs-staff-directory {
  /* Square Image Column */
}
.hs-staff-directory .hs-modal-img-col {
  width: 45%;
  background: #fff;
  position: relative;
  display: flex;
  align-items: flex-start;
  padding: 2.5rem 0 2.5rem 2.5rem; /* Align top padding with content col, pad left */
}
.hs-staff-directory .hs-modal-img-col img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  filter: grayscale(0%) !important;
}
.hs-staff-directory .hs-modal-content-col {
  width: 55%;
  padding: 2.5rem 2rem;
}
.hs-staff-directory .hs-staff-name {
  font-family: var(--hs-font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--hs-dark);
  margin: 0 0 5px 0;
  line-height: 1.2;
}
.hs-staff-directory .hs-staff-title {
  font-size: 0.75rem;
  color: var(--hs-gold);
  font-weight: 600;
  margin: 0 0 16px 0 !important;
  line-height: 1.4;
}
.hs-staff-directory .hs-modal-meta-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}
.hs-staff-directory .hs-modal-meta-item {
  display: flex;
  align-items: center !important;
  gap: 12px;
  font-size: 0.9rem;
  color: #475569;
}
.hs-staff-directory .hs-modal-meta-item svg.hs-modal-svg-icon {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: var(--hs-gold, #d4af37) !important;
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0;
}
.hs-staff-directory .hs-modal-meta-item span {
  flex: 1;
}
.hs-staff-directory .hs-modal-blurb {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #475569;
}
@media (max-width: 768px) {
  .hs-staff-directory .hs-modal-close {
    top: 15px !important;
    right: 15px !important;
    padding: 0 !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
  }
  .hs-staff-directory .hs-modal-close-text {
    display: none !important;
  }
  .hs-staff-directory .hs-modal-close-icon {
    margin-top: 0;
  }
  .hs-staff-directory .hs-staff-modal {
    flex-direction: column;
    max-width: 500px;
  }
  .hs-staff-directory .hs-modal-img-col {
    width: 100%;
    padding: 1.5rem 1.5rem 0 1.5rem; /* Even padding on mobile, no bottom pad so it flows into text */
    box-sizing: border-box;
  }
  .hs-staff-directory .hs-modal-img-col img {
    aspect-ratio: 1/1;
  }
  .hs-staff-directory .hs-modal-content-col {
    width: 100%;
    padding: 1.5rem;
    box-sizing: border-box;
  }
  .hs-staff-directory .hs-modal-meta-row {
    flex-direction: column;
    gap: 0.5rem;
  }
}
.hs-staff-directory {
  /* Campus Filters */
}
.hs-staff-directory .hs-campus-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 20px 0 30px;
}
.hs-staff-directory .hs-campus-btn {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid #ccc;
  background-color: #fff;
  color: #555;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.hs-staff-directory .hs-campus-btn:hover {
  background-color: #f0f0f0;
  border-color: #bbb;
}
.hs-staff-directory .hs-campus-btn.active {
  background-color: #213a70; /* HeadStart blue */
  color: #fff;
  border-color: #213a70;
}
.hs-staff-directory {
  /* Center staff name and meta */
}
.hs-staff-directory .hs-staff-name {
  text-align: center;
}
.hs-staff-directory .hs-staff-meta {
  justify-content: center;
}
.hs-staff-directory {
  /* Campus Chip on Image */
}
.hs-staff-directory .hs-campus-chip {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  color: #213a70;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 4;
  display: flex;
  align-items: center !important;
  justify-content: center;
  white-space: nowrap;
}
.hs-staff-directory {
  /* --- Accordions --- */
}
.hs-staff-directory .hs-accordion {
  width: 100%;
  margin-bottom: 8px; /* Reduced to half of toolbar margin */
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}
.hs-staff-directory .hs-accordion-header {
  padding: 1rem 2rem; /* Reduced height from 1.5rem to 1rem vertical padding */
  background: #f8fafc;
  display: flex;
  justify-content: space-between;
  align-items: center !important;
  cursor: pointer;
  transition: background 0.2s;
}
.hs-staff-directory .hs-accordion-header:hover {
  background: #f1f5f9;
}
.hs-staff-directory .hs-accordion-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
}
.hs-staff-directory .hs-accordion-icon {
  font-size: 1.25rem;
  color: #64748b;
  transition: transform 0.3s ease;
}
.hs-staff-directory .hs-accordion-content {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem; /* Large gap between clusters */
  padding: 2rem;
  justify-content: center;
  align-items: stretch;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.4s ease;
}
.hs-staff-directory .hs-accordion.open .hs-accordion-content {
  max-height: 10000px;
  opacity: 1;
}
.hs-staff-directory {
  /* --- Proximity Clusters (Replaces Team Pods) --- */
}
.hs-staff-directory .hs-cluster {
  display: flex;
  flex-direction: column;
  align-items: center !important;
  gap: 0;
  width: max-content;
  max-width: 100%; /* Allow natural flow */
  flex-shrink: 0;
}
.hs-staff-directory .hs-cluster-fullrow {
  width: 100%;
}
.hs-staff-directory .hs-cluster-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem; /* TIGHT proximity spacing inside the cluster */
  justify-content: center;
  align-items: stretch;
  flex-grow: 1;
}
.hs-staff-directory .hs-cluster-chip {
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}
.hs-staff-directory .hs-tier-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
  justify-content: center;
  align-items: stretch;
  margin-bottom: 3rem;
}
.hs-staff-directory {
  /* --- Responsive 7-Column constraints via clamp --- */
}
.hs-staff-directory .hs-staff-card {
  background: #fff;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  /* Scale width strictly between 115px and 155px to fit more cards on the Leadership row */
  width: clamp(115px, 9.5vw, 155px);
  flex-shrink: 0;
}
.hs-staff-directory .hs-email-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #fff;
  color: var(--hs-gold, #d4af37);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center !important;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 2;
  transition: transform 0.2s, background 0.2s;
  cursor: pointer;
  font-size: 0.85rem;
}
.hs-staff-directory .hs-email-icon:hover {
  transform: scale(1.1);
  background: var(--hs-gold, #d4af37);
  color: #fff;
}
.hs-staff-directory {
  /* Hide old header divider / filters if any are left */
}
.hs-staff-directory .hs-header-divider {
  display: none;
}
.hs-staff-directory {
  /* --- Tier Rows for Leadership --- */
}
.hs-staff-directory .hs-tier-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  width: 100%;
  justify-content: center;
  align-items: stretch;
  margin-bottom: 2rem;
}
.hs-staff-directory .hs-tier-row:last-child {
  margin-bottom: 0;
}
.hs-staff-directory .hs-tier-title {
  width: 100%;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: -0.5rem;
  margin-top: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.hs-staff-directory .hs-tier-row:first-of-type .hs-tier-title {
  margin-top: 0;
}
.hs-staff-directory .hs-class-title {
  margin-bottom: 0.5rem;
  margin-top: 2rem;
}
.hs-staff-directory .hs-accordion-content .hs-class-title:first-child {
  margin-top: 0;
}
.hs-staff-directory .hs-leadership-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  padding: 2rem 0;
  justify-content: center;
  align-items: stretch;
  width: 100%;
}
.hs-staff-directory {
  /**
 * =============================================================================
 * NEW HEADER (OPTION 3)
 * =============================================================================
 * PURPOSE: Styling and layout for NEW HEADER (OPTION 3)
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */
}
.hs-staff-directory .hs-header-toolbar {
  background: var(--hs-dark, #003057);
  padding: 20px 30px;
  border-radius: 12px;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center !important;
  box-shadow: 0 10px 20px rgba(0, 48, 87, 0.15);
  width: 100%;
  box-sizing: border-box;
}
.hs-staff-directory .opt-3-tabs {
  display: flex;
  gap: 25px;
}
.hs-staff-directory .opt-3-tab-container {
  position: relative;
}
.hs-staff-directory .opt-3-tab-container::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 20px;
  /* invisible bridge to prevent hover jiggle */
}
.hs-staff-directory .opt-3-tab {
  color: #94a3b8;
  font-weight: 600;
  padding: 8px 0;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
  display: flex;
  align-items: center !important;
  gap: 8px;
}
.hs-staff-directory .opt-3-tab:hover {
  color: #fff;
}
.hs-staff-directory .opt-3-tab.active {
  color: #fff;
}
.hs-staff-directory .opt-3-tab.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--hs-gold, #d4af37);
  border-radius: 3px;
}
.hs-staff-directory .opt-3-tab i {
  font-size: 0.8rem;
  transition: transform 0.2s;
}
.hs-staff-directory .opt-3-dropdown-menu {
  position: absolute;
  top: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #fff;
  min-width: 240px;
  border-radius: 8px;
  box-shadow: 0 15px 35px rgba(0, 48, 87, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 40 !important;
  border-top: 4px solid var(--hs-gold, #d4af37);
  padding: 10px 0;
}
.hs-staff-directory .opt-3-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 8px 8px 8px;
  border-style: solid;
  border-color: transparent transparent var(--hs-gold, #d4af37) transparent;
}
.hs-staff-directory .opt-3-tab-container:hover .opt-3-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.hs-staff-directory .opt-3-tab-container:hover .opt-3-tab i {
  transform: rotate(180deg);
}
.hs-staff-directory .dropdown-item {
  display: block;
  padding: 10px 16px;
  border-left: 4px solid transparent;
  color: var(--hs-dark, #003057);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer;
}
.hs-staff-directory .dropdown-item:hover {
  background: #f1f5f9;
  border-left-color: var(--hs-gold, #d4af37);
}
.hs-staff-directory .opt-3-search {
  position: relative;
}
.hs-staff-directory .opt-3-search input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 15px 10px 40px;
  border-radius: 6px;
  color: #fff;
  width: 250px;
  outline: none;
  transition: all 0.2s;
  font-family: inherit;
}
.hs-staff-directory .opt-3-search input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.hs-staff-directory .opt-3-search input:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--hs-gold, #d4af37);
  width: 300px;
}
.hs-staff-directory .opt-3-search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
}
.hs-staff-directory {
  /**
 * =============================================================================
 * NEW ACCORDION (DESIGN 4)
 * =============================================================================
 * PURPOSE: Styling and layout for NEW ACCORDION (DESIGN 4)
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */
}
.hs-staff-directory .accordion-wrapper {
  margin-bottom: 8px; /* Reduced gap between accordions */
  width: 100%;
  border-radius: 0;
}
.hs-staff-directory .acc-header {
  background: var(--hs-dark, #003057);
  border-radius: 0;
  padding: 12px 30px; /* Reduced height */
  display: flex;
  justify-content: space-between;
  align-items: center !important;
  cursor: pointer;
  border-left: 3px solid var(--hs-gold, #d4af37);
  transition: all 0.3s ease;
}
.hs-staff-directory .acc-header:hover {
  background: #002244;
  padding-left: 40px;
}
.hs-staff-directory .acc-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
  font-family: var(--hs-font-body, "Outfit", sans-serif);
}
.hs-staff-directory .acc-icon {
  color: var(--hs-gold, #d4af37);
  font-size: 1.4rem;
  transition: transform 0.3s ease;
}
.hs-staff-directory .accordion-wrapper.open .acc-icon {
  transform: rotate(180deg);
}
.hs-staff-directory .accordion-wrapper.open .acc-header {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.hs-staff-directory .accordion-content {
  display: none;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-top: none;
  border-left: 3px solid var(--hs-gold, #d4af37);
  border-radius: 0;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  /* FIX: Make it flex wrap so clusters sit side-by-side */
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px; /* added top padding to separate from header */
}
.hs-staff-directory .accordion-wrapper.open .accordion-content {
  display: flex;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hs-staff-directory {
  /* Fix cluster chip touching cards */
}
.hs-staff-directory .hs-cluster-chip {
  margin-bottom: 1.5rem; /* Add space below the subgroup title */
}
.hs-staff-directory {
  /* Campus Badge (Leadership Tab) */
}
.hs-staff-directory .hs-card-campus-badge {
  background: #f1f5f9;
  color: #475569;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 5px;
  margin-top: 10px;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hs-staff-directory {
  /* Search Dropdown */
}
.hs-staff-directory .opt-3-search {
  position: relative;
}
.hs-staff-directory .hs-search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  margin-top: 8px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 40 !important;
  display: none;
  text-align: left;
}
.hs-staff-directory .hs-search-dropdown.active {
  display: block;
}
.hs-staff-directory .hs-suggest-category {
  font-weight: 700;
  color: #1e293b;
  padding: 10px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  border-top: 1px solid #e2e8f0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hs-staff-directory .hs-suggest-category:first-child {
  border-top: none;
}
.hs-staff-directory .hs-suggest-item {
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  transition: background 0.2s;
}
.hs-staff-directory .hs-suggest-item:last-child {
  border-bottom: none;
}
.hs-staff-directory .hs-suggest-item:hover {
  background: #f1f5f9;
}
.hs-staff-directory .hs-suggest-name {
  font-size: 0.95rem;
  color: #0f172a;
  font-weight: 600;
  margin-bottom: 2px;
}
.hs-staff-directory .hs-suggest-title {
  font-size: 0.75rem;
  color: #64748b;
}
.hs-staff-directory .hs-highlight {
  color: var(--hs-gold);
  font-weight: 800;
}
.hs-staff-directory {
  /* Card Highlight Animation */
}
@keyframes flashHighlight {
  0% {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: transparent;
  }
  15% {
    box-shadow: 0 0 40px var(--hs-gold);
    border-color: var(--hs-gold);
  }
  30% {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: transparent;
  }
  45% {
    box-shadow: 0 0 40px var(--hs-gold);
    border-color: var(--hs-gold);
  }
  60% {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: transparent;
  }
  75% {
    box-shadow: 0 0 40px var(--hs-gold);
    border-color: var(--hs-gold);
  }
  100% {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: transparent;
  }
}
.hs-staff-directory .hs-highlight-card {
  animation: flashHighlight 5s ease-out;
  border: 2px solid transparent;
}
@media (max-width: 768px) {
  .hs-staff-directory {
    /* Toolbar Responsive Layout */
    width: 100%;
    box-sizing: border-box;
    overflow-x: clip;
  }
  .hs-staff-directory .hs-section-staff-directory {
    /* No overflow clipping to prevent stacking context bugs with Divi header */
  }
  .hs-staff-directory .hs-cluster,
  .hs-staff-directory .hs-cluster-cards {
    width: 100%;
  }
  .hs-staff-directory .hs-section-standard,
  .hs-staff-directory .hs-leadership-grid,
  .hs-staff-directory .hs-staff-grid {
    gap: 1rem;
  }
  .hs-staff-directory .hs-staff-card {
    min-width: 0;
    width: calc(50% - 8px) !important;
  }
  .hs-staff-directory .opt-3-tab-container.force-close .opt-3-dropdown-menu {
    display: none !important;
  }
  .hs-staff-directory .opt-3-tab-container.force-close .opt-3-tab i {
    transform: none !important;
  }
  #hs-header-inject {
    position: sticky;
    top: 75px; /* Sit right below the Divi mobile menu + 15px */
    z-index: 40 !important; /* Low enough to stay below custom mobile menu (z-50) */
  }
  .hs-staff-directory .hs-header-toolbar {
    flex-direction: column;
    align-items: center !important;
    gap: 15px;
    padding: 15px;
    box-sizing: border-box;
    width: 100%;
  }
  .hs-staff-directory .opt-3-tabs {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }
  .hs-staff-directory .opt-3-tab {
    font-size: clamp(10px, 3.2vw, 14px);
    white-space: normal;
    text-align: center;
    padding: 5px;
    box-sizing: border-box;
  }
  .hs-staff-directory .hs-search-bar-wrap, .hs-staff-directory .opt-3-search {
    width: 100%;
  }
  .hs-staff-directory .opt-3-search input, .hs-staff-directory .opt-3-search input:focus {
    width: 100%;
    box-sizing: border-box;
  }
}

/**
 * =============================================================================
 * WEEKLY UPDATE LIST MODULE
 * =============================================================================
 * PURPOSE: Styling and layout for WEEKLY UPDATE LIST MODULE
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */

/**
 * =============================================================================
 * NESTED DIVI ROW OVERRIDES
 * =============================================================================
 * PURPOSE: Styling and layout for NESTED DIVI ROW OVERRIDES
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */
.hs-update-list-noticeboard,
.hs-update-list-noticeboard .et_pb_row {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/**
 * =============================================================================
 * FALLBACK OVERRIDES TO GUARANTEE 100% WIDTH
 * =============================================================================
 * PURPOSE: Styling and layout for FALLBACK OVERRIDES TO GUARANTEE 100% WIDTH
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */
.weekly-update-list {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.weekly-update-list .hs-update-cards-container {
    width: 100% !important;
    max-width: 100% !important;
}

.weekly-update-list .weekly-card:not(.is-legacy) {
    width: 100% !important;
}

/**
 * =============================================================================
 * CMS CONFLICT FIXES
 * =============================================================================
 * PURPOSE: Styling and layout for CMS CONFLICT FIXES
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */
.hs-update-list-noticeboard .weekly-update-list .hs-reset p { margin-bottom: 0.5em !important; padding-bottom: 0 !important; line-height: 1.4 !important; }
.hs-update-list-noticeboard .weekly-update-list .hs-reset ul, 
.hs-update-list-noticeboard .weekly-update-list .hs-reset li { list-style: none !important; padding-left: 0 !important; margin-left: 0 !important; margin-bottom: 0 !important; }

/**
 * =============================================================================
 * GLOBAL LAYOUT & WRAPPERS
 * =============================================================================
 * PURPOSE: Styling and layout for GLOBAL LAYOUT & WRAPPERS
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */
.hs-update-list-noticeboard .hs-weekly-layout-wrapper { display: flex; flex-direction: column; gap: 3rem; }
@media (min-width: 1024px) {
    .hs-update-list-noticeboard .hs-weekly-layout-wrapper { flex-direction: row; }
    .hs-update-list-noticeboard .hs-weekly-layout-wrapper .weekly-update-list { flex: 0 0 calc(80% - 1.5rem); width: calc(80% - 1.5rem); }
    .hs-update-list-noticeboard .hs-weekly-sidebar { flex: 0 0 calc(20% - 1.5rem); width: calc(20% - 1.5rem); display: flex; flex-direction: column; gap: 2rem; }
}
.hs-update-list-noticeboard .weekly-update-list { display: flex; flex-direction: column; gap: 0; width: 100%; }

/**
 * =============================================================================
 * HEADER & BLURB
 * =============================================================================
 * PURPOSE: Styling and layout for HEADER & BLURB
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */
.hs-update-list-noticeboard .weekly-update-list .hs-update-blurb {
    font-family: "Open Sans", sans-serif !important;
    color: #333333 !important;
    line-height: 1.7 !important;
    font-size: 1rem !important;
    margin: 0 !important;
    margin-top: 1rem !important;
    margin-bottom: 2rem !important;
    padding: 0 !important;
}
@media (max-width: 767px) {
    .hs-update-list-noticeboard .weekly-update-list .hs-update-blurb {
        font-size: 0.875rem !important;
        line-height: 1.4 !important;
    }
}
.hs-update-list-noticeboard .hs-weekly-sidebar { width: 100%; display: flex; flex-direction: column; gap: 2rem; }

/* Header */
.hs-update-list-noticeboard .weekly-update-list .hs-update-header { display: block !important; flex-direction: column !important; gap: 0 !important; margin-bottom: 4px !important; }
.hs-update-list-noticeboard .weekly-update-list .hs-update-header p:empty { display: none !important; margin: 0 !important; padding: 0 !important; }
.hs-update-list-noticeboard .weekly-update-list .hs-update-title { font-family: var(--hs-font-head, 'Montserrat', sans-serif) !important; color: var(--hs-dark, #003057) !important; font-size: 1.6rem !important; font-weight: 700 !important; line-height: 1.2 !important; margin: 1rem 0 0 0 !important; padding: 10px 0 10px 10px !important; border-left: 6px solid var(--hs-gold, #f0b323) !important; display: block !important; }

/* Cards Container */
.hs-update-list-noticeboard .hs-update-cards-container { display: flex; flex-wrap: wrap; row-gap: 2rem; column-gap: 1.5rem; width: 100%; }

/**
 * =============================================================================
 * WEEKLY CARD OVERRIDES
 * =============================================================================
 * PURPOSE: Styling and layout for WEEKLY CARD OVERRIDES
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */
.hs-update-list-noticeboard .weekly-update-list .weekly-card { 
    display: flex; 
    width: 100%;
    flex-direction: column; 
    height: auto !important; 
    text-decoration: none !important;
    color: inherit !important;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--hs-gray-border, #e2e8f0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: visible;
    position: relative;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.hs-update-list-noticeboard .weekly-update-list .weekly-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 48, 87, 0.12);
}
@media (min-width: 640px) {
    .hs-update-list-noticeboard .weekly-update-list .weekly-card { flex-direction: row !important; align-items: stretch; }
}
.hs-update-list-noticeboard .weekly-update-list .weekly-card-img { 
    height: 100% !important; 
    width: 100% !important; 
    object-fit: cover !important; 
    position: absolute !important; 
    top: 0; 
    left: 0; 
    transition: transform 0.5s ease;
}
.hs-update-list-noticeboard .weekly-update-list .weekly-card:hover .weekly-card-img {
    transform: scale(1.05);
}
.hs-update-list-noticeboard .weekly-update-list .weekly-card-img-wrapper { 
    position: relative !important; 
    width: 100%; 
    aspect-ratio: 16 / 9;
    border-radius: 15px 15px 0 0;
    overflow: hidden;
    transition: all 0.3s ease;
    transform: translateZ(0);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}
@media (min-width: 640px) {
    .hs-update-list-noticeboard .weekly-update-list .weekly-card:not(.is-legacy) .weekly-card-img-wrapper { 
        width: 48% !important; 
        flex-shrink: 0; 
        align-self: flex-start; /* Image sets the row height */
        border-radius: 15px 0 0 15px; 
        aspect-ratio: 16 / 9 !important; 
        position: relative; /* For absolute content inside */
    }
    /* Lock the text column to the image height when not expanded */
    .hs-update-list-noticeboard .weekly-update-list .weekly-card:not(.is-legacy):not(.expanded) .weekly-card-content {
        height: 0;
        min-height: 100%;
        display: flex;
        flex-direction: column;
    }
    .hs-update-list-noticeboard .weekly-update-list .weekly-card:not(.is-legacy):not(.expanded) .hs-blurb-wrapper {
        flex: 1 1 0;
        overflow: hidden;
        position: relative;
    }
    .hs-update-list-noticeboard .weekly-update-list .weekly-card:not(.is-legacy):not(.expanded).is-overflowing .hs-blurb-wrapper::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 40px;
        background: linear-gradient(to top, white 20%, rgba(255,255,255,0));
        pointer-events: none;
    }
}

.hs-update-list-noticeboard .hs-blurb {
    font-family: 'Open Sans', sans-serif; 
    color: #333333; 
    font-size: 1rem; 
    line-height: 1.7; 
    margin-bottom: 12px;
}

.hs-update-list-noticeboard .weekly-update-list .weekly-card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.5rem;
}

/* Meta & Header Styling */
.hs-update-list-noticeboard .hs-card-issue-badge { position: absolute; top: 12px; left: 12px; background-color: rgba(255, 255, 255, 0.95); backdrop-filter: blur(4px); padding: 6px 16px; border-radius: 9999px; font-size: 12px; font-weight: 900; color: var(--hs-dark, #003057); text-transform: uppercase; letter-spacing: -0.05em; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); z-index: 10; }
.hs-update-list-noticeboard .hs-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.hs-update-list-noticeboard .hs-card-header-text { flex-grow: 1; }
.hs-update-list-noticeboard .hs-card-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.hs-update-list-noticeboard .hs-card-meta-year { display: inline-flex; align-items: center; background-color: rgba(0, 48, 87, 0.05); border: 1px solid rgba(0, 48, 87, 0.1); border-radius: 4px; padding: 4px 8px; box-shadow: 0 1px 2px rgba(0,0,0,0.05); font-size: 9px; font-weight: 900; color: var(--hs-dark, #003057); text-transform: uppercase; letter-spacing: 0.1em; }
.hs-update-list-noticeboard .hs-card-meta-date { font-size: 10px; color: #9ca3af; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.hs-update-list-noticeboard .hs-card-title { font-family: var(--hs-font-head, 'Montserrat', sans-serif); font-weight: 700; font-size: 1.6rem; line-height: 1.2; color: var(--hs-dark, #003057); transition: color 0.3s ease; margin-bottom: 12px; }
.hs-update-list-noticeboard .weekly-card:hover .hs-card-title { color: var(--hs-gold, #f0b323); }
.hs-update-list-noticeboard .hs-card-link { outline: none; }
.hs-update-list-noticeboard .hs-card-link::before { content: ""; position: absolute; inset: 0; z-index: 10; }
.hs-update-list-noticeboard .hs-card-cta-desktop { display: flex; align-items: center; gap: 8px; position: relative; z-index: 20; }
@media (min-width: 768px) { .hs-update-list-noticeboard .hs-card-cta-desktop { margin-top: 4px; } }

/* Blurb */
.hs-update-list-noticeboard .hs-blurb-wrapper { position: relative; z-index: 20; margin-bottom: 8px; }
.hs-update-list-noticeboard .hs-blurb { font-family: 'Open Sans', sans-serif; color: #333333; font-size: 1rem; line-height: 1.7; margin-bottom: 12px; }
@media (max-width: 767px) { .hs-update-list-noticeboard .hs-blurb { font-size: 0.875rem; line-height: 1.4; } }
.hs-update-list-noticeboard .hs-expand-blurb { 
    font-size: 0.65rem; 
    color: var(--hs-dark, #003057); 
    background-color: var(--hs-gold, #f0b323); 
    font-weight: 800; 
    text-transform: uppercase; 
    cursor: pointer; 
    display: none; /* JS sets this to inline-flex */
    align-items: center;
    justify-content: center;
    height: 26px;
    border: none; 
    padding: 0 12px; 
    margin: 0; 
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif; 
    transition: all 0.2s ease;
}
.hs-update-list-noticeboard .hs-expand-blurb:hover { 
    background-color: var(--hs-dark, #003057);
    color: #ffffff; 
    text-decoration: none; 
}
.hs-update-list-noticeboard { padding-bottom: 100px; }

/* Footer Area */
.hs-update-list-noticeboard .hs-card-footer { margin-top: auto; position: relative; z-index: 20; }
.hs-update-list-noticeboard .hs-card-footer-title { font-size: 9px; font-weight: 900; color: #9ca3af; text-transform: uppercase; margin-bottom: 4px; letter-spacing: 0.1em; }
.hs-update-list-noticeboard .hs-card-footer-chips { display: flex; gap: 1rem; align-items: flex-end; width: 100%; }

/* --- LEGACY CARD OVERRIDES (2-Column Image Overlay) --- */
.hs-update-list-noticeboard .weekly-update-list .weekly-card.is-legacy {
    background-color: #ffffff;
    border: none;
    aspect-ratio: 16 / 9;
    flex-direction: column !important;
    justify-content: flex-end;
    padding: 0 !important;
    width: 100%;
    overflow: hidden !important;
}
@media (min-width: 640px) {
    .hs-update-list-noticeboard .weekly-update-list .weekly-card.is-legacy {
        width: calc(50% - 0.75rem); /* Allows 2 columns accounting for the 1.5rem / gap-x-6 grid gap */
        aspect-ratio: 16 / 9; /* Matches the physical height of the standard 48% width 16:9 cards */
    }
}
.hs-update-list-noticeboard .weekly-update-list .weekly-card.is-legacy .weekly-card-img-wrapper {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    border-radius: 15px; 
}
.hs-update-list-noticeboard .weekly-update-list .weekly-card.is-legacy .weekly-card-img {
    filter: grayscale(0%);
    opacity: 1;
}
.hs-update-list-noticeboard .weekly-update-list .weekly-card.is-legacy:hover .weekly-card-img {
    transition: all 0.5s ease;
}

/* Image overlays */
.hs-update-list-noticeboard .weekly-update-list .top-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(0, 48, 87, 0.8) 0%, rgba(0, 48, 87, 0.4) 50%, rgba(0, 48, 87, 0) 100%);
    pointer-events: none;
    z-index: 5;
}
.hs-update-list-noticeboard .weekly-update-list .standard-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 48, 87, 0.8) 0%, rgba(0, 48, 87, 0.4) 50%, rgba(0, 48, 87, 0) 100%);
    pointer-events: none;
    z-index: 5;
}
.hs-update-list-noticeboard .weekly-update-list .weekly-card.is-legacy .legacy-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 48, 87, 0.8) 0%, rgba(0, 48, 87, 0.4) 50%, rgba(0, 48, 87, 0) 100%);
    pointer-events: none;
    z-index: 5;
}
.hs-update-list-noticeboard .weekly-update-list .weekly-card:not(.is-legacy) .standard-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 48, 87, 0.8) 0%, rgba(0, 48, 87, 0.4) 50%, rgba(0, 48, 87, 0) 100%);
    pointer-events: none;
    z-index: 5;
}
.hs-update-list-noticeboard .weekly-update-list .weekly-card.is-legacy .weekly-card-content {
    position: relative;
    z-index: 10;
    padding: 1.25rem;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.hs-update-list-noticeboard .weekly-update-list .weekly-card.is-legacy .legacy-meta-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.25rem;
    z-index: 10;
}

.hs-update-list-noticeboard .weekly-update-list .weekly-card.is-legacy .legacy-meta {
    color: #cbd5e1;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hs-update-list-noticeboard .weekly-update-list .weekly-card .legacy-title {
    color: #ffffff;
    font-family: var(--hs-font-head, 'Montserrat', sans-serif);
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.2;
    transition: color 0.3s ease;
    margin: 0;
}
.hs-update-list-noticeboard .weekly-update-list .weekly-card:hover .legacy-title {
    color: var(--hs-gold, #f0b323);
}
.hs-update-list-noticeboard .weekly-update-list .weekly-card.is-legacy .legacy-badge {
    background: var(--hs-gold, #f0b323);
    color: var(--hs-dark, #003057);
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.55rem;
    font-weight: 900;
}
.hs-update-list-noticeboard .weekly-update-list .legacy-meta-text {
    line-height: 1.25;
}
.hs-update-list-noticeboard .hs-legacy-inner-flex { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; width: 100%; }
.hs-update-list-noticeboard .hs-legacy-flex-1 { flex: 1; }

/**
 * =============================================================================
 * ARCHIVE CTA BLOCK
 * =============================================================================
 * PURPOSE: Styling and layout for ARCHIVE CTA BLOCK
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */
.hs-update-list-noticeboard .weekly-card-archive { display: block; width: 100%; text-decoration: none; }
.hs-update-list-noticeboard .hs-archive-inner { background-color: #f9fafb; border: 2px dashed #e5e7eb; border-radius: 12px; padding: 2.5rem; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; transition: border-color 0.3s ease; }
.hs-update-list-noticeboard .weekly-card-archive:hover .hs-archive-inner { border-color: var(--hs-gold, #f0b323); }
.hs-update-list-noticeboard .hs-archive-icon { width: 3rem; height: 3rem; background-color: #ffffff; border-radius: 50%; box-shadow: 0 1px 2px rgba(0,0,0,0.05); display: flex; align-items: center; justify-content: center; color: var(--hs-dark, #003057); margin-bottom: 1rem; font-size: 1.25rem; }
.hs-update-list-noticeboard .hs-archive-title { font-family: var(--hs-font-head, 'Montserrat', sans-serif); font-weight: 800; font-size: 1.5rem; color: var(--hs-dark, #003057); margin-bottom: 0.5rem; }
.hs-update-list-noticeboard .hs-archive-text { font-size: 0.875rem; color: #6b7280; margin-bottom: 1.5rem; max-width: 28rem; }

/**
 * =============================================================================
 * GLOBAL COMPONENTS
 * =============================================================================
 * PURPOSE: Styling and layout for GLOBAL COMPONENTS
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */
.hs-update-list-noticeboard .weekly-update-list .zoom-card { border-radius: 12px; overflow: hidden; background: #ffffff; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: all 0.3s ease; border: 1px solid rgba(0,48,87,0.05); }
.hs-update-list-noticeboard .weekly-update-list .zoom-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,48,87,0.1); }
.hs-update-list-noticeboard .weekly-update-list .zoom-card img { transition: transform 0.6s ease; }
.hs-update-list-noticeboard .weekly-update-list .zoom-card:hover img { transform: scale(1.05); }

.hs-update-list-noticeboard .weekly-update-list .hs-secondary-link { display: inline-flex; align-items: center; text-decoration: underline; text-decoration-color: #f0b323; text-underline-offset: 6px; text-decoration-thickness: 2px; color: #003057; font-weight: 700; font-family: 'Montserrat', sans-serif; transition: color 0.3s ease; cursor: pointer; }
.hs-update-list-noticeboard .weekly-update-list .hs-secondary-link:hover { color: #f0b323; }
.hs-update-list-noticeboard .weekly-update-list .hs-secondary-link i { margin-left: 8px; transition: transform 0.3s ease; }
.hs-update-list-noticeboard .weekly-update-list .hs-secondary-link:hover i { transform: translateX(5px); color: #f0b323; }

/**
 * =============================================================================
 * BUTTONS & CTA
 * =============================================================================
 * PURPOSE: Styling and layout for BUTTONS & CTA
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */
.hs-update-list-noticeboard .weekly-update-list .hs-btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--hs-gold, #f0b323);
    color: var(--hs-dark, #003057);
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    white-space: nowrap;
    gap: 6px;
    border: 2px solid var(--hs-gold, #f0b323);
    height: 32px;
    box-sizing: border-box;
}
.hs-update-list-noticeboard .weekly-update-list .weekly-card:hover .hs-btn-sm {
    background-color: var(--hs-dark, #003057);
    color: #ffffff;
    border-color: var(--hs-dark, #003057);
    transform: translateY(-2px);
}

.hs-update-list-noticeboard .weekly-update-list .hs-btn-full {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--hs-gold, #f0b323);
    color: var(--hs-dark, #003057);
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
    text-decoration: none;
    gap: 8px;
    border: 2px solid var(--hs-gold, #f0b323);
}
.hs-update-list-noticeboard .weekly-update-list .hs-btn-full:hover {
    background-color: var(--hs-dark, #003057);
    color: #ffffff;
    border-color: var(--hs-dark, #003057);
    transform: translateY(-2px);
}

.hs-update-list-noticeboard .weekly-update-list .weekly-card-archive:hover .hs-btn-full {
    background-color: var(--hs-dark, #003057);
    color: #ffffff;
    border-color: var(--hs-dark, #003057);
    transform: translateY(-2px);
}

.hs-update-list-noticeboard .weekly-update-list .hs-card-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--hs-gray-light, #f8fafc);
    border: 1px solid var(--hs-gray-border, #e2e8f0);
    color: var(--hs-dark, #003057);
    font-size: 0.85rem;
    transition: all 0.2s ease;
    margin-top: 4px;
    flex-shrink: 0;
    position: relative;
    z-index: 20;
}
.hs-update-list-noticeboard .weekly-update-list .weekly-card:hover .hs-card-arrow {
    background-color: var(--hs-dark, #003057);
    color: #ffffff;
    border-color: var(--hs-dark, #003057);
    transform: translate(2px, -2px);
}
.hs-update-list-noticeboard .weekly-update-list .weekly-card.is-legacy .hs-card-arrow {
    margin-bottom: 0;
}
.hs-update-list-noticeboard .weekly-update-list .weekly-card.is-legacy .hs-card-arrow {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}
.hs-update-list-noticeboard .weekly-update-list .weekly-card.is-legacy:hover .hs-card-arrow {
    background-color: var(--hs-gold, #f0b323);
    border-color: var(--hs-gold, #f0b323);
    color: var(--hs-dark, #003057);
}

/**
 * =============================================================================
 * PAGINATION
 * =============================================================================
 * PURPOSE: Styling and layout for PAGINATION
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */

.hs-update-list-noticeboard .weekly-update-list .hs-carousel-btn {
    color: var(--hs-dark, #003057);
    font-size: 1.45rem;
    font-weight: 400;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}
.hs-update-list-noticeboard .weekly-update-list .hs-carousel-btn:hover:not(:disabled) { 
    color: var(--hs-gold, #f0b323); 
    transform: scale(1.1);
}
.hs-update-list-noticeboard .weekly-update-list .hs-carousel-btn:disabled { 
    opacity: 0.2; 
    cursor: not-allowed; 
}

.hs-update-list-noticeboard .weekly-update-list .hs-carousel-dots { 
    display: flex; 
    gap: 8px; 
    justify-content: center;
}
.hs-update-list-noticeboard .weekly-update-list .hs-dot { 
    width: 32px; 
    height: 3px; 
    border-radius: 2px; 
    background-color: var(--hs-gray-border, #cbd5e1); 
    transition: all 0.2s ease; 
    cursor: pointer; 
}
.hs-update-list-noticeboard .weekly-update-list .hs-dot:hover { 
    background-color: #9ca3af; 
}
.hs-update-list-noticeboard .weekly-update-list .hs-dot.active { 
    background-color: var(--hs-gold, #f0b323); 
}

/**
 * =============================================================================
 * IN THIS ISSUE CHIPS
 * =============================================================================
 * PURPOSE: Styling and layout for IN THIS ISSUE CHIPS
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */
.hs-update-list-noticeboard .weekly-update-list .hs-chip-container {
    flex-grow: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.hs-update-list-noticeboard .weekly-update-list .hs-chip,
.hs-update-list-noticeboard .weekly-update-list .hs-chip-more {
    flex: 1 1 auto;
    display: inline-flex; align-items: center; justify-content: center; text-align: center;
    background-color: #f3f4f6; color: var(--hs-dark, #003057); font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,0.05); border: 1px solid #e5e7eb; transition: border-color 0.3s ease, background-color 0.3s ease; cursor: pointer; position: relative; z-index: 20;
    line-height: 1 !important; height: 24px; box-sizing: border-box;
}
.hs-update-list-noticeboard .weekly-update-list .hs-chip:hover { border-color: var(--hs-gold, #f0b323); }
.hs-update-list-noticeboard .weekly-update-list .hs-chip i { color: var(--hs-gold, #f0b323); margin-right: 4px; }
.hs-update-list-noticeboard .weekly-update-list .hs-chip-more { background-color: var(--hs-dark, #003057); color: #ffffff; flex-shrink: 0; border-color: transparent; }
.hs-update-list-noticeboard .weekly-update-list .hs-chip-more:hover { background-color: var(--hs-gold, #f0b323); color: var(--hs-dark, #003057); }
@media (min-width: 640px) {
    .hs-update-list-noticeboard .weekly-update-list .hs-chip,
    .hs-update-list-noticeboard .weekly-update-list .hs-chip-more {
        flex: 0 0 auto;
    }
}

/* Absorbs remaining space on the last line to maintain left alignment */
.hs-update-list-noticeboard .weekly-update-list .hs-chip-container::after {
    content: "";
    flex: 10 0 auto;
}

/**
 * =============================================================================
 * EXPAND / COLLAPSE UI
 * =============================================================================
 * PURPOSE: Styling and layout for EXPAND / COLLAPSE UI
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */
.hs-update-list-noticeboard .weekly-update-list .hs-collapse-btn {
    background-color: var(--hs-gold, #f0b323);
    border: 1px solid var(--hs-gold, #f0b323);
    color: var(--hs-dark, #003057);
    border-radius: 50%;
    display: none; /* Visible when .expanded */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 30;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.hs-update-list-noticeboard .weekly-update-list .weekly-card.expanded .hs-collapse-btn {
    display: flex;
}
@media (max-width: 639px) {
    .hs-update-list-noticeboard .weekly-update-list .weekly-card.expanded .hs-collapse-btn.hs-hide-mobile {
        display: none;
    }
}
@media (min-width: 640px) {
    .hs-update-list-noticeboard .weekly-update-list .weekly-card.expanded .hs-collapse-btn.hs-show-mobile-only {
        display: none;
    }
}

.hs-update-list-noticeboard .weekly-update-list .hs-collapse-mobile {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
    width: 36px;
    height: 36px;
}
.hs-update-list-noticeboard .weekly-update-list .hs-collapse-mobile:hover {
    transform: translate(-50%, 50%) translateY(-2px);
}

.hs-update-list-noticeboard .weekly-update-list .hs-collapse-desktop {
    width: 32px;
    height: 32px;
}
.hs-update-list-noticeboard .weekly-update-list .hs-collapse-btn:hover {
    background-color: var(--hs-gold, #f0b323);
    border-color: var(--hs-gold, #f0b323);
    color: #ffffff;
    transform: translateY(-2px);
}

/**
 * =============================================================================
 * NOTICEBOARD ACCORDION
 * =============================================================================
 * PURPOSE: Styling and layout for NOTICEBOARD ACCORDION
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */
.hs-update-list-noticeboard .hs-noticeboard-accordion .et_pb_toggle {
    border: 1px solid rgba(0, 48, 87, 0.1);
    border-radius: 8px;
    margin-bottom: 10px;
    background-color: rgba(0, 48, 87, 0.03);
    overflow: hidden;
    transition: background-color 0.3s ease;
}
.hs-update-list-noticeboard .hs-noticeboard-accordion .et_pb_toggle_title {
    font-family: var(--hs-font-head, 'Montserrat', sans-serif);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--hs-dark, #003057);
    padding: 15px;
    cursor: pointer;
    position: relative;
    margin: 0;
}
.hs-update-list-noticeboard .hs-noticeboard-accordion .et_pb_toggle_title::before {
    content: '\f0d7';
    font-family: 'FontAwesome';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--hs-dark, #003057);
    transition: transform 0.3s ease;
}
.hs-update-list-noticeboard .hs-noticeboard-accordion .et_pb_toggle_open .et_pb_toggle_title::before {
    transform: translateY(-50%) rotate(180deg);
}
.hs-update-list-noticeboard .hs-noticeboard-accordion .et_pb_toggle_content {
    padding: 0 15px 15px 15px;
    font-size: 0.75rem;
    color: #4a5568;
    display: none;
    line-height: 1.5;
}
.hs-update-list-noticeboard .hs-noticeboard-accordion .et_pb_toggle_open .et_pb_toggle_content {
    display: block;
}
/**
 * =============================================================================
 * YEAR FILTER
 * =============================================================================
 * PURPOSE: Styling and layout for YEAR FILTER
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */

.hs-update-list-noticeboard .weekly-update-list .hs-mobile-filter-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hs-update-list-noticeboard .weekly-update-list .hs-mobile-filter {
    flex: 1;
    padding: 0 36px 0 16px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    font-family: var(--hs-font-head, 'Montserrat', sans-serif) !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    text-transform: none !important;
    color: #003057 !important;
    background: #ffffff !important;
    outline: none !important;
    cursor: pointer !important;
    height: 38px !important;
    min-height: auto !important;
    max-height: none !important;
    line-height: normal !important;
    box-sizing: border-box !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    transition: all 0.2s ease !important;
    /* Custom Arrow to control exact positioning */
    background-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2212%22 height=%2212%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23003057%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpolyline points=%226 9 12 15 18 9%22%3E%3C/polyline%3E%3C/svg%3E') !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 12px !important;
}

.hs-update-list-noticeboard .weekly-update-list .hs-mobile-filter:hover,
.hs-update-list-noticeboard .weekly-update-list .hs-mobile-filter:focus {
    border-color: #f0b323 !important;
}

/**
 * =============================================================================
 * LATEST NEWSLETTERS JUMP BUTTON & FILTER
 * =============================================================================
 * PURPOSE: Styling and layout for LATEST NEWSLETTERS JUMP BUTTON & FILTER
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */
.hs-update-list-noticeboard .weekly-update-list .hs-carousel-controls-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem; /* half of row-gap */
    padding: 0;
}
.hs-update-list-noticeboard .weekly-update-list .hs-controls-left,
.hs-update-list-noticeboard .weekly-update-list .hs-controls-right {
    flex: 1;
    display: flex;
}
.hs-update-list-noticeboard .weekly-update-list .hs-controls-left {
    justify-content: flex-start;
}
.hs-update-list-noticeboard .weekly-update-list .hs-controls-right {
    justify-content: flex-end;
}
.hs-update-list-noticeboard .weekly-update-list .hs-controls-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.hs-update-list-noticeboard .weekly-update-list .hs-jump-first {
    font-family: var(--hs-font-head, 'Montserrat', sans-serif) !important;
    color: #003057 !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    text-transform: none !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    height: 38px !important;
    padding: 0 16px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    box-sizing: border-box !important;
    line-height: normal !important;
}

.hs-update-list-noticeboard .weekly-update-list .hs-jump-first:hover:not(:disabled) {
    border-color: #f0b323 !important;
    background-color: #ffffff !important;
}
@media (max-width: 980px) {

    .hs-update-list-noticeboard .weekly-update-list .hs-carousel-controls-wrapper {
        display: flex;
        flex-wrap: wrap;
        gap: 1.25rem 2%;
        padding: 0;
    }
    .hs-update-list-noticeboard .weekly-update-list .hs-controls-center {
        width: 100%;
        order: 3;
        justify-content: center;
        margin-top: -10px; /* Pull the pagination slightly closer to the filters above */
    }
    .hs-update-list-noticeboard .weekly-update-list .hs-controls-left {
        width: 100%;
        order: 1;
        display: flex;
    }
    .hs-update-list-noticeboard .weekly-update-list .hs-controls-right {
        width: 100%;
        order: 2;
        display: flex;
    }
    .hs-update-list-noticeboard .weekly-update-list .hs-mobile-filter-container {
        width: 100%;
    }
    .hs-update-list-noticeboard .weekly-update-list .hs-jump-first,
    .hs-update-list-noticeboard .weekly-update-list .hs-mobile-filter {
        width: 100%;
        position: static;
        margin-top: 0;
        justify-content: center;
    }
}

/* Add this to your CSS */
.hs-post-content-sandbox .hs-standalone-heading h2 {
    font-family: var(--hs-font-head, 'Montserrat', sans-serif) !important;
    color: var(--hs-dark, #003057) !important;
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    line-height: 1.2em !important;
    margin: 0 !important;
    padding: 10px 0 10px 15px !important;
    border-left: 6px solid var(--hs-gold, #f0b323) !important;
    display: block !important;
    background-color: transparent !important;
}

/**
 * =============================================================================
 * [LAYER 5: BESPOKE MODULES] - EVENTS CALENDAR MODULE
 * =============================================================================
 * PURPOSE: Styling and layout for [LAYER 5: BESPOKE MODULES] - EVENTS CALENDAR MODULE
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */

/* --- 1. Base Container & Variables --- */
.hs-section-events {
  --hs-gray-light: #f8fafc;
  --hs-gray-border: #e2e8f0;
  --hs-text-body: #4a5568;

  font-family: var(--hs-font-body);
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
}

.hs-section-events * {
  box-sizing: border-box;
}

/* --- 2. Header & Filter Controls --- */
.hs-section-events .hs-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  border-bottom: 2px solid var(--hs-gray-border);
  padding-bottom: 15px;
}

.hs-section-events .hs-header-left {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.hs-section-events .hs-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.hs-section-events .hs-section-title,
.hs-section-events #hs-modal-overlay .hs-section-title {
  font-family: var(--hs-font-head);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--hs-dark);
  margin: 0;
  line-height: 1.2;
}

.hs-section-events .hs-filter-controls,
.hs-section-events #hs-modal-overlay .hs-filter-controls {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.hs-section-events .hs-filter-btn,
.hs-section-events #hs-modal-overlay .hs-filter-btn {
  background: transparent;
  border: 1px solid var(--hs-gray-border);
  padding: 4px 12px;
  border-radius: 20px;
  font-family: var(--hs-font-head);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--hs-text-body);
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
}

.hs-section-events .hs-filter-btn:hover,
.hs-section-events #hs-modal-overlay .hs-filter-btn:hover {
  border-color: var(--hs-gold);
  color: var(--hs-dark);
}

.hs-section-events .hs-filter-btn.active,
.hs-section-events #hs-modal-overlay .hs-filter-btn.active {
  background: var(--hs-dark);
  color: #ffffff;
  border-color: var(--hs-dark);
}

.hs-section-events .hs-mobile-filter-container {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 250px;
  flex-shrink: 0;
}

.hs-section-events .hs-filter-label {
  font-family: var(--hs-font-head);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--hs-text-body);
}

.hs-section-events .hs-mobile-filter,
.hs-section-events #hs-modal-overlay .hs-modal-mobile-filter {
  flex: 1;
  padding: 0 30px 0 12px;
  border: 1px solid var(--hs-gray-border);
  border-radius: 6px;
  font-family: var(--hs-font-head);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--hs-dark);
  background-color: #ffffff;
  outline: none;
  cursor: pointer;
  height: 38px;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
}

.hs-section-events .hs-btn-view-all {
  background-color: var(--hs-gold);
  color: var(--hs-dark);
  border: none;
  border-radius: 4px;
  font-family: var(--hs-font-head);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
  height: 38px;
  box-sizing: border-box;
}

.hs-section-events .hs-btn-view-all:hover {
  background-color: var(--hs-dark);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(240, 179, 35, 0.4);
}

.hs-section-events .hs-header-divider {
  width: 2px;
  height: 38px;
  background-color: var(--hs-gray-border);
  border-radius: 2px;
  margin: 0 5px;
  display: block;
}
.hs-section-events .hs-desktop-divider {
  display: block;
}

/* --- 3. Desktop Dashboard Track & Cards --- */
.hs-section-events .hs-events-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 15px;
  padding-top: 8px;
  margin-top: -8px;
}
.hs-section-events .hs-events-track::-webkit-scrollbar {
  display: none;
}

.hs-section-events .hs-card-v1.filtered-out,
.hs-section-events .hs-card-v1.paged-hidden {
  display: none !important;
}

.hs-section-events .hs-card-v1 {
  flex: 0 0 calc((100% - (12px * 4)) / 5);
  scroll-snap-align: start;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--hs-gray-border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  position: relative;
  
  /* Prevent Safari border-radius clipping bug during transform */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

@media (hover: hover) {
  .hs-section-events .hs-card-v1:hover {
    transform: translate3d(0, -4px, 0);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
  }
}

.hs-section-events .hs-card-v1-img-wrap {
  aspect-ratio: 16 / 9;
  height: auto;
  overflow: hidden;
  position: relative;
  background: #000000;
  flex-shrink: 0;
  border-radius: 9px 9px 0 0;
}

.hs-section-events .hs-card-v1-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
  border-radius: inherit;
}

.hs-section-events .hs-category-chip {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #ffffff;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.55rem;
  font-weight: 800;
  text-transform: uppercase;
  font-family: var(--hs-font-head);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 2;
  line-height: 1;
  display: inline-block;
  letter-spacing: 0.5px;
  max-width: calc(100% - 110px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hs-section-events .hs-card-register-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: var(--hs-gold);
  color: var(--hs-dark);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.55rem;
  font-weight: 800;
  text-transform: uppercase;
  font-family: var(--hs-font-head);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 12;
  line-height: 1;
  text-decoration: none;
}

.hs-section-events .hs-date-badge-v1 {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #ffffff;
  border-radius: 6px;
  text-align: center;
  padding: 4px 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  min-width: 45px;
  z-index: 2;
}

.hs-section-events .hs-multi-date-wrapper {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 3px;
  z-index: 2;
}

.hs-section-events .hs-multi-date-wrapper .hs-date-badge-v1 {
  position: relative;
  top: auto;
  right: auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  min-width: 35px;
  padding: 3px 5px;
}

.hs-section-events .hs-date-separator {
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  font-family: var(--hs-font-head);
}

.hs-section-events .hs-db-month,
.hs-section-events #hs-modal-overlay .hs-db-month {
  font-size: 0.55rem;
  font-weight: 800;
  color: var(--hs-gold);
  text-transform: uppercase;
  line-height: 1;
  font-family: var(--hs-font-head);
}
.hs-section-events .hs-multi-date-wrapper .hs-db-month {
  font-size: 0.5rem;
}

.hs-section-events .hs-db-day,
.hs-section-events #hs-modal-overlay .hs-db-day {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--hs-dark);
  line-height: 1;
  margin-top: 2px;
  font-family: var(--hs-font-head);
}
.hs-section-events .hs-multi-date-wrapper .hs-db-day {
  font-size: 0.9rem;
}

.hs-section-events .hs-card-v1-body {
  padding: 10px 12px 12px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.hs-section-events .hs-card-title {
  font-family: var(--hs-font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--hs-dark);
  line-height: 1.3;
  text-align: center;
  margin: 0 0 12px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hs-gray-border);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  -webkit-box-pack: center;
  overflow: hidden;
  height: calc(2.34rem + 6px + 1px);
}

.hs-section-events .hs-card-meta {
  font-size: 0.75rem;
  color: var(--hs-text-body);
  margin-top: 8px;
  margin-bottom: 8px; 
  display: flex;
  flex-direction: row;
  flex-wrap: wrap; /* Allows stacking when space is constrained */
  justify-content: center;
  gap: 10px;
  line-height: 1.4;
  overflow: hidden; 
}

/* Synchronized stacking via JS */
.hs-section-events .hs-events-track.hs-meta-stacked .hs-card-meta {
  flex-direction: column !important;
  align-items: center !important;
  gap: 2px !important;
}

.hs-section-events .hs-card-meta span {
  display: flex;
  align-items: center !important;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
  max-width: 100%;
}

.hs-section-events .hs-meta-register-btn {
  display: none !important;
}

.hs-section-events .hs-card-meta i {
  color: var(--hs-gold);
  width: 14px;
  text-align: center;
  margin-top: 3px;
  flex-shrink: 0;
}

.hs-section-events .hs-btn-full {
  width: 100%;
  background: var(--hs-gold);
  color: var(--hs-dark);
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  margin-top: auto;
  font-family: var(--hs-font-head);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
}

@media (hover: hover) {
  .hs-section-events .hs-card-v1:hover .hs-btn-full {
    background: var(--hs-dark);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(240, 179, 35, 0.4);
  }
}

.hs-section-events .hs-mobile-date {
  display: none;
}

/* --- 4. Carousel Pagination --- */
.hs-section-events .hs-carousel-controls-wrapper {
  display: none; /* Will still be toggled by your JS */
  align-items: center;
  justify-content: flex-end; /* Pushes the arrows to the absolute right edge */
  gap: 15px;
  margin: 0; /* Strips old bottom-of-screen margins */
  padding: 0; 
}

.hs-section-events .hs-carousel-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--hs-gold);
  color: var(--hs-dark);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

@media (hover: hover) {
  .hs-section-events .hs-carousel-btn:hover:not(:disabled) {
    transform: scale(1.05);
  }
}
.hs-section-events .hs-carousel-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.hs-section-events .hs-carousel-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hs-section-events .hs-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--hs-gray-border, #cbd5e1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.hs-section-events .hs-dot.active {
  width: 24px;
  border-radius: 4px;
  background-color: var(--hs-gold);
}

/* --- 5. Calendar Dropdown UI --- */
.hs-section-events .hs-cal-dropdown-container {
  position: relative;
  display: inline-block;
}

.hs-section-events .hs-btn-add-cal {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  border: none;
  background: var(--hs-gold);
  color: var(--hs-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.hs-section-events .hs-btn-add-cal:hover,
.hs-section-events .hs-btn-add-cal.active {
  background: var(--hs-dark);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(240, 179, 35, 0.4);
}

.hs-section-events .hs-cal-dropdown {
  position: absolute;
  right: 0;
  top: 45px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--hs-gray-border);
  width: 220px;
  display: none;
  flex-direction: column;
  z-index: 100;
  overflow: hidden;
}

.hs-section-events .hs-cal-dropdown.active {
  display: flex;
}

.hs-section-events .hs-cal-drop-header {
  padding: 12px 15px;
  font-family: var(--hs-font-head);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--hs-text-body);
  background: var(--hs-gray-light);
  border-bottom: 1px solid var(--hs-gray-border);
  line-height: 1.4;
}

.hs-section-events .hs-cal-dropdown button {
  background: none;
  border: none;
  padding: 12px 15px;
  text-align: left;
  font-family: var(--hs-font-body);
  font-size: 0.85rem;
  color: var(--hs-dark);
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hs-section-events .hs-cal-dropdown button i {
  font-size: 1rem;
  width: 16px;
  text-align: center;
  color: #4a5568;
}

.hs-section-events .hs-cal-dropdown button:hover {
  background: #f1f5f9;
  color: var(--hs-gold);
}

/* --- 6. Modal Overlay & Dialog (Base) --- */
.hs-section-events #hs-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 99999999;
  background: rgba(0, 0, 0, 0.9);
  padding: 60px 40px 40px 40px;
  box-sizing: border-box;
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hs-section-events #hs-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.hs-section-events .hs-modal-dialog {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  margin: 0 auto;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hs-section-events #hs-modal-overlay.active .hs-modal-dialog {
  transform: translateY(0);
}

.hs-section-events .hs-dialog-single {
  max-width: 95vw;
  width: max-content;
  max-height: 85%;
}

.hs-section-events .hs-dialog-list {
  max-width: 1000px;
  max-height: 95%;
}

.hs-section-events .hs-shared-close {
  position: absolute;
  top: -50px;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: rgba(240, 179, 35, 0.95);
  color: var(--hs-dark);
  border: 4px solid rgba(255, 255, 255, 0.3);
  background-clip: padding-box;
  backdrop-filter: blur(8px);
  padding: 6px 16px 6px 20px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  height: 38px;
  box-sizing: border-box;
}

@media (hover: hover) {
  .hs-section-events .hs-shared-close:hover {
    transform: translateY(-2px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  }
}

.hs-section-events .hs-modal-close-text {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 800;
  font-family: var(--hs-font-head);
}

.hs-section-events .hs-modal-close-icon {
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 1;
  margin-top: -3px;
  font-family: Arial, sans-serif;
}

/* Modal Navigation Arrows */
.hs-section-events .hs-modal-nav-btn {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 20 !important;
  background: #ffcc00 !important; /* Gold to match mobile dashboard arrows */
  color: #333 !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  border: none !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.2rem !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

@media (hover: hover) {
  .hs-section-events .hs-modal-nav-btn:hover {
    transform: translateY(-50%) scale(1.1) !important;
    background: #e6b800 !important;
  }
}

.hs-section-events .hs-modal-nav-prev {
  left: -20px !important;
}

.hs-section-events .hs-modal-nav-next {
  right: -20px !important;
}

.hs-section-events .hs-modal-content-box {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
}

/**
 * =============================================================================
 * 7. SINGLE EVENT MODAL CONTENT
 * =============================================================================
 * PURPOSE: Styling and layout for 7. SINGLE EVENT MODAL CONTENT
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */

/**
 * =============================================================================
 * GLOBAL BASE STYLES (RESTORED WITH !IMPORTANT TO PREVENT THEME BLEEDING)
 * =============================================================================
 * PURPOSE: Styling and layout for GLOBAL BASE STYLES (RESTORED WITH !IMPORTANT TO PREVENT THEME BLEEDING)
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */
.hs-section-events .hs-dialog-single {
  position: relative !important;
  margin: 0 auto !important;
}

.hs-section-events .hs-split-preview {
  background: #ffffff !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  width: 100% !important;
}

/* Image Base & Absolute Image Positioning */
.hs-section-events .hs-preview-img-wrapper {
  position: relative !important;
  background: #000000 !important;
  overflow: hidden !important;
}

.hs-section-events .hs-preview-img-wrapper img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* Floating Badges (Locked over the image globally) */
.hs-section-events #hs-modal-overlay .hs-preview-img-wrapper .hs-category-chip {
  position: absolute !important;
  top: 25px !important;
  left: 25px !important;
  font-size: 0.85rem !important;
  padding: 8px 16px !important;
  border-radius: 6px !important;
  margin: 0 !important;
  z-index: 5 !important;
}

.hs-section-events #hs-modal-overlay .hs-preview-img-wrapper .hs-date-badge-v1 {
  position: absolute !important;
  top: 25px !important;
  right: 25px !important;
  padding: 12px 16px !important;
  min-width: 85px !important;
  border-radius: 8px !important;
  margin: 0 !important;
  z-index: 5 !important;
}

.hs-section-events #hs-modal-overlay .hs-preview-img-wrapper .hs-multi-date-wrapper {
  position: absolute !important;
  top: 25px !important;
  right: 25px !important;
  z-index: 5 !important;
}

.hs-section-events #hs-modal-overlay .hs-preview-img-wrapper .hs-multi-date-wrapper .hs-date-badge-v1 {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  padding: 6px 10px !important;
  min-width: 50px !important;
}

.hs-section-events #hs-modal-overlay .hs-preview-img-wrapper .hs-db-month {
  font-size: 1rem !important;
  letter-spacing: 0.2em !important;
  margin-right: -0.2em !important;
}

.hs-section-events #hs-modal-overlay .hs-preview-img-wrapper .hs-db-day {
  font-size: 2.4rem !important;
  margin-top: 2px !important;
  line-height: 1 !important;
}

/* Text Pane Base Formatting */
.hs-section-events .hs-preview-text-wrapper {
  background: #ffffff !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  padding: 2.5rem !important;
}

/* Top Text Elements */
.hs-section-events .hs-preview-text-wrapper .hs-modal-top-row {
  display: flex !important;
  flex-direction: column !important;
}

.hs-section-events .hs-preview-text-wrapper .hs-mod-title {
  font-family: var(--hs-font-head) !important;
  color: var(--hs-dark) !important;
  font-weight: 800 !important;
  font-size: 1.8rem !important;
  margin: 0 0 15px 0 !important;
  line-height: 1.2 !important;
  flex-shrink: 0 !important;
}

.hs-section-events .hs-preview-text-wrapper .hs-mod-meta-wrapper {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-top: 10px !important;
  margin-bottom: 25px !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  border-top: 1px solid var(--hs-gray-border) !important;
  border-bottom: 1px solid var(--hs-gray-border) !important;
  gap: 15px !important;
  flex-wrap: nowrap !important;
  flex-shrink: 0 !important;
}

/* Restored horizontal row layout for Meta! */
.hs-section-events .hs-preview-text-wrapper .hs-mod-meta {
  font-family: var(--hs-font-body) !important;
  font-size: 0.95rem !important;
  color: var(--hs-text-body) !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 20px !important;
  overflow: hidden !important;
  margin: 0 !important;
}

.hs-section-events .hs-preview-text-wrapper .hs-cal-dropdown-container {
  display: flex !important;
  align-items: center !important;
}

.hs-section-events .hs-preview-text-wrapper .hs-mod-meta span {
  display: flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.hs-section-events .hs-preview-text-wrapper .hs-mod-meta i {
  color: var(--hs-gold) !important;
  width: 20px !important;
  text-align: center !important;
  margin-right: 6px !important;
  flex-shrink: 0 !important;
}

/* Scrollable Blurb */
.hs-section-events .hs-preview-text-wrapper .hs-mod-blurb {
  font-family: var(--hs-font-body) !important;
  font-size: 1rem !important;
  color: #333333 !important;
  line-height: 1.7 !important;
  margin-bottom: 25px !important;
  overflow-y: auto !important;
  flex-grow: 1 !important;
  padding-right: 15px !important;
}

.hs-section-events .hs-preview-text-wrapper .hs-mod-blurb::-webkit-scrollbar {
  width: 6px !important;
}
.hs-section-events .hs-preview-text-wrapper .hs-mod-blurb::-webkit-scrollbar-track {
  background: #f1f1f1 !important;
  border-radius: 3px !important;
}
.hs-section-events .hs-preview-text-wrapper .hs-mod-blurb::-webkit-scrollbar-thumb {
  background-color: var(--hs-gray-border) !important;
  border-radius: 10px !important;
}

/* Bottom CTA Button */
.hs-section-events .hs-preview-text-wrapper .hs-btn-side {
  flex-shrink: 0 !important;
  margin-bottom: 15px !important;
  width: 100% !important;
  text-align: center !important;
  padding: 14px 20px !important;
  box-sizing: border-box !important;
  justify-content: center !important;
}

/**
 * =============================================================================
 * WIDE SIDE-BY-SIDE LAYOUT ENGINE (MIN-WIDTH: 1131PX)
 * =============================================================================
 * PURPOSE: Styling and layout for WIDE SIDE-BY-SIDE LAYOUT ENGINE (MIN-WIDTH: 1131PX)
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */
@media (min-width: 1131px) {
  
  /* 1. Modal Constraints */
  .hs-section-events .hs-dialog-single {
    width: 95vw !important;
    max-width: 1400px !important;   
    height: auto !important;
  }

  /* 2. Grid Engine */
  .hs-section-events .hs-split-preview {
    display: block !important;
    width: 100% !important;
    max-width: none !important;     
    max-height: 85vh !important;
    background: #ffffff !important; /* Forces the empty space below the image to be white */
    position: relative !important;
  }

  /* 3. The Responsive Image Column (THE SQUEEZE FIX INTEGRATED) */
  .hs-section-events .hs-preview-img-wrapper {
    position: relative !important;
    width: calc(100% - 450px) !important;
    height: auto !important;         /* Releases strict height matching */
    aspect-ratio: 16 / 9 !important; /* Mathematically locks to 16:9 as width is squeezed */
    overflow: hidden !important;
  }

  .hs-section-events .hs-preview-img-wrapper img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  /* 4. The Protected Text Pane */
  .hs-section-events .hs-preview-text-wrapper {
    width: 450px !important;
    min-width: 450px !important; 
    max-width: 450px !important; 
    max-height: 85vh !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
  }
}

/* --- 8. View All List Modal Content --- */
.hs-section-events .hs-list-preview {
  flex-direction: column;
  background: var(--hs-gray-light);
  padding-bottom: 50px;
}
.hs-section-events .hs-list-header {
  padding: 25px 30px;
  background: #ffffff;
  border-bottom: 1px solid var(--hs-gray-border);
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  z-index: 10;
}
.hs-section-events .hs-list-body {
  padding: 30px;
  overflow-y: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
  justify-content: flex-start;
  min-height: 0;
}

.hs-section-events .hs-list-strip {
  display: flex;
  flex-direction: row;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid var(--hs-gray-border);
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  align-items: center; 
  height: 110px !important;
  min-height: 110px !important;
  max-height: 110px !important;
  flex-shrink: 0 !important; 
}
@media (hover: hover) {
  .hs-section-events .hs-list-strip:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
  }
}

.hs-section-events .hs-list-img-wrap {
  width: 195px;
  min-width: 195px;
  height: 100% !important; 
  flex-shrink: 0;
  position: relative;
  background: #000000;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px 0 0 8px;
}

.hs-section-events .hs-list-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hs-section-events #modal-carousel-controls {
  justify-content: center !important;
}

.hs-section-events .hs-list-content {
  padding: 15px 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hs-section-events .hs-list-mobile-date {
  display: none;
  font-family: var(--hs-font-head);
  font-size: 0.75rem;
  color: var(--hs-gold);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.hs-section-events .hs-list-content h3 {
  font-family: var(--hs-font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--hs-dark);
  margin: 0 0 12px 0;
  line-height: 1.3;
}
.hs-section-events .hs-list-meta {
  font-family: var(--hs-font-body);
  font-size: 0.8rem;
  color: var(--hs-text-body);
  margin-top: 10px;
  margin-bottom: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 15px;
  overflow: hidden;
}
.hs-section-events .hs-list-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.hs-section-events .hs-list-meta i {
  color: var(--hs-gold);
  width: 14px;
  text-align: center;
  margin-top: 3px;
  flex-shrink: 0;
}

.hs-section-events .hs-list-action {
  padding: 15px 20px 15px 0;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.hs-section-events .hs-btn-side {
  background: var(--hs-gold);
  color: var(--hs-dark);
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  box-sizing: border-box;
  font-family: var(--hs-font-head);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none !important;
}
@media (hover: hover) {
  .hs-section-events .hs-list-strip:hover .hs-btn-side {
    background: var(--hs-dark);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(240, 179, 35, 0.4);
  }
}

/* --- 9. Buttons (Global) --- */
.hs-section-events .ff-btn-submit {
  background-color: var(--hs-gold);
  color: var(--hs-dark);
  border: none;
  border-radius: 4px;
  font-family: var(--hs-font-head);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  width: max-content;
  box-sizing: border-box;
}

.hs-section-events .ff-btn-submit:hover {
  background-color: var(--hs-dark);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(240, 179, 35, 0.4);
  transform: translateY(-2px);
}

/* --- 10. Wide Overrides (max-width: 1920px) --- */
/* The base CSS applies infinitely, but you can hook into this for wide screens */
@media (max-width: 1920px) {
}

/* --- 11. Desktop Small / Laptop Overrides (max-width: 1130px) --- */
@media (max-width: 1130px) {

  .hs-section-events .hs-card-v1 {
    flex: 0 0 calc((100% - (12px * 3)) / 4);
    max-width: calc((100% - (12px * 3)) / 4);
  }

  .hs-section-events #hs-modal-overlay {
    padding: 20px 15px 15px 15px;
    align-items: center;
  }
  .hs-section-events .hs-modal-dialog {
    height: auto;
    max-height: 100%;
  }
  .hs-section-events .hs-modal-content-box {
    border-radius: 12px;
    flex-direction: column;
  }

  .hs-section-events .hs-shared-close {
    top: 12px;
    right: 12px;
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    position: absolute;
    z-index: 20;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--hs-gray-border);
  }
  .hs-section-events .hs-modal-close-text {
    display: none;
  }
  .hs-section-events .hs-modal-close-icon {
    margin-top: 0;
    font-size: 1.5rem;
    color: var(--hs-dark);
  }

  .hs-section-events .hs-split-preview {
    flex-direction: column;
    height: auto !important;
    max-height: 100%;
    overflow-y: auto !important;
  }
  .hs-section-events .hs-preview-img-wrapper {
    flex: 0 0 auto;
    width: calc(100% - 30px) !important;
    margin: 15px 15px 0 15px !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    border-radius: 8px !important;
  }

  .hs-section-events .hs-preview-text-wrapper {
    padding: 15px !important;
    flex: 0 0 auto !important;
    justify-content: flex-start;
    overflow-y: visible !important;
    min-height: auto !important;
  }
  .hs-section-events .hs-preview-text-wrapper .hs-modal-top-row {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 15px !important;
    margin-bottom: 20px !important;
  }
  .hs-section-events .hs-preview-text-wrapper .hs-mod-title {
    font-size: 1.3rem !important;
    margin-bottom: 0 !important;
    flex: 1 1 auto !important;
  }
  .hs-section-events .hs-preview-text-wrapper .hs-mod-meta-wrapper {
    flex-direction: row !important;
    align-items: center !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 15px !important;
    flex: 0 0 auto !important;
  }
  .hs-section-events .hs-preview-text-wrapper .hs-mod-meta {
    flex-direction: row !important;
    align-items: center !important;
    gap: 15px !important;
  }
  .hs-section-events .hs-preview-text-wrapper .hs-mod-blurb {
    overflow: visible !important;
    flex-grow: 0 !important;
    height: auto !important;
    margin-bottom: 20px !important;
  }

  .hs-section-events .hs-list-preview {
    width: 100%;
    margin: 0;
  }

  .hs-section-events .hs-list-header {
    padding: 15px 50px 15px 15px;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    z-index: 10;
    border-bottom: 1px solid var(--hs-gray-border);
  }
  .hs-section-events .hs-list-header h2 {
    margin-right: 0;
    margin-bottom: 0;
  }

  .hs-section-events #hs-modal-overlay .hs-modal-mobile-filter-wrap {
    max-width: 100%;
    width: 100%;
    display: flex !important;
    margin-top: 0;
    box-sizing: border-box;
  }
  .hs-section-events #hs-modal-overlay .hs-filter-controls {
    display: none !important;
  }

  .hs-section-events .hs-list-body {
    padding: 15px;
    gap: 10px;
    overflow-y: auto;
  }

  .hs-section-events .hs-list-img-wrap .hs-category-chip,
  .hs-section-events .hs-list-img-wrap .hs-date-badge-v1,
  .hs-section-events .hs-list-img-wrap .hs-multi-date-wrapper {
    /* Kept visible on tablet */
  }

  .hs-section-events .hs-list-mobile-date {
    display: block;
    margin-bottom: 5px;
    text-align: left;
    font-size: 0.75rem;
    color: var(--hs-gold);
    font-weight: 800;
    font-family: var(--hs-font-head);
  }

  .hs-section-events .hs-list-strip .hs-btn-side {
    position: relative;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
    margin: 0;
    flex-shrink: 0;
  }
  .hs-section-events .hs-list-strip .hs-btn-side i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    margin: 0;
  }
}

/* --- 12. Tablet Overrides (max-width: 980px) --- */
/* Inherits from 1130px; add tablet-specific rules here if needed */
@media (max-width: 980px) {
}

/* --- 13. Phone Adjustments (max-width: 767px) --- */
@media (max-width: 767px) {
  .hs-section-events {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    grid-template-rows: auto auto;
    gap: 15px 10px;
    align-items: center;
  }

  .hs-section-events .hs-section-header,
  .hs-section-events .hs-header-left,
  .hs-section-events .hs-header-right {
    display: contents;
  }

  .hs-section-events .hs-filter-controls {
    display: none !important;
  }
  
  .hs-section-events .hs-header-divider {
    grid-column: 3 / 4 !important;
    grid-row: 1 / 2 !important;
    display: block !important;
  }

  .hs-section-events .hs-desktop-divider {
    display: none !important;
  }

  .hs-section-events .hs-section-title {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    text-align: left;
    font-size: 1.15rem;
    margin: 0;
    line-height: 1.2;
  }

  .hs-section-events .hs-btn-view-all {
    display: none !important;
  }

  .hs-section-events .hs-header-right .hs-cal-dropdown-container {
    grid-column: 4 / 5 !important;
    grid-row: 1 / 2 !important;
    display: flex;
    justify-content: flex-end;
  }

  .hs-section-events .hs-main-mobile-filter {
    grid-column: 2 / 3 !important;
    grid-row: 1 / 2 !important;
    margin: 0 !important;
    width: auto !important;
    min-width: 120px;
    box-sizing: border-box;
    display: flex !important;
  }
  
  .hs-section-events .hs-mobile-filter-container {
    width: 100%;
  }

  .hs-section-events .hs-events-track {
    grid-column: 1 / -1;
    grid-row: 2 / 3;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 0;
    padding-bottom: 0;
    padding-top: 0;
  }

  .hs-section-events .hs-carousel-controls-wrapper {
    grid-row: 2 / 3 !important;
  }

}

@media (max-width: 480px) {
  .hs-section-events {
    grid-template-columns: 1fr auto auto;
    grid-template-rows: auto auto auto;
  }
  .hs-section-events .hs-section-title {
    grid-column: 1 / -1;
    grid-row: 1 / 2;
    text-align: center;
  }
  .hs-section-events .hs-main-mobile-filter {
    grid-column: 1 / 2 !important;
    grid-row: 2 / 3 !important;
    width: 100% !important;
  }
  .hs-section-events .hs-header-divider {
    grid-column: 2 / 3 !important;
    grid-row: 2 / 3 !important;
    display: block !important;
  }
  .hs-section-events .hs-header-right .hs-cal-dropdown-container {
    grid-column: 3 / 4 !important;
    grid-row: 2 / 3 !important;
  }
  .hs-section-events .hs-events-track {
    grid-row: 3 / 4;
  }
  .hs-section-events .hs-carousel-controls-wrapper {
    grid-row: 3 / 4 !important;
  }
}

@media (max-width: 767px) {
  .hs-section-events .hs-card-v1 {
    flex: none;
    max-width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 1fr;
    padding: 0;
    border: 1px solid var(--hs-gray-border);
    border-radius: 8px;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin-bottom: 0;
  }

  .hs-section-events .hs-card-v1-img-wrap {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    width: 100%;
    aspect-ratio: 16 / 9 !important;
    border-radius: 8px !important;
    margin-top: 0;
    position: relative;
    flex-shrink: 0;
  }

  /* Unhide badges over image */
  .hs-section-events .hs-category-chip,
  .hs-section-events .hs-date-badge-v1 {
    display: block !important;
  }
  .hs-section-events .hs-multi-date-wrapper {
    display: flex !important;
  }

  .hs-section-events .hs-card-v1-body {
    grid-column: 1 / 2;
    grid-row: 1 / 2; /* Overlay directly on top of the image */
    align-self: end;
    display: flex;
    flex-direction: column;
    padding: 30px 15px 12px 15px; /* Extra top padding for smooth gradient fade */
    gap: 2px;
    min-width: 0;
    overflow: hidden;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
    z-index: 5;
    pointer-events: none; /* Allows clicking through to the whole card link if necessary */
  }

  .hs-section-events .hs-mobile-date {
    display: none; /* Hide the sub-date because it is shown in the overlay badge */
  }

  .hs-section-events .hs-card-title {
    font-size: 0.95rem;
    margin: 0;
    text-align: center !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    -webkit-line-clamp: unset;
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    padding: 0;
    border: none;
  }

  .hs-section-events .hs-card-meta {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0;
    font-size: 0.75rem;
    overflow: hidden;
    color: #e2e8f0 !important;
  }

  .hs-section-events .hs-card-meta i {
    margin-top: 2px;
  }

  .hs-section-events .hs-btn-full {
    display: none !important;
  }

  .hs-section-events .hs-card-register-btn {
    display: none !important;
  }

  .hs-section-events .hs-meta-register-btn {
    display: inline-flex !important;
    background: var(--hs-gold);
    color: var(--hs-dark);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.55rem;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    font-family: var(--hs-font-head);
    line-height: 1;
    letter-spacing: 0.5px;
    gap: 0;
    pointer-events: auto; /* Enable clicks */
  }

  /* --- Mobile Carousel Floating Arrows --- */
  .hs-section-events .hs-carousel-controls-wrapper {
    grid-column: 1 / -1 !important;
    align-self: center !important;
    justify-self: stretch !important; /* Force to span full width of the grid row */
    margin-top: 0 !important; /* Centered on the full card */
    position: relative !important;
    top: auto !important; left: auto !important; right: auto !important; transform: none !important;
    display: flex !important;
    justify-content: space-between !important;
    width: 100% !important;
    pointer-events: none !important; /* Let clicks pass through except on buttons */
    z-index: 10 !important;
  }

  .hs-section-events .hs-carousel-dots {
    display: none !important;
  }

  .hs-section-events .hs-carousel-btn {
    pointer-events: auto;
    background: #ffcc00 !important;
    color: #333 !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    border-radius: 50%;
    border: none !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3) !important;
    margin: 0 !important; 
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    transition: all 0.3s ease !important;
  }
  
  .hs-section-events .hs-carousel-btn.hs-carousel-prev {
    position: absolute !important;
    left: -20px !important;
    transform: translateY(-50%) !important;
  }

  .hs-section-events .hs-carousel-btn.hs-carousel-next {
    position: absolute !important;
    right: -20px !important;
    transform: translateY(-50%) !important;
  }

  .hs-section-events .hs-carousel-btn i {
    font-size: 1.2rem !important;
    margin: 0 !important;
  }

  .hs-section-events .hs-list-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 1fr;
    padding: 0;
    border: 1px solid var(--hs-gray-border);
    border-radius: 8px;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin-bottom: 12px;
  }

  .hs-section-events .hs-list-img-wrap {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    width: 100%;
    aspect-ratio: 16 / 9 !important;
    border-radius: 0;
    margin-top: 0;
    position: relative;
    flex-shrink: 0;
  }

  /* Unhide badges inside list view on mobile */
  .hs-section-events .hs-list-img-wrap .hs-category-chip,
  .hs-section-events .hs-list-img-wrap .hs-date-badge-v1 {
    display: block !important;
  }
  .hs-section-events .hs-list-img-wrap .hs-multi-date-wrapper {
    display: flex !important;
  }

  .hs-section-events .hs-list-content {
    grid-column: 1 / 2;
    grid-row: 1 / 2; /* Overlay directly on top of the image */
    align-self: end;
    display: flex;
    flex-direction: column;
    padding: 30px 15px 12px 15px; /* Extra top padding for smooth gradient fade */
    gap: 2px;
    min-width: 0;
    overflow: hidden;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
    z-index: 5;
    pointer-events: none; /* Allows clicking through to the whole card link if necessary */
  }

  .hs-section-events .hs-list-mobile-date {
    display: none;
  }

  .hs-section-events .hs-list-content h3 {
    font-size: 0.95rem;
    margin: 0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    -webkit-line-clamp: unset;
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  }

  .hs-section-events .hs-list-meta {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 10px;
    margin: 0;
    font-size: 0.75rem;
    overflow: hidden;
    color: #e2e8f0 !important;
  }

  .hs-section-events .hs-list-meta span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hs-section-events .hs-list-action {
    display: none !important;
  }

  .hs-section-events .hs-list-action .hs-btn-side {
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    border-radius: 50% !important;
    background: var(--hs-gold) !important;
    color: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0;
  }
  
  .hs-section-events .hs-list-action .hs-btn-side i {
    font-size: 12px;
    margin: 0;
    color: white !important;
    text-shadow: none;
  }

}

/**
 * =============================================================================
 * SIDEBAR VIEW (IMPORTANT DATES)
 * =============================================================================
 * PURPOSE: Styling and layout for SIDEBAR VIEW (IMPORTANT DATES)
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */
/* Hyper-specific selector for the heading */
body .et_pb_section .hs-events-sidebar-heading,
.hs-events-sidebar-heading {
    font-family: 'Montserrat', sans-serif !important;
    color: #003057 !important;
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin: 0 0 1.25rem 0 !important;
    padding: 10px 0 10px 10px !important;
    border-left: 6px solid #f0b323 !important;
    display: block !important;
}

.hs-events-sidebar {
    --hs-gold: #f0b323;
    --hs-dark: #003057;
    --hs-font-head: 'Montserrat', sans-serif;
    --hs-font-body: 'Open Sans', sans-serif;
    
    font-family: var(--hs-font-body);
    width: 100%; 
    background: var(--hs-dark) !important;
    border-radius: 1rem !important;
    box-shadow: 0 10px 30px rgba(0, 48, 87, 0.15) !important;
    border: none !important;
    display: block; 
    overflow: hidden; 
    box-sizing: border-box;
}

.hs-events-sidebar * {
    box-sizing: border-box;
}

.hs-events-sidebar-scroll-wrapper {
    position: relative;
}

.hs-scroll-arrow-overlay-down {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 8px;
    background: linear-gradient(to bottom, rgba(0,48,87,0), rgba(0,48,87,1) 80%);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 5;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
}

.hs-events-sidebar-scroll-wrapper:hover .hs-scroll-arrow-overlay-down {
    opacity: 0;
}

.hs-scroll-arrow-overlay-down svg {
    color: var(--hs-dark);
    animation: hs-bounce-down 1.5s infinite;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    padding: 4px;
    width: 28px;
    height: 28px;
}

@keyframes hs-bounce-down {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

.hs-events-sidebar-scroll-area {
    max-height: 350px;
    overflow-y: auto;
}

.hs-events-sidebar-scroll-area::-webkit-scrollbar {
    width: 6px;
}
.hs-events-sidebar-scroll-area::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}
.hs-events-sidebar-scroll-area::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 10px;
}

.hs-events-sidebar-scroll-area:hover::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2); 
}
.hs-events-sidebar-scroll-area:hover::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3); 
}
.hs-events-sidebar-scroll-area::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5); 
}

/* Defeating Divi's aggressive single post list styles */
body .et_pb_section .hs-events-sidebar .hs-events-sidebar-list,
.hs-events-sidebar-list {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

body .et_pb_section .hs-events-sidebar .hs-events-sidebar-list .hs-events-sidebar-item,
.hs-events-sidebar-item {
    padding: 1.25rem 1.5rem !important;
    margin: 0 !important;
    list-style: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    background-color: transparent !important;
    transition: background-color 0.2s ease;
    display: block !important;
    position: relative;
    min-height: 90px;
    cursor: pointer;
}

body .et_pb_section .hs-events-sidebar .hs-events-sidebar-list .hs-events-sidebar-item::before,
.hs-events-sidebar-item::before {
    display: none !important;
    content: none !important;
}

.hs-events-sidebar-item:last-child {
    border-bottom: none;
}

.hs-events-sidebar-item:hover {
    background-color: rgba(255,255,255,0.05);
}

body .et_pb_section .hs-events-sidebar .hs-events-sidebar-list .hs-sidebar-event-date,
.hs-sidebar-event-date {
    font-family: var(--hs-font-head) !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    color: var(--hs-gold) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 4px !important;
    margin-top: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    transform: translateY(2px) !important;
}

body .et_pb_section .hs-events-sidebar .hs-events-sidebar-list .hs-sidebar-event-date i,
.hs-sidebar-event-date i {
    color: var(--hs-gold) !important;
}

/* Hyper-specific selector to defeat Divi's single post heading overrides */
body .et_pb_section .hs-events-sidebar .hs-events-sidebar-list .hs-sidebar-event-title,
.hs-sidebar-event-title {
    font-family: var(--hs-font-body) !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
    color: #ffffff !important;
    margin: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}

body .et_pb_section .hs-events-sidebar .hs-events-sidebar-list .hs-events-sidebar-item.is-expanded .hs-sidebar-event-title,
.hs-events-sidebar-item.is-expanded .hs-sidebar-event-title {
    -webkit-line-clamp: unset !important;
}

/**
 * =============================================================================
 * [LAYER 5: BESPOKE MODULES] - HYBRID TAB ENGINE V2
 * =============================================================================
 * PURPOSE: Styling and layout for [LAYER 5: BESPOKE MODULES] - HYBRID TAB ENGINE V2
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */

.hs-section-tabs .hs-body-text,
.hs-section-tabs p {
  margin-top: 0 !important;
  margin-bottom: 8px !important;
  padding-bottom: 0 !important;
}

.hs-section-tabs .hs-subheading-heavy {
  margin: 16px 0 8px 0 !important;
}

.hs-section-tabs .hs-standard-table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 0.5rem 0 25px 0 !important;
  font-size: 0.95rem !important;
  color: #475569 !important;
}

.hs-section-tabs .hs-standard-table th,
.hs-section-tabs .hs-standard-table td {
  padding: 6px 10px !important;
  border: 1px solid #e2e8f0 !important;
  text-align: left !important;
  line-height: 1.5 !important;
}

.hs-section-tabs .hs-standard-table th {
  background-color: var(--hs-dark, #003057) !important;
  color: #ffffff !important;
  font-family: var(--hs-font-head, "Montserrat", sans-serif) !important;
  font-weight: 700 !important;
  font-size: 0.875rem !important;
}

.hs-section-tabs .hs-standard-table tr:nth-child(even) {
  background-color: #f8fafc !important;
}

.hs-section-tabs .hs-standard-table th,
.hs-section-tabs .hs-standard-table td {
  padding: 10px 14px !important;
  vertical-align: middle !important;
}

.hs-section-tabs .hs-standard-table td > *:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.hs-section-tabs {
  position: relative !important;
  z-index: 10 !important;
}

.et_pb_section,
.hs-section-tabs,
.hs-section-tabs .et_pb_row,
.hs-section-tabs .et_pb_column,
.hs-section-tabs .et_pb_module,
.hs-section-tabs .et_pb_code_inner {
  overflow: visible !important;
}

.hs-section-tabs .hs-hybrid-tabs {
  width: 100% !important;
  display: flex !important;
  flex-direction: row !important;
  background: #ffffff !important;
  border-radius: var(--hs-radius, 12px) !important;
  box-shadow: 0 10px 40px rgba(0, 48, 87, 0.08) !important;
  font-family: var(--hs-font-body) !important;
  color: #4b5563 !important;
  overflow: visible !important;
  align-items: flex-start !important;
}

.hs-section-tabs .hs-tab-nav-wrapper {
  width: 300px !important;
  background-color: var(--hs-dark, #003057) !important;
  flex-shrink: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  border-top-left-radius: var(--hs-radius, 12px) !important;
  border-bottom-left-radius: var(--hs-radius, 12px) !important;
  position: sticky !important;
  top: 70px !important;
  z-index: 10 !important;
}

.hs-section-tabs .hs-tab-nav-wrapper.is-fixed {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  border-radius: 0 !important;
  z-index: 99999 !important;
  box-shadow: 0 10px 30px rgba(0, 48, 87, 0.25) !important;
}

.hs-section-tabs .hs-mobile-dropdown-trigger {
  display: none !important;
}

.hs-section-tabs .hs-tab-list {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.hs-section-tabs .hs-nav-group {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  margin: 0 !important;
  padding: 0 !important;
}

.hs-section-tabs .hs-nav-group-toggle {
  width: 100% !important;
  background: rgba(0, 0, 0, 0.15) !important;
  color: #ffffff !important;
  font-family: var(--hs-font-head, "Montserrat", sans-serif) !important;
  font-weight: 700 !important;
  font-size: 0.875rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  padding: 14px 20px !important;
  border: none !important;
  margin: 0 !important;
  text-align: left !important;
  cursor: pointer !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  transition: background 0.3s ease !important;
}

.hs-section-tabs .hs-nav-group-toggle:hover {
  background: rgba(0, 0, 0, 0.25) !important;
}

.hs-section-tabs .hs-nav-group-toggle::after {
  content: "+" !important;
  color: var(--hs-gold, #f0b323) !important;
  font-size: 1.4rem !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  margin-top: -2px !important;
  margin-left: 15px !important;
  flex-shrink: 0 !important;
  transition: transform 0.3s ease !important;
}

.hs-section-tabs .hs-nav-group.open .hs-nav-group-toggle::after {
  transform: rotate(45deg) !important;
}

.hs-section-tabs .hs-nav-sub-items {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: transparent !important;
}

.hs-section-tabs .hs-nav-sub-items-inner {
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  margin: 0 !important;
}

.hs-section-tabs .hs-tab-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  box-sizing: border-box !important;
  min-height: 48px !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  font-family: var(--hs-font-head, "Montserrat", sans-serif) !important;
  font-weight: 600 !important;
  font-size: 0.8rem !important;
  text-transform: none !important;
  color: rgba(255, 255, 255, 0.7) !important;
  padding: 8px 15px 8px 32px !important;
  background: transparent !important;
  border-top: none !important;
  border-right: none !important;
  border-bottom: none !important;
  border-left: 4px solid transparent !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  position: relative !important;
  outline: none !important;
  line-height: 1.3 !important;
}

.hs-section-tabs .hs-tab-btn:hover {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: #ffffff !important;
  padding: 8px 15px 8px 32px !important;
  border-left: 4px solid transparent !important;
}

.hs-section-tabs .hs-tab-btn.active {
  background-color: rgba(240, 179, 35, 0.1) !important;
  color: var(--hs-gold, #f0b323) !important;
  padding: 8px 15px 8px 32px !important;
  border-left: 4px solid var(--hs-gold, #f0b323) !important;
}

.hs-section-tabs .hs-tab-btn::after {
  display: none !important;
  content: none !important;
}

.hs-section-tabs .hs-tab-panels {
  flex-grow: 1 !important;
  padding: 45px 50px !important;
  background-color: #ffffff !important;
  border-top-right-radius: var(--hs-radius, 12px) !important;
  border-bottom-right-radius: var(--hs-radius, 12px) !important;
  min-width: 0 !important;
}

.hs-section-tabs .hs-tab-panel {
  display: none !important;
  opacity: 0 !important;
  transform: translateY(10px) !important;
  transition: opacity 0.4s ease, transform 0.4s ease !important;
}

.hs-section-tabs .hs-tab-panel.active {
  display: block !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.hs-section-tabs ul.hs-gold-ticks {
  margin-bottom: 8px !important;
  padding-left: 0 !important;
  padding-bottom: 0 !important;
  list-style-type: none !important;
}

.hs-section-tabs ul.hs-gold-ticks li {
  font-family: var(--hs-font-body, "Open Sans", sans-serif) !important;
  font-size: 1rem !important;
  line-height: 1.6em !important;
  color: #475569 !important;
  position: relative !important;
  padding-left: 30px !important;
  margin-bottom: 10px !important;
  padding-bottom: 0 !important;
}

.hs-section-tabs ul.hs-gold-ticks li:last-child {
  margin-bottom: 0 !important;
}

.hs-section-tabs ul.hs-gold-ticks li::before,
.hs-section-tabs .hs-standard-table td ul li::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 4px !important;
  width: 18px !important;
  height: 18px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23f0b323' d='M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat !important;
  background-size: contain !important;
}

.hs-section-tabs .hs-dropdown-label {
  background: var(--hs-gold, #f0b323) !important;
  color: var(--hs-dark, #003057) !important;
  font-family: var(--hs-font-body, "Open Sans", sans-serif) !important;
  font-weight: 700 !important;
  font-size: 0.8rem !important;
  line-height: 1.7em !important;
  letter-spacing: 0px !important;
  padding: 2px 10px !important;
  border-radius: 10px !important;
  text-transform: none !important;
  margin-bottom: 0 !important;
  display: inline-block !important;
}

.hs-section-tabs .hs-nav-group-toggle.hs-direct-link {
  background: rgba(0, 0, 0, 0.15) !important;
  color: #ffffff !important;
  font-size: 0.875rem !important;
  text-transform: uppercase !important;
  padding: 14px 20px !important;
  border-left: none !important;
  min-height: auto !important;
  justify-content: space-between !important;
}

.hs-section-tabs .hs-nav-group-toggle.hs-icon-download::after {
  content: "" !important;
  display: inline-block !important;
  width: 1.2rem !important;
  height: 1.2rem !important;
  margin-top: 0 !important;
  margin-left: 15px !important;
  vertical-align: middle !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0b323' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'%3E%3C/path%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cline x1='10' y1='14' x2='21' y2='3'%3E%3C/line%3E%3C/svg%3E") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  flex-shrink: 0 !important;
  transform: translate(3px, -2px) !important;
}

@media (max-width: 767px) {
  .hs-section-tabs .hs-subheading-heavy {
    font-size: 1rem !important;
    margin: 8px 0 8px 0 !important;
  }

  .hs-section-tabs .hs-body-text,
  .hs-section-tabs p {
    margin-bottom: 8px !important;
    padding-bottom: 0 !important;
  }

  .hs-section-tabs .hs-standard-table:not(.hs-table-scroll) {
    display: block !important;
    border: none !important;
    background: transparent !important;
    margin-top: 0 !important;
  }

  .hs-section-tabs .hs-standard-table:not(.hs-table-scroll) thead {
    display: none !important;
  }

  .hs-section-tabs .hs-standard-table:not(.hs-table-scroll) tbody {
    display: block !important;
  }

  .hs-section-tabs .hs-standard-table:not(.hs-table-scroll) tr {
    display: block !important;
    margin-bottom: 20px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background: #f8fafc !important;
    overflow: hidden !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
  }

  .hs-section-tabs .hs-standard-table:not(.hs-table-scroll) td {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    border: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 12px 15px !important;
    position: relative !important;
    text-align: left !important;
    background: #ffffff !important;
    font-size: 0.875rem !important;
    line-height: 1.4em !important;
  }

  .hs-section-tabs .hs-standard-table:not(.hs-table-scroll) tr td:last-child {
    border-bottom: none !important;
  }

  .hs-section-tabs .hs-standard-table:not(.hs-table-scroll) td::before {
    content: attr(data-label) !important;
    font-family: var(--hs-font-head, "Montserrat", sans-serif) !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    color: var(--hs-dark, #003057) !important;
    margin-bottom: 8px !important;
    display: block !important;
    opacity: 1 !important;
    line-height: 1.4em !important;
  }

  .hs-section-tabs .hs-standard-table:not(.hs-table-scroll) td ul,
  .hs-section-tabs ul.hs-gold-ticks {
    margin-bottom: 12px !important;
    padding-left: 0 !important;
    list-style-type: none !important;
  }

  .hs-section-tabs .hs-standard-table:not(.hs-table-scroll) td ul {
    margin-bottom: 0 !important;
  }

  .hs-section-tabs .hs-standard-table:not(.hs-table-scroll) td ul li,
  .hs-section-tabs ul.hs-gold-ticks li {
    font-family: var(--hs-font-body, "Open Sans", sans-serif) !important;
    font-size: 0.875rem !important;
    line-height: 1.4em !important;
    color: #475569 !important;
    position: relative !important;
    padding-left: 27px !important;
    margin-bottom: 8px !important;
  }

  .hs-section-tabs .hs-standard-table:not(.hs-table-scroll) td ul li::before,
  .hs-section-tabs ul.hs-gold-ticks li::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 2px !important;
    width: 16px !important;
    height: 16px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23f0b323' d='M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat !important;
    background-size: contain !important;
  }

  .hs-section-tabs .hs-hybrid-tabs {
    display: block !important;
    border-radius: var(--hs-radius, 12px) !important;
    box-shadow: 0 5px 25px rgba(0, 48, 87, 0.1) !important;
  }

.hs-section-tabs .hs-tab-nav-wrapper {
    width: 100% !important;
    background-color: #ffffff !important;
    border-radius: var(--hs-radius, 12px) !important;
    position: sticky !important;
    top: 60px !important; /**
 * =============================================================================
 * UPDATE THIS TO YOUR EXACT MENU HEIGHT
 * =============================================================================
 * PURPOSE: Styling and layout for UPDATE THIS TO YOUR EXACT MENU HEIGHT
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    z-index: 1001 !important;
  }

  .hs-section-tabs .hs-mobile-dropdown-trigger {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    background: var(--hs-dark, #003057) !important;
    color: #ffffff !important;
    border: none !important;
    margin: 0 !important;
    padding: 16px 20px !important;
    font-family: var(--hs-font-head, "Montserrat", sans-serif) !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    text-transform: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border-radius: var(--hs-radius, 12px) !important;
    box-shadow: 0 4px 15px rgba(0, 48, 87, 0.15) !important;
    position: relative !important;
    z-index: 1002 !important;
    text-align: left !important;
    line-height: 1.3 !important;
  }

  .hs-section-tabs .hs-mobile-dropdown-trigger > span {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    padding-right: 15px !important;
    gap: 4px !important;
  }

  .hs-section-tabs .hs-mobile-dropdown-trigger::after {
    content: "" !important;
    width: 22px !important;
    height: 22px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    opacity: 0.7 !important;
    transition: transform 0.3s ease !important;
    flex-shrink: 0 !important;
    margin-top: 0 !important;
  }

  .hs-section-tabs .hs-mobile-dropdown-trigger.dropdown-open {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    box-shadow: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  }

  .hs-section-tabs .hs-mobile-dropdown-trigger.dropdown-open::after {
    transform: rotate(-180deg) !important;
  }

  .hs-section-tabs .hs-tab-list {
    display: none !important;
    position: absolute !important;
    top: calc(100% - 15px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: var(--hs-dark, #003057) !important;
    z-index: 9999 !important;
    border-radius: 0 0 var(--hs-radius, 12px) var(--hs-radius, 12px) !important;
    box-shadow: 0 15px 35px rgba(0, 48, 87, 0.25) !important;
    max-height: 60vh !important;
    overflow-y: auto !important;
    border-top: none !important;
  }

  .hs-section-tabs .hs-tab-list.dropdown-open {
    display: flex !important;
    flex-direction: column !important;
    animation: hsDropdownSlideDown 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  }

  .hs-section-tabs .hs-tab-btn {
    padding: 8px 15px 8px 22px !important;
  }

  .hs-section-tabs .hs-tab-btn:hover {
    padding: 8px 15px 8px 22px !important;
  }

  .hs-section-tabs .hs-tab-btn.active {
    padding: 8px 15px 8px 22px !important;
  }

  @keyframes hsDropdownSlideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .hs-section-tabs .hs-nav-group-toggle.hs-direct-link,
  .hs-section-tabs .hs-nav-group-toggle.hs-direct-link.active {
    padding: 14px 20px !important;
    min-height: auto !important;
  }

  .hs-section-tabs .hs-tab-panels {
    padding: 30px 20px 30px 20px !important;
    border-radius: 0 0 var(--hs-radius, 12px) var(--hs-radius, 12px) !important;
    position: relative !important;
    z-index: 1 !important;
  }
}

/* --- Layer 6: Download Buttons --- */
.hs-section-tabs .hs-download-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
  margin-top: 16px !important;
  margin-bottom: 24px !important;
}

.hs-section-tabs .hs-download-card {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px 20px !important;
  background: var(--hs-dark, #003057) !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(0, 48, 87, 0.2) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.hs-section-tabs .hs-download-card:hover {
  background: #001f3b !important;
  transform: translateY(-2px) !important;
}

.hs-section-tabs .hs-download-content {
  display: flex !important;
  flex-direction: column !important;
  padding-right: 15px !important;
  flex-grow: 1 !important;
}

.hs-section-tabs .hs-download-title {
  font-family: var(--hs-font-head, "Montserrat", sans-serif) !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  color: #ffffff !important;
  display: block !important;
  margin-bottom: 2px !important;
  line-height: 1.3 !important;
}

.hs-section-tabs .hs-download-meta {
  font-family: var(--hs-font-body, "Open Sans", sans-serif) !important;
  font-size: 0.8rem !important;
  color: rgba(255, 255, 255, 0.75) !important;
  line-height: 1.4 !important;
  display: block !important;
}

.hs-section-tabs .hs-download-icon {
  color: var(--hs-gold, #f0b323) !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.hs-section-tabs .hs-download-icon svg {
  width: 22px !important;
  height: 22px !important;
}

@media (max-width: 767px) {
  .hs-section-tabs .hs-download-meta {
    display: none !important;
  }
  .hs-section-tabs .hs-download-title {
    margin-bottom: 0 !important;
    font-size: 1rem !important;
  }
  .hs-section-tabs .hs-download-card {
    padding: 16px 20px !important;
  }
}

.hs-section-tabs .hs-heading-bordered,
.hs-section-tabs .hs-subheading-heavy {
    font-family: 'Montserrat', sans-serif !important;
}

/* Language Switcher UI & Logic */
.language-switcher-container {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    z-index: 20;
}
.lang-switch-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 6px 12px;
    margin-left: -1px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    font-family: var(--hs-font-head, "Montserrat", sans-serif);
    transition: all 0.2s ease;
}
.lang-switch-btn:first-child { border-top-left-radius: 6px; border-bottom-left-radius: 6px; }
.lang-switch-btn:last-child { border-top-right-radius: 6px; border-bottom-right-radius: 6px; }
.lang-switch-btn:hover { background: #f1f5f9; }
.lang-switch-btn.active { background: var(--hs-dark, #003057); color: #ffffff; border-color: var(--hs-dark, #003057); z-index: 1; position: relative; }

.hs-lang-hidden {
    display: none !important;
}

/**
 * =============================================================================
 * HORIZONTAL SCROLL TABLES (MOVED FROM CORE.CSS)
 * =============================================================================
 * PURPOSE: Styling and layout for HORIZONTAL SCROLL TABLES (MOVED FROM CORE.CSS)
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */

/* --- Responsive Wrapper & Scroll Arrow --- */
.hs-table-container-relative {
  position: relative;
  width: 100%;
  container-type: inline-size;
}

.hs-table-wrapper-scroll {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  margin-bottom: 0 !important;
  background: #ffffff !important;
}

.hs-scroll-arrow-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 60px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.9) 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.hs-scroll-arrow-overlay.is-visible {
  opacity: 1;
}

.hs-scroll-arrow-overlay svg {
  color: var(--hs-dark);
  animation: hs-bounce-right 1.5s infinite;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  padding: 4px;
  width: 28px;
  height: 28px;
}

@keyframes hs-bounce-right {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-4px); }
}

@container (min-width: 980px) {
  .hs-scroll-arrow-overlay {
    display: none !important;
  }
}

/* --- Sticky First Column Strategy --- */
.hs-table-sticky {
  /* min-width removed so native table layout handles scroll triggers */
}

.hs-table-sticky th:first-child,
.hs-table-sticky td:first-child {
  position: -webkit-sticky !important;
  position: sticky !important;
  left: 0 !important;
  z-index: 2 !important;
  border-right: none !important;
  box-shadow: inset -2px 0 0 var(--hs-gold), 4px 0 8px -2px rgba(0,0,0,0.15) !important;
}

.hs-table-sticky th:first-child {
  background-color: var(--hs-dark) !important;
  z-index: 3 !important;
}

.hs-table-sticky tbody tr td:first-child {
  background-color: #ffffff !important;
}

.hs-table-sticky tbody tr:nth-child(even) td:first-child {
  background-color: #f8fafc !important;
}

/**
 * =============================================================================
 * DATA TABLES COMPONENT
 * =============================================================================
 * PURPOSE: Styling and layout for DATA TABLES COMPONENT
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */

/* --- Base Table Styling --- */
.hs-standard-table {
  width: 100% !important;
  border-collapse: collapse !important;
  font-family: var(--hs-font-body) !important;
  color: #4b5563 !important;
  margin-bottom: 0 !important;
  background: #ffffff !important;
}

.hs-standard-table th {
  background-color: var(--hs-dark) !important;
  color: #ffffff !important;
  font-family: var(--hs-font-head) !important;
  font-weight: 700 !important;
  padding: 10px 14px !important;
  text-align: center !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  font-size: 1rem !important;
}

.hs-standard-table td {
  padding: 10px 14px !important;
  vertical-align: middle !important;
  border-bottom: 1px solid #e2e8f0 !important;
  border-right: 1px solid #f1f5f9 !important;
  line-height: 1.4em !important;
  text-align: center !important;
  font-size: 0.95rem !important;
}

/* --- Row Titles & Mobile Constraints --- */
.hs-standard-table td:first-child,
.hs-standard-table th:first-child {
  text-align: left !important;
}

.hs-standard-table td:first-child strong {
  color: var(--hs-dark) !important;
  font-weight: 700 !important;
  font-family: var(--hs-font-head) !important;
}

.hs-standard-table tbody tr:nth-child(even) {
  background-color: #f8fafc !important;
}

.hs-standard-table tr:last-child td {
  border-bottom: none !important;
}

/* Constrain width heavily on Mobile via Container Queries */
@container (max-width: 767px) {
  .hs-standard-table td:first-child,
  .hs-standard-table th:first-child {
    width: 35vw !important;
    min-width: 35vw !important;
    max-width: 35vw !important;
    white-space: normal !important;
    word-break: break-word !important;
  }
}

/* Ensure uniform first-column width on tablet and desktop across multiple tables */
@container (min-width: 768px) {
  .hs-standard-table td:first-child,
  .hs-standard-table th:first-child {
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
    white-space: normal !important;
    word-break: break-word !important;
  }
}

/**
 * =============================================================================
 * [LAYER 5: BESPOKE MODULES] - CUSTOM SLIDERS & QUALITY BAR
 * =============================================================================
 * PURPOSE: Styling and layout for [LAYER 5: BESPOKE MODULES] - CUSTOM SLIDERS & QUALITY BAR
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */

/* --- Quality Bar Slider Controls --- */
.hs-section-quality-bar .et-pb-slider-arrows {
  position: absolute !important;
  top: 10px !important;
  right: 16px !important;
  left: auto !important;
  bottom: auto !important;
  display: flex !important;
  gap: 8px !important;
  z-index: 30 !important;
  width: auto !important;
  height: auto !important;
  pointer-events: none;
}

.hs-section-quality-bar .et-pb-slider-arrows a {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  margin: 0 !important;
  transform: none !important;
  width: 40px !important;
  height: 32px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 4px !important;
  color: var(--hs-gold) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
  backdrop-filter: blur(4px);
  opacity: 1 !important;
  pointer-events: auto;
  text-decoration: none !important;
}

.hs-section-quality-bar .et-pb-slider-arrows a::before {
  font-size: 16px !important;
  color: inherit !important;
  line-height: 1 !important;
  position: relative !important;
  margin: 0 !important;
  padding: 0 !important;
}

.hs-section-quality-bar .et-pb-slider-arrows a span {
  display: none !important;
}

.hs-section-quality-bar .et-pb-slider-arrows a:hover {
  background: var(--hs-gold) !important;
  color: var(--hs-dark) !important;
  border-color: var(--hs-gold) !important;
}

.hs-section-quality-bar .hs-quality-bar-icon-text-grid .et_pb_icon .et-pb-icon {
  color: #4caf50 !important;
}

@media (max-width: 767px) {
  .hs-section-quality-bar .et-pb-slider-arrows {
    top: auto !important;
    bottom: 5px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    justify-content: space-between !important;
    padding: 0 15px !important;
  }

  .hs-section-quality-bar .et_pb_slide {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
  }

  .hs-section-quality-bar .et_pb_slide_0 .et_pb_slide_description {
    transform: translateY(-20px) !important;
  }

  .hs-section-quality-bar .et_pb_slide_1 .et_pb_slide_description {
    transform: translateY(-10px) !important;
  }

  .hs-section-quality-bar .et_pb_slide_2 .et_pb_slide_description {
    transform: translateY(-15px) !important;
  }

  .hs-section-quality-bar .et_pb_slide_3 .et_pb_slide_description {
    transform: translateY(-10px) !important;
  }

  .hs-section-quality-bar .et_pb_slide_4 .et_pb_slide_description {
    transform: translateY(-15px) !important;
  }

  .hs-section-quality-bar .et_pb_slide_5 .et_pb_slide_description {
    transform: translateY(-15px) !important;
  }

  .hs-section-quality-bar .et_pb_slide_6 .et_pb_slide_description {
    transform: translateY(-10px) !important;
  }

  .hs-section-quality-bar .et_pb_slide_7 .et_pb_slide_description {
    transform: translateY(-15px) !important;
  }

  .hs-section-quality-bar .et_pb_slide_7 .hs-quality-bar-focus-element {
    margin-top: 1.5rem !important;
    padding-top: 10px !important;
  }

  .hs-section-quality-bar .et_pb_slide_7 .hs-quality-bar-focus-element {
    border: none !important;
  }

  .hs-section-quality-bar .et_pb_slide_7 .hs-quality-bar-focus-element .et_pb_icon_7 {
    margin-top: 15px !important;
  }

  .hs-section-quality-bar .hs-qa-slider .et_pb_slide_description {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    width: 100% !important;
    padding-top: 0px !important;
    padding-bottom: 35px !important;
    margin-top: 0 !important;
  }

  .hs-section-quality-bar
    .hs-qa-slider
    .et_pb_slide_description
    > .et_pb_group:not(.hs-quality-bar-focus-element) {
    order: 1 !important;
    width: 100% !important;
    margin-bottom: 0 !important;
  }

  .hs-section-quality-bar
    .hs-qa-slider
    .et_pb_slide_description
    > .hs-quality-bar-focus-element {
    order: 2 !important;
    width: 100% !important;
    margin-top: 1rem !important;
    margin-bottom: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
  }

  .hs-section-quality-bar .hs-quality-bar-focus-element .et_pb_text {
    margin: 0 !important;
    padding: 0 !important;
  }
  .hs-section-quality-bar .hs-quality-bar-focus-element .et_pb_text p {
    margin: 0 !important;
    line-height: 1 !important;
  }

  .hs-section-quality-bar .hs-qa-slider .et_pb_slide_description h1,
  .hs-section-quality-bar .hs-qa-slider .et_pb_slide_description h2,
  .hs-section-quality-bar .hs-qa-slider .et_pb_slide_description h3 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .hs-section-quality-bar .hs-quality-bar-list .et_pb_slide_description > .et_pb_group > .et_pb_text {
    margin-bottom: 5px !important;
    padding-bottom: 0 !important;
  }

  .hs-section-quality-bar .hs-quality-bar-list .et_grid_group {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    width: 100% !important;
  }

  .hs-section-quality-bar .hs-quality-bar-list .et_grid_group > .et_pb_group {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding: 4px 0 !important;
    margin: 0 !important;
    flex: 0 0 85% !important;
    max-width: 85% !important;
  }
  
  .hs-section-quality-bar .hs-quality-bar-list .et_grid_group > .et_pb_group:last-child {
    border-bottom: none !important;
  }

  .hs-section-quality-bar .hs-quality-bar-list .et_grid_group > .et_pb_group:nth-child(2),
  .hs-section-quality-bar .hs-quality-bar-list .et_grid_group > .et_pb_group:nth-child(3) {
    flex: 0 0 42.5% !important;
    max-width: 42.5% !important;
  }

  .hs-section-quality-bar .hs-quality-bar-list .et_grid_group > .et_pb_group:nth-child(2) .et_pb_text,
  .hs-section-quality-bar .hs-quality-bar-list .et_grid_group > .et_pb_group:nth-child(2) .et_pb_text_inner,
  .hs-section-quality-bar .hs-quality-bar-list .et_grid_group > .et_pb_group:nth-child(2) li {
    text-align: right !important;
    padding-right: 8px !important;
  }

  .hs-section-quality-bar .hs-quality-bar-list .et_grid_group > .et_pb_group:nth-child(3) .et_pb_text,
  .hs-section-quality-bar .hs-quality-bar-list .et_grid_group > .et_pb_group:nth-child(3) .et_pb_text_inner,
  .hs-section-quality-bar .hs-quality-bar-list .et_grid_group > .et_pb_group:nth-child(3) li {
    text-align: left !important;
    padding-left: 8px !important;
  }

  .hs-section-quality-bar .hs-quality-bar-list .et_grid_group > .et_pb_group:nth-child(2) li {
    position: relative !important;
  }

  .hs-section-quality-bar .hs-quality-bar-list .et_grid_group > .et_pb_group:nth-child(2) li::after {
    content: "|" !important;
    position: absolute !important;
    right: -3px !important;
    top: 0 !important;
    color: rgba(255, 255, 255, 0.4) !important;
  }

  .hs-section-quality-bar .hs-quality-bar-list .et_grid_group .et_pb_text,
  .hs-section-quality-bar .hs-quality-bar-list .et_grid_group .et_pb_text_inner,
  .hs-section-quality-bar .hs-quality-bar-list .et_grid_group ul,
  .hs-section-quality-bar .hs-quality-bar-list .et_grid_group li,
  .hs-section-quality-bar .hs-quality-bar-list .et_grid_group p {
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    list-style: none !important;
    width: 100% !important;
  }

  .hs-section-quality-bar .hs-quality-bar-list ul {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .hs-section-quality-bar .hs-quality-bar-list ul li {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4em !important;
    text-align: center !important;
    list-style: none !important;
  }

  .hs-section-quality-bar .hs-quality-bar-list ul li::before,
  .hs-section-quality-bar .hs-quality-bar-list ul li::after {
    display: none !important;
  }

  /* Slide 6: Environmental & Social Responsibility */
  .hs-section-quality-bar .hs-quality-bar-icon-text-grid .et_pb_slide_description > .et_pb_group > .et_pb_text {
    margin-bottom: 5px !important;
    padding-bottom: 0 !important;
  }

  .hs-section-quality-bar .hs-quality-bar-icon-text-grid .et_grid_group {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    width: 100% !important;
  }

  .hs-section-quality-bar .hs-quality-bar-icon-text-grid .et_grid_group > .et_pb_group {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding: 4px 0 !important;
    margin: 0 auto !important;
    flex: 0 0 85% !important;
    max-width: 85% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .hs-section-quality-bar .hs-quality-bar-icon-text-grid .et_grid_group > .et_pb_group:nth-last-child(2) {
    order: 6 !important;
    border-bottom: none !important;
  }

  .hs-section-quality-bar .hs-quality-bar-icon-text-grid .et_grid_group > .et_pb_group:last-child {
    order: 5 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
  }

  .hs-section-quality-bar .hs-quality-bar-icon-text-grid .et_grid_group .et_pb_icon {
    display: none !important;
  }

  .hs-section-quality-bar .hs-quality-bar-icon-text-grid .et_grid_group .et_pb_text,
  .hs-section-quality-bar .hs-quality-bar-icon-text-grid .et_grid_group .et_pb_text_inner {
    margin: 0 auto !important;
    padding: 0 !important;
    text-align: center !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .hs-section-quality-bar .hs-quality-bar-icon-text-grid .et_grid_group p {
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    width: 100% !important;
  }

}

.hs-section-quality-bar .et_pb_text ul,
.hs-section-quality-bar .et_pb_text ol {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.hs-section-quality-bar #left-area ul,
.hs-section-quality-bar .entry-content ul,
.hs-section-quality-bar .et-l--body ul {
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1.4em !important;
}

.hs-section-quality-bar .et_pb_text ul li {
  margin-bottom: 4px !important;
}

/**
 * =============================================================================
 * [LAYER 5: BESPOKE MODULES] - POST SLIDER CARDS
 * =============================================================================
 * PURPOSE: Styling and layout for [LAYER 5: BESPOKE MODULES] - POST SLIDER CARDS
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */

.hs-section-post-slider .hs-story-card {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 12px !important;
  aspect-ratio: 9 / 16 !important;
  height: 100% !important;
  width: calc(100% - 1rem) !important;
  max-width: calc(100% - 1rem) !important;
  min-width: calc(100% - 1rem) !important;
  margin: 0 0.5rem !important;
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  background-color: var(--hs-dark) !important;
  box-shadow: none !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  cursor: pointer !important;
  text-decoration: none !important;
}

.hs-section-post-slider .hs-story-card:hover {
  transform: translateY(-5px) !important;
}

.hs-section-post-slider .hs-story-image {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  z-index: 0 !important;
}

.hs-section-post-slider .hs-story-image .et_pb_image_wrap,
.hs-section-post-slider .hs-story-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.hs-section-post-slider .hs-story-card:hover .hs-story-image img {
  transform: scale(1.06) !important;
}

.hs-section-post-slider .hs-story-image .et_pb_image_wrap::after {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 110px !important;
  background: linear-gradient(
    to bottom,
    rgba(0, 48, 87, 0.6) 0%,
    transparent 100%
  ) !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

.hs-section-post-slider .hs-story-image .et_pb_image_wrap::before {
  content: "" !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 75% !important;
  background: linear-gradient(
    to top,
    rgba(0, 48, 87, 0.95) 0%,
    transparent 100%
  ) !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

.hs-section-post-slider .hs-badge-location {
  position: absolute !important;
  top: 20px !important;
  left: 0 !important;
  right: 0 !important;
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
  text-align: center !important;
  z-index: 20 !important;
  margin: 0 !important;
  pointer-events: none !important;
}

.hs-section-post-slider .hs-badge-location .et_pb_text_inner,
.hs-section-post-slider .hs-badge-location p {
  color: white !important;
  font-family: var(--hs-font-head) !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6) !important;
  letter-spacing: 0.5px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto !important;
  width: max-content !important;
}

.hs-section-post-slider .hs-badge-location .et_pb_text_inner::before,
.hs-section-post-slider .hs-badge-location p::before {
  content: "\f041" !important;
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  color: var(--hs-gold) !important;
  margin-right: 6px !important;
  text-shadow: none !important;
  font-size: 0.8rem !important;
}

.hs-section-post-slider .hs-badge-location .et_pb_text_inner p::before {
  display: none !important;
}

.hs-section-post-slider .hs-badge-primary {
  position: absolute !important;
  top: 48px !important;
  left: 0 !important;
  right: 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  text-align: center !important;
  z-index: 20 !important;
  margin: 0 !important;
  pointer-events: none !important;
}

.hs-section-post-slider .hs-badge-primary .et_pb_text_inner {
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 50px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 5px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
  width: max-content !important;
  max-width: 90% !important;
  margin: 0 auto !important;
}

.hs-section-post-slider .hs-badge-primary p {
  background: var(--hs-gold) !important;
  color: var(--hs-dark) !important;
  padding: 6px 16px !important;
  border-radius: 50px !important;
  font-family: var(--hs-font-head) !important;
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  letter-spacing: 0.5px !important;
  text-align: center !important;
  width: max-content !important;
  display: block !important;
}

.hs-section-post-slider .hs-story-excerpt {
  display: none !important;
}

.hs-section-post-slider .hs-story-date {
  position: relative !important;
  z-index: 10 !important;
  margin-top: auto !important;
  margin-bottom: 8px !important;
  padding: 0 25px !important;
  display: flex !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
}

.hs-section-post-slider .hs-story-date p,
.hs-section-post-slider .hs-story-date .et_pb_text_inner {
  color: var(--hs-gold) !important;
  font-family: var(--hs-font-head) !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  margin: 0 auto !important;
  padding-bottom: 0 !important;
}

.hs-section-post-slider .hs-story-date sup {
  font-size: 0.65em !important;
  vertical-align: super !important;
  text-transform: uppercase !important;
  line-height: 0 !important;
  margin-left: 1px !important;
}

.hs-section-post-slider .hs-story-title {
  position: relative !important;
  z-index: 10 !important;
  margin-top: 0 !important;
  margin-bottom: 12px !important;
  padding: 0 25px !important;
  display: flex !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
}

.hs-section-post-slider .hs-story-title .et_pb_text_inner,
.hs-section-post-slider .hs-story-title p {
  color: white !important;
  font-family: var(--hs-font-head) !important;
  font-weight: 800 !important;
  font-size: 1.4rem !important;
  line-height: 1.25 !important;
  margin: 0 auto !important;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4) !important;
  text-align: center !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 4 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  width: 100% !important;
  text-decoration: none !important;
  padding-bottom: 0 !important;
}

.hs-section-post-slider .hs-story-tags {
  position: relative !important;
  z-index: 10 !important;
  margin-bottom: 25px !important;
  padding: 0 12px !important;
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
}

.hs-section-post-slider .hs-story-tags p {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  width: 100% !important;
}

.hs-section-post-slider .hs-story-tags span {
  background: rgba(240, 179, 35, 0.15) !important;
  border: 1px solid rgba(240, 179, 35, 0.3) !important;
  color: var(--hs-gold) !important;
  font-family: var(--hs-font-head) !important;
  font-size: 0.55rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  padding: 5px 8px !important;
  border-radius: 6px !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  text-align: center !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}

/**
 * =============================================================================
 * GLOBAL CAROUSEL MOBILE ARROWS
 * =============================================================================
 * PURPOSE: Styling and layout for GLOBAL CAROUSEL MOBILE ARROWS
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */
@media only screen and (max-width: 980px) {
  .hs-section-post-slider .et_pb_group_carousel_arrow,
  .hs-section-testimonials-condensed .et_pb_group_carousel_arrow,
  .hs-section-photo-testimonials .et_pb_group_carousel_arrow {
    width: 30px !important;
    height: 30px !important;
    background-color: var(--hs-gold) !important;
    border: none !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    opacity: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 100 !important;
  }
  .hs-section-post-slider .et_pb_group_carousel_arrow_prev,
  .hs-section-testimonials-condensed .et_pb_group_carousel_arrow_prev,
  .hs-section-photo-testimonials .et_pb_group_carousel_arrow_prev {
    left: -4px !important;
  }

  .hs-section-post-slider .et_pb_group_carousel_arrow_next,
  .hs-section-testimonials-condensed .et_pb_group_carousel_arrow_next,
  .hs-section-photo-testimonials .et_pb_group_carousel_arrow_next {
    right: -4px !important;
  }

  .hs-section-post-slider .et_pb_group_carousel_arrow .et-pb-icon,
  .hs-section-testimonials-condensed .et_pb_group_carousel_arrow .et-pb-icon,
  .hs-section-photo-testimonials .et_pb_group_carousel_arrow .et-pb-icon {
    font-size: 14px !important;
    color: var(--hs-dark) !important;
    font-weight: 900 !important;
    text-shadow: none !important;
  }
}

/**
 * =============================================================================
 * [LAYER 5: BESPOKE MODULES] - PHOTO TESTIMONIALS
 * =============================================================================
 * PURPOSE: Styling and layout for [LAYER 5: BESPOKE MODULES] - PHOTO TESTIMONIALS
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */

.hs-section-photo-testimonials .dipl_interactive_image_card_wrapper figure {
  aspect-ratio: 1 / 1.35 !important;
  width: 100% !important;
  overflow: hidden !important;
  margin: 0 !important;
  border-radius: 8px !important;
  isolation: isolate;
}

.hs-section-photo-testimonials .dipl_interactive_image_card_wrapper img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
}

.hs-section-photo-testimonials
  .dipl_interactive_image_card_wrapper
  figure
  figcaption
  > .dipl_interactive_image_card_wrapper_inner {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
}

.hs-section-photo-testimonials .dipl_interactive_image_card_title {
  position: absolute !important;
  top: auto !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  background-color: var(--hs-dark) !important;
  color: #ffffff !important;
  text-align: center !important;
  border-top: 4px solid var(--hs-gold) !important;
  border-bottom: none !important;
  border-left: none !important;
  border-radius: 0 !important;
  padding: 15px 15px 25px 15px !important;
  margin: 0 !important;
  z-index: 30 !important;
  transform: none !important;
  transition: none !important;
}

.hs-section-photo-testimonials
  .dipl_interactive_image_card_wrapper:hover
  .dipl_interactive_image_card_title,
.hs-section-photo-testimonials
  .dipl_interactive_image_card_wrapper
  figure:hover
  h2 {
  transform: none !important;
  bottom: 0 !important;
  opacity: 1 !important;
}

.hs-section-photo-testimonials .dipl_interactive_image_card_title::after {
  content: "\f005 \f005 \f005 \f005 \f005";
  font-family: "FontAwesome" !important;
  font-weight: 900 !important;
  color: var(--hs-gold) !important;
  font-size: 10px !important;
  letter-spacing: 2px !important;
  position: absolute !important;
  bottom: 6px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}

.hs-section-photo-testimonials .dipl_interactive_image_card_wrapper_content {
  position: absolute !important;
  bottom: 60px !important;
  left: 0 !important;
  right: 0 !important;
  top: auto !important;
  background-color: rgba(0, 48, 87, 0.6) !important;
  background-image: none !important;
  border-top: 3px solid var(--hs-gold) !important;
  border-bottom: none !important;
  border-left: none !important;
  border-right: none !important;
  padding: 1.5rem !important;
  width: 100% !important;
  z-index: 20 !important;
}

.hs-section-photo-testimonials .dipl_interactive_image_card_wrapper_content p {
  color: #ffffff !important;
  text-shadow: none !important;
  margin-bottom: 0 !important;
  font-size: 0.9rem !important;
  line-height: 1.5em !important;
}

@media only screen and (max-width: 980px) {
  .hs-section-photo-testimonials .dipl_interactive_image_card_wrapper::before {
    content: "\f25a";
    font-family: "FontAwesome" !important;
    font-size: 36px !important;
    color: var(--hs-gold) !important;
    position: absolute;
    top: 40% !important;
    left: 50% !important;
    transform: translate(-50%, -50%);
    z-index: 25 !important;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 1;
    animation: hs-tap-pulse 2s infinite;
  }

  .hs-section-photo-testimonials .dipl_interactive_image_card_wrapper::after {
    content: "TAP TO READ";
    font-family: var(--hs-font-head) !important;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    color: var(--hs-gold) !important;
    position: absolute;
    top: 48% !important;
    left: 50% !important;
    transform: translate(-50%, -50%);
    z-index: 25 !important;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    background: rgba(0, 48, 87, 0.6);
    padding: 4px 8px;
    border-radius: 4px;
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 1;
  }

  .hs-section-photo-testimonials
    .dipl_interactive_image_card_wrapper:hover::before,
  .hs-section-photo-testimonials
    .dipl_interactive_image_card_wrapper:hover::after {
    opacity: 0 !important;
    animation: none !important;
  }

  .hs-section-photo-testimonials
    .dipl_interactive_image_card_wrapper:hover
    .dipl_interactive_image_card_wrapper_content {
    opacity: 1 !important;
    visibility: visible !important;
  }

  @keyframes hs-tap-pulse {
    0% {
      transform: translate(-50%, -50%) scale(1);
      opacity: 0.8;
    }
    50% {
      transform: translate(-50%, -50%) scale(1.1);
      opacity: 1;
    }
    100% {
      transform: translate(-50%, -50%) scale(1);
      opacity: 0.8;
    }
  }
}

/**
 * =============================================================================
 * [LAYER 5: BESPOKE MODULES] - CONDENSED TESTIMONIALS
 * =============================================================================
 * PURPOSE: Styling and layout for [LAYER 5: BESPOKE MODULES] - CONDENSED TESTIMONIALS
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */

.hs-section-testimonials-condensed .et_pb_group_carousel_container {
  margin: 0 -0.5rem !important;
  width: calc(100% + 1rem) !important;
}

.hs-section-testimonials-condensed .et_pb_group_carousel_slide {
  padding: 0 0.5rem !important;
  box-sizing: border-box !important;
  height: auto !important;
}

.hs-section-testimonials-condensed .et_pb_group_carousel_track {
  align-items: flex-start !important;
}

.hs-section-testimonials-condensed .et_pb_group_carousel_slide > .et_pb_group {
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  padding: 25px 25px 20px !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  box-shadow: 0 4px 20px rgba(0, 48, 87, 0.08) !important;
  background-color: #ffffff !important;
}

.hs-section-testimonials-condensed
  .et_pb_group_carousel_slide
  > .et_pb_group
  > .et_pb_group {
  display: none !important;
}

.hs-section-testimonials-condensed .et_pb_toggle {
  order: 1 !important;
  flex-grow: 1 !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin-bottom: 0 !important;
}

.hs-section-testimonials-condensed .et_pb_text:nth-of-type(1) {
  order: 2 !important;
  border-top: 1px dashed rgba(0, 48, 87, 0.15) !important;
  padding-top: 12px !important;
  margin-top: 15px !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.hs-section-testimonials-condensed .et_pb_text:nth-of-type(2) {
  order: 3 !important;
  position: relative !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  margin-bottom: 0 !important;
}

.hs-section-testimonials-condensed
  .et_pb_group_carousel_slide
  > .et_pb_group::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  right: 25px !important;
  width: 45px !important;
  height: 5px !important;
  background-color: var(--hs-gold) !important;
  border-bottom-left-radius: 4px !important;
  border-bottom-right-radius: 4px !important;
  z-index: 20 !important;
}

.hs-section-testimonials-condensed
  .et_pb_group_carousel_slide
  > .et_pb_group::after {
  content: "" !important;
  position: absolute !important;
  top: -15px !important;
  left: 0px !important;
  right: auto !important;
  width: 140px !important;
  height: 140px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23003057'%3E%3Cpath d='M10 6H4v8h4l-2 4h3l2-4V6zm10 0h-6v8h4l-2 4h3l2-4V6z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  opacity: 0.12 !important;
  z-index: 0 !important;
  pointer-events: none !important;
}

.hs-section-testimonials-condensed .et_pb_text:nth-of-type(2)::after {
  content: "\2605 \2605 \2605 \2605 \2605" !important;
  position: absolute !important;
  bottom: 17px !important;
  right: 0 !important;
  color: var(--hs-gold) !important;
  font-size: 30px !important;
  letter-spacing: 1px !important;
  line-height: 0.75 !important;
  z-index: 20 !important;
}

.hs-section-testimonials-condensed .et_pb_toggle_title::before {
  display: none !important;
}

.hs-section-testimonials-condensed .et_pb_toggle_title {
  position: relative !important;
  font-family: var(--hs-font-head) !important;
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  color: var(--hs-dark) !important;
  line-height: 1.4em !important;
  padding: 0 32px 0 15px !important;
  margin-bottom: 0 !important;
  background: transparent !important;
  z-index: 10 !important;
}

.hs-section-testimonials-condensed
  .et_pb_toggle_close
  .et_pb_toggle_title::after,
.hs-section-testimonials-condensed
  .et_pb_toggle_open
  .et_pb_toggle_title::after {
  display: block !important;
  position: absolute !important;
  right: 0 !important;
  bottom: 2px !important;
  width: 24px !important;
  height: 24px !important;
  line-height: 22px !important;
  text-align: center !important;
  border-radius: 50% !important;
  background-color: var(--hs-gold) !important;
  color: var(--hs-dark) !important;
  font-family: Arial, sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  transition: transform 0.3s ease, background-color 0.3s ease !important;
  box-sizing: border-box !important;
}

.hs-section-testimonials-condensed
  .et_pb_toggle_close
  .et_pb_toggle_title::after {
  content: "+" !important;
  padding-top: 2px !important;
}

.hs-section-testimonials-condensed
  .et_pb_toggle_open
  .et_pb_toggle_title::after {
  content: "-" !important;
}

.hs-section-testimonials-condensed .et_pb_toggle_content {
  padding: 15px 0 0 0 !important;
  border: none !important;
  background: transparent !important;
}

.hs-section-testimonials-condensed .et_pb_toggle_content,
.hs-section-testimonials-condensed .et_pb_toggle_content p {
  font-family: var(--hs-font-body) !important;
  font-size: 15px !important;
  color: var(--hs-dark) !important;
  line-height: 1.6em !important;
  margin-bottom: 0 !important;
}

.hs-section-testimonials-condensed .et_pb_text:nth-of-type(1) h2,
.hs-section-testimonials-condensed .et_pb_text:nth-of-type(1) p {
  font-family: var(--hs-font-head) !important;
  font-size: var(--wp--preset--font-size--medium) !important;
  font-weight: 800 !important;
  color: var(--hs-dark) !important;
  line-height: 1em !important;
  text-transform: none !important;
  margin-bottom: -2px !important;
  padding-bottom: 0 !important;
}

.hs-section-testimonials-condensed .et_pb_text:nth-of-type(2) p {
  font-family: var(--hs-font-head) !important;
  font-size: var(--wp--preset--font-size--small) !important;
  font-weight: 700 !important;
  color: var(--hs-gold) !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
}

@media (max-width: 767px) {
  .hs-section-tabs .hs-gallery-2col {
    gap: 0.5rem !important;
  }
}

/**
 * =============================================================================
 * [LAYER 5: BESPOKE MODULES] - INTERACTIVE OVERLAYS (GALLERY & FILMSTRIP)
 * =============================================================================
 * PURPOSE: Styling and layout for [LAYER 5: BESPOKE MODULES] - INTERACTIVE OVERLAYS (GALLERY & FILMSTRIP)
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */

/* --- 1. Trigger Classes & Native Hiding --- */
.hs-gallery-container .et_pb_gallery:not(.hs-filmstrip-gallery):not(.hs-section-gallery-bar .et_pb_gallery) {
  display: none !important;
}

.hs-gallery-trigger-split,
.hs-gallery-trigger-full,
.hs-gallery-trigger {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.hs-gallery-trigger-split:hover,
.hs-gallery-trigger-full:hover,
.hs-gallery-trigger:hover {
  transform: translateY(-2px);
}

/**
 * =============================================================================
 * 2. HEADSTART CINEMATIC FILMSTRIP (BASE LAYOUT RESTORED)
 * =============================================================================
 * PURPOSE: Styling and layout for 2. HEADSTART CINEMATIC FILMSTRIP (BASE LAYOUT RESTORED)
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */
.hs-section-gallery-bar .et_pb_gallery {
  position: relative !important;
}

/* Restores the 5-column strip layout */
.hs-section-gallery-bar .et_pb_gallery .et_pb_gallery_items {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 15px !important;
  overflow: hidden !important;
  background: #003057 !important;
}

.hs-section-gallery-bar .et_pb_gallery .et_pb_gallery_item {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

/* Hides images after the 5th one */
.hs-section-gallery-bar .et_pb_gallery .et_pb_gallery_item:nth-child(n + 6) {
  display: none !important;
}

.hs-section-gallery-bar .et_pb_gallery .et_pb_gallery_image {
  margin: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.hs-section-gallery-bar .et_pb_gallery .et_pb_gallery_image img {
  width: 100% !important;
  height: 160px !important;
  object-fit: cover !important;
  filter: brightness(0.95);
  transition: filter 0.5s ease, transform 0.5s ease !important;
  display: block !important;
}

.hs-section-gallery-bar .et_pb_gallery:hover .et_pb_gallery_image img {
  filter: brightness(0.65);
}

.hs-section-gallery-bar .et_pb_gallery .et_pb_gallery_item:hover img {
  transform: scale(1.05);
}

/* Hide native Divi overlays */
.hs-section-gallery-bar .et_pb_gallery .et_overlay,
.hs-section-gallery-bar .et_pb_gallery .et_pb_gallery_title,
.hs-section-gallery-bar .et_pb_gallery .et_pb_gallery_pagination {
  display: none !important;
}

/* The Open Gallery Hover Button */
.hs-section-gallery-bar .et_pb_gallery::after,
.hs-filmstrip-gallery::after {
  content: "OPEN GALLERY";
  font-family: "Montserrat", sans-serif !important;
  font-weight: 800;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--hs-gold, #f0b323) !important; 
  color: #003057;
  font-size: 13px;
  letter-spacing: 1px;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  padding: 14px 32px 14px 54px !important; 
  border-radius: 50px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  z-index: 99;
  pointer-events: none;
  transition: all 0.3s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23000000' d='M149.1 64.8L138.7 96H64C28.7 96 0 124.7 0 160V416c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V160c0-35.3-28.7-64-64-64H373.3L362.9 64.8C356.4 45.2 338.1 32 317.4 32H194.6c-20.7 0-39 13.2-45.5 32.8zM256 192a96 96 0 1 1 0 192 96 96 0 1 1 0-192z'/%3E%3C/svg%3E");
  background-repeat: no-repeat !important;
  background-size: 21px 21px !important;
  background-position: 20px center !important;
}

.hs-section-gallery-bar .et_pb_gallery:hover::after,
.hs-filmstrip-gallery:hover::after {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

@media (max-width: 767px) {
  .hs-section-gallery-bar .et_pb_gallery .et_pb_gallery_items {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .hs-section-gallery-bar .et_pb_gallery .et_pb_gallery_item:nth-child(n + 3) {
    display: none !important;
  }
  .hs-section-gallery-bar .et_pb_gallery .et_pb_gallery_image img {
    height: 130px !important;
  }
  .hs-section-gallery-bar .et_pb_gallery::after,
  .hs-filmstrip-gallery::after {
    padding: 12px 24px 12px 48px !important;
    background-position: 16px center !important; 
    border-radius: 50px !important;
    transform: translate(-50%, -50%) scale(0.85);
  }
}

/**
 * =============================================================================
 * 3. HEADSTART GALLERY MODAL & MOSAIC ENGINE (V2.4 VW MATH)
 * =============================================================================
 * PURPOSE: Styling and layout for 3. HEADSTART GALLERY MODAL & MOSAIC ENGINE (V2.4 VW MATH)
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */
#school-gallery-popup {
  display: none !important;
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 99999999 !important;
  background: rgba(0, 0, 0, 0.95) !important;
  padding: 16px !important;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* --- Shared Close Buttons --- */
#school-gallery-popup .hs-shared-close,
.mfp-wrap .mfp-close,
.mfp-image-holder .mfp-close,
.hs-fitness-modal-wrapper .hs-shared-close {
  position: fixed !important;
  top: 24px !important;
  right: 24px !important; 
}

.hs-shared-close,
.mfp-wrap .mfp-close,
.mfp-image-holder .mfp-close {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  background-color: rgba(240, 179, 35, 0.95) !important;
  color: #003057 !important;
  border: 4px solid rgba(255, 255, 255, 0.3) !important;
  background-clip: padding-box !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  padding: 6px 16px 6px 20px !important;
  border-radius: 9999px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25) !important;
  cursor: pointer !important;
  z-index: 100000000 !important;
  opacity: 1 !important;
  width: max-content !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  font-size: 0 !important;
  transition: all 0.3s ease !important;
}

.hs-shared-close:hover,
.mfp-wrap .mfp-close:hover,
.mfp-image-holder .mfp-close:hover {
  transform: translateY(-2px) scale(1.02) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
}

/* Explicitly disable pseudo-elements to prevent duplicate text/icons */
.mfp-close::before,
.mfp-close::after,
.mfp-close:before,
.mfp-close:after,
.mfp-wrap .mfp-close::before,
.mfp-image-holder .mfp-close::before,
.mfp-wrap .mfp-close::after,
.mfp-image-holder .mfp-close::after,
.hs-shared-close::before,
.hs-shared-close::after {
  content: none !important;
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Style the HTML spans directly */
.hs-modal-close-text {
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  font-size: 0.75rem !important; 
  font-weight: 800 !important;
  font-family: "Montserrat", sans-serif !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

.hs-modal-close-icon {
  font-size: 1.8rem !important; 
  font-weight: 300 !important;
  line-height: 1 !important;
  margin: -3px 0 0 0 !important;
  padding: 0 !important;
  font-family: Arial, sans-serif !important;
  display: block !important;
}

@media (max-width: 767px) {
  #school-gallery-popup .hs-shared-close,
  .mfp-wrap .mfp-close,
  .mfp-image-holder .mfp-close {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    padding: 4px !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    top: 16px !important;
    right: 16px !important;
    margin: 0 !important;
    z-index: 100000000 !important;
  }

  .hs-modal-close-text {
    display: none !important;
  }

  .hs-modal-close-icon {
    font-size: 1.6rem !important;
    margin-top: 0 !important;
  }
}

body > .mfp-bg {
  z-index: 100000001 !important;
}
body > .mfp-wrap {
  z-index: 100000002 !important;
}

/* --- Fluid Bento Grid Engine --- */
.hs-mosaic-grid {
  container-type: inline-size;
  --grid-gap: 8px;
  --grid-rad: 8px;

  display: grid !important;
  width: 100% !important;
  max-width: 2400px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  gap: var(--grid-gap) !important;
  grid-auto-flow: dense !important;

  --cols: 5;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr)) !important;

  /* Bulletproof CQI Math */
  grid-auto-rows: calc(
    (
        (100% - ((var(--cols) - 1) * var(--grid-gap))) /
          var(--cols)
    ) * 0.5625
  ) !important;
  grid-auto-rows: calc(
    (
        (100cqi - ((var(--cols) - 1) * var(--grid-gap))) /
          var(--cols)
    ) * 0.5625
  ) !important;
}

.hs-mosaic-grid.hs-hidden {
  display: none !important;
}

.hs-mosaic-grid a {
  display: block !important;
  position: relative !important;
  overflow: hidden !important;
  border-radius: var(--grid-rad) !important;
  cursor: zoom-in !important;
  background-color: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.hs-mosaic-grid a img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.5s ease !important;
  margin: 0 !important;
}
.hs-mosaic-grid a:hover img {
  transform: scale(1.04) !important;
}

/* Bento Visual Cues */
.hs-mosaic-grid a::after {
  content: "";
  position: absolute;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) scale(0.8) !important;
  background-color: rgba(255, 255, 255, 0.85); 
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background-image: 
    url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAyNCAyNCcgZmlsbD0nbm9uZScgc3Ryb2tlPScjMDAzMDU3JyBzdHJva2Utd2lkdGg9JzInIHN0cm9rZS1saW5lY2FwPSdyb3VuZCcgc3Ryb2tlLWxpbmVqb2luPSdyb3VuZCc+PGNpcmNsZSBjeD0nMTEnIGN5PScxMScgcj0nOCcvPjxsaW5lIHgxPScyMScgeTE9JzIxJyB4Mj0nMTYuNjUnIHkyPScxNi42NScvPjwvc3ZnPg=="),
    url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAyNCAyNCcgZmlsbD0nbm9uZScgc3Ryb2tlPScjMDAzMDU3JyBzdHJva2Utd2lkdGg9JzInIHN0cm9rZS1saW5lY2FwPSdyb3VuZCcgc3Ryb2tlLWxpbmVqb2luPSdyb3VuZCc+PGxpbmUgeDE9JzEyJyB5MT0nNScgeDI9JzEyJyB5Mj0nMTknLz48bGluZSB4MT0nNScgeTE9JzEyJyB4Mj0nMTknIHkyPScxMicvPjwvc3ZnPg==");
  background-repeat: no-repeat, no-repeat;
  background-position: left 14px center, right 14px center;
  background-size: 18px 18px, 18px 18px;
  width: 76px;
  height: 44px;
  border-radius: 22px;
  opacity: 0; 
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 5;
  pointer-events: none; 
}

.hs-mosaic-grid a:hover::after {
  opacity: 1; 
  transform: translate(-50%, -50%) scale(1) !important;
}

/* Hide the magnifying glass icon if the cell has a +number overlay */
.hs-mosaic-grid a.hs-has-overlay::after {
  display: none !important;
}

/* --- Standalone Gallery Links Hover Effect --- */
/* Matches the mosaic bento grid zoom and plus icon exactly */
a.hs-gallery-link {
  position: relative;
  display: inline-block !important; /* Hugs the image to prevent stretching */
  overflow: hidden;
  cursor: zoom-in !important;
  /* border-radius is removed to allow Divi Builder to control it on the parent .et_pb_image_wrap */
}

a.hs-gallery-link img {
  transition: transform 0.5s ease !important;
  width: 100% !important; /* Ensure image respects the wrapper */
}

a.hs-gallery-link:hover img {
  transform: scale(1.04) !important;
}

a.hs-gallery-link::after {
  content: "";
  position: absolute;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) scale(0.8) !important;
  background-color: rgba(255, 255, 255, 0.85); 
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background-image: 
    url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAyNCAyNCcgZmlsbD0nbm9uZScgc3Ryb2tlPScjMDAzMDU3JyBzdHJva2Utd2lkdGg9JzInIHN0cm9rZS1saW5lY2FwPSdyb3VuZCcgc3Ryb2tlLWxpbmVqb2luPSdyb3VuZCc+PGNpcmNsZSBjeD0nMTEnIGN5PScxMScgcj0nOCcvPjxsaW5lIHgxPScyMScgeTE9JzIxJyB4Mj0nMTYuNjUnIHkyPScxNi42NScvPjwvc3ZnPg=="),
    url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAyNCAyNCcgZmlsbD0nbm9uZScgc3Ryb2tlPScjMDAzMDU3JyBzdHJva2Utd2lkdGg9JzInIHN0cm9rZS1saW5lY2FwPSdyb3VuZCcgc3Ryb2tlLWxpbmVqb2luPSdyb3VuZCc+PGxpbmUgeDE9JzEyJyB5MT0nNScgeDI9JzEyJyB5Mj0nMTknLz48bGluZSB4MT0nNScgeTE9JzEyJyB4Mj0nMTknIHkyPScxMicvPjwvc3ZnPg==");
  background-repeat: no-repeat, no-repeat;
  background-position: left 14px center, right 14px center;
  background-size: 18px 18px, 18px 18px;
  width: 76px;
  height: 44px;
  border-radius: 22px;
  opacity: 0; 
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 5;
  pointer-events: none; 
}

a.hs-gallery-link:hover::after {
  opacity: 1; 
  transform: translate(-50%, -50%) scale(1) !important;
}

/* Desktop Spans */
.hs-mosaic-grid a.hs-span-1x1 { --def-row: span 1; --def-col: span 1; }
.hs-mosaic-grid a.hs-span-2x2 { --def-row: span 2; --def-col: span 2; }
.hs-mosaic-grid a.hs-span-3x3 { --def-row: span 3; --def-col: span 3; }
.hs-mosaic-grid a.hs-span-1x3 { --def-row: span 3; --def-col: span 1; }

/* Apply explicit JS placements if they exist, otherwise fallback to default span sizes */
.hs-mosaic-grid a {
  grid-row: var(--hs-grid-row, var(--def-row, auto)) !important;
  grid-column: var(--hs-grid-col, var(--def-col, auto)) !important;
}

/* Tablet Spans */
@media (max-width: 1024px) {
  /* Default: collapse to 4 cols */
  .hs-mosaic-grid {
    --cols: 4 !important;
  }
  .hs-span-3x3 { grid-column: span 3 !important; grid-row: span 3 !important; }
  .hs-span-2x2 { grid-column: span 2 !important; grid-row: span 2 !important; }

  /* EXCEPTION: If inside a paginated gallery, stay at 5 cols */
  .hs-paginate-mosaic .hs-mosaic-grid {
    --cols: 5 !important;
  }
}

/* Mobile 3-Column Spans (Dense Mosaic Pattern) */
@media (max-width: 767px) {
  /* Default: collapse to 3 cols for dynamic variation */
  .hs-mosaic-grid {
    --cols: 3 !important;
    --grid-gap: 4px !important;
    --grid-rad: 4px !important;
  }
  
  /* On mobile, we IGNORE the explicit --hs-grid-row/col properties and rely entirely on CSS Grid Dense packing! */
  .hs-mosaic-grid {
    grid-auto-flow: dense !important;
  }
  
  /* Force it to use the default spans (e.g. span 2) rather than explicit coordinates */
  .hs-mosaic-grid a {
    grid-row: var(--def-row, auto) !important;
    grid-column: var(--def-col, auto) !important;
  }

  /* EXCEPTION: Paginated galleries stay EXACTLY like desktop — 5 cols, same layout, just scaled down */
  .hs-paginate-mosaic .hs-mosaic-grid {
    --cols: 5 !important;
    --grid-gap: 4px !important;
    --grid-rad: 4px !important;
  }
  .hs-paginate-mosaic .hs-mosaic-grid a {
    grid-row: var(--hs-grid-row, var(--def-row, auto)) !important;
    grid-column: var(--hs-grid-col, var(--def-col, auto)) !important;
  }

  /* Base mobile icon - single magnifying glass, centered (used for preview mosaics and standalone images) */
  .hs-mosaic-grid a::after,
  a.hs-gallery-link::after {
    opacity: 0.9 !important; 
    top: 50% !important;
    left: 50% !important;
    bottom: auto !important;
    right: auto !important;
    transform: translate(-50%, -50%) scale(1) !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAyNCAyNCcgZmlsbD0nbm9uZScgc3Ryb2tlPScjMDAzMDU3JyBzdHJva2Utd2lkdGg9JzInIHN0cm9rZS1saW5lY2FwPSdyb3VuZCcgc3Ryb2tlLWxpbmVqb2luPSdyb3VuZCc+PGNpcmNsZSBjeD0nMTEnIGN5PScxMScgcj0nOCcvPjxsaW5lIHgxPScyMScgeTE9JzIxJyB4Mj0nMTYuNjUnIHkyPScxNi42NScvPjwvc3ZnPg==") !important;
    background-position: center !important;
    background-size: 14px 14px !important;
  }

  /* For mosaics inside the modal (or paginated inline ones), move to top right and shrink */
  #school-gallery-popup .hs-mosaic-grid a::after,
  .hs-inline-mosaic-wrapper .hs-mosaic-grid a::after {
    top: 6px !important;
    left: auto !important;
    right: 6px !important;
    transform: none !important;
    width: 24px !important;
    height: 24px !important;
    background-size: 10px 10px !important;
  }
  
  #school-gallery-popup .hs-mosaic-grid a:hover::after,
  .hs-inline-mosaic-wrapper .hs-mosaic-grid a:hover::after {
    transform: scale(1.1) !important;
  }
}

/**
 * =============================================================================
 * 4. MAGNIFIC POPUP THEMES (DYNAMIC AUTO-COLLAPSE)
 * =============================================================================
 * PURPOSE: Styling and layout for 4. MAGNIFIC POPUP THEMES (DYNAMIC AUTO-COLLAPSE)
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */
.mfp-figure::after {
  display: none !important;
}

.hs-split-preview,
.hs-full-preview {
  display: flex !important;
  flex-direction: row !important;
  position: relative !important;
  background: #fff !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
  margin: 0 auto !important;
  max-width: 1100px !important;
  padding: 0 !important;
}

.hs-preview-img-wrapper {
  background: #000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: flex 0.3s ease !important;
}

.mfp-figure .mfp-img {
  padding: 0 !important;
  max-height: 70vh !important;
  width: 100% !important;
  max-width: 100% !important;
  object-fit: contain !important;
  background: #000 !important;
  display: block !important;
}

/* Base Split Theme Logic */
.hs-split-theme .hs-preview-img-wrapper {
  flex: 1 1 65% !important;
}
.hs-split-theme .hs-preview-text-wrapper {
  flex: 1 1 35% !important;
  padding: 3rem !important;
  background: #f8f9fa !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  position: relative !important;
  transition: opacity 0.3s ease !important;
}

/* Auto-Collapse Logic */
.hs-empty-text .hs-preview-text-wrapper {
  display: none !important;
}
.hs-empty-text .hs-preview-img-wrapper {
  flex: 1 1 100% !important;
}

/* Hardcoded Full Theme Logic */
.hs-full-theme .hs-preview-img-wrapper {
  flex: 1 1 100% !important;
}
.hs-full-theme .hs-preview-text-wrapper {
  display: none !important;
}

/* Popup Typography & Layout */
.mfp-bottom-bar {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  margin-top: 0 !important;
  padding: 0 !important;
}
.mfp-title {
  text-align: left !important;
  padding: 0 !important;
  white-space: normal !important;
}
.mfp-counter {
  position: relative !important;
  color: #666 !important;
  font-family: "Open Sans", sans-serif !important;
  margin-top: 1.5rem !important;
  text-align: left !important;
  font-size: 0.9rem !important;
}

@media (max-width: 767px) {
  .hs-split-preview {
    flex-direction: column !important;
  }
  .hs-split-theme .hs-preview-img-wrapper {
    flex: 1 1 auto !important;
  }
  .mfp-figure .mfp-img {
    max-height: 45vh !important;
  }
  .hs-split-theme .hs-preview-text-wrapper {
    padding: 1.5rem !important;
  }
  .hs-split-theme .mfp-arrow {
    z-index: 1050 !important;
  }
}

/**
 * =============================================================================
 * 7. MODAL NAVIGATION ARROWS (GLOBAL)
 * =============================================================================
 * PURPOSE: Styling and layout for 7. MODAL NAVIGATION ARROWS (GLOBAL)
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */
.mfp-arrow-left::after { border-right-color: #f0b323 !important; }
.mfp-arrow-right::after { border-left-color: #f0b323 !important; }
.mfp-arrow, .mfp-arrow::before, .mfp-arrow::after { color: #f0b323 !important; }

/**
 * =============================================================================
 * 5. SINGLE IMAGE GALLERY TRIGGER
 * =============================================================================
 * PURPOSE: Styling and layout for 5. SINGLE IMAGE GALLERY TRIGGER
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */

.hs-single-image-trigger {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px; /* Adjust to match your site's style */
  /* Remove the default translateY from the base trigger so the image stays still while zooming */
  transform: none !important; 
  cursor: pointer;
}

/* Image zoom effect on hover (adds a nice cinematic feel) */
.hs-single-image-trigger img,
.hs-single-image-trigger .et_pb_image_wrap img {
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
  display: block;
  width: 100%;
}

.hs-single-image-trigger:hover img,
.hs-single-image-trigger:hover .et_pb_image_wrap img {
  transform: scale(1.05) !important;
}

/* The Magnifying Glass Icon */
.hs-single-image-trigger::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background-color: #f0b323; /* HeadStart Brand Yellow/Gold */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  /* Magnifying Glass SVG (HeadStart Blue #003057) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003057' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px 22px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  opacity: 0; 
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 5;
  pointer-events: none; 
}

/* Show icon on hover */
.hs-single-image-trigger:hover::after {
  opacity: 1; 
  transform: translate(-50%, -50%) scale(1);
}

/* Optional Dark Overlay on hover to make the icon pop */
.hs-single-image-trigger::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 48, 87, 0.2); /* Subtle HeadStart Blue overlay */
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 4;
  pointer-events: none;
}

.hs-single-image-trigger:hover::before {
  opacity: 1;
}

/**
 * =============================================================================
 * 6. INLINE MOSAIC GALLERY & PAGINATION
 * =============================================================================
 * PURPOSE: Styling and layout for 6. INLINE MOSAIC GALLERY & PAGINATION
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */

/* Ensure native Divi gallery parts are hidden if hs-inline-mosaic or hs-summary-mosaic is applied directly */
.hs-inline-mosaic .et_pb_gallery_items,
.hs-inline-mosaic .et_pb_gallery_pagination,
.hs-inline-mosaic .et_pb_gallery_title,
.hs-inline-mosaic .et_overlay,
.hs-summary-mosaic .et_pb_gallery_items,
.hs-summary-mosaic .et_pb_gallery_pagination,
.hs-summary-mosaic .et_pb_gallery_title,
.hs-summary-mosaic .et_overlay {
  display: none !important;
}

/* Allow native gallery to be visible inside the Divi Builder for easy editing */
.et-fb .hs-inline-mosaic .et_pb_gallery_items,
.et-fb .hs-section-gallery-bar .hs-inline-mosaic .et_pb_gallery_items {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 10px !important;
}

/* Hide native text, overlays, and pagination in the builder so it remains a clean image preview */
.et-fb .hs-inline-mosaic .et_pb_gallery_title,
.et-fb .hs-inline-mosaic .et_pb_gallery_caption,
.et-fb .hs-inline-mosaic .et_pb_gallery_pagination,
.et-fb .hs-inline-mosaic .et_overlay,
.et-fb .hs-section-gallery-bar .hs-inline-mosaic .et_pb_gallery_title,
.et-fb .hs-section-gallery-bar .hs-inline-mosaic .et_pb_gallery_caption,
.et-fb .hs-section-gallery-bar .hs-inline-mosaic .et_pb_gallery_pagination,
.et-fb .hs-section-gallery-bar .hs-inline-mosaic .et_overlay {
  display: none !important;
}

.et-fb .hs-inline-mosaic .et_pb_gallery_item {
  width: 100% !important;
  margin: 0 !important;
  clear: none !important;
}

/* For Paginated mosaics in the Builder, only show the first 12 items (Page 1) to prevent massive page length */
.et-fb .hs-inline-mosaic.hs-paginate-mosaic .et_pb_gallery_item:nth-child(n+13) {
  display: none !important;
}

/* Allow the parent to show if Divi's wrapper was hidden by mistake */
.hs-inline-mosaic.et_pb_gallery,
.hs-summary-mosaic.et_pb_gallery {
  display: block !important;
}

/* Pagination Controls Styling */
.hs-paginate-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
  width: 100%;
}

.hs-paginate-controls .hs-carousel-btn {
  background: transparent;
  border: 2px solid #003057;
  color: #003057;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
}

.hs-paginate-controls .hs-carousel-btn:hover:not(:disabled) {
  background: #003057;
  color: #fff;
  transform: translateY(-2px);
}

.hs-paginate-controls .hs-carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  border-color: #ccc;
  color: #ccc;
}

.hs-paginate-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hs-paginate-dots .hs-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hs-paginate-dots .hs-dot:hover {
  background: #94a3b8;
}

.hs-paginate-dots .hs-dot.active {
  background: #f0b323; /* HeadStart Gold */
  transform: scale(1.3);
}

/**
 * =============================================================================
 * 7. INLINE MOSAIC LOADING STATES
 * =============================================================================
 * PURPOSE: Styling and layout for 7. INLINE MOSAIC LOADING STATES
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */

/* Initial Gallery Loader (Before JS executes) */
.hs-inline-mosaic:not(.hs-mosaic-loaded):not(.et-fb),
.hs-summary-mosaic:not(.hs-mosaic-loaded):not(.et-fb) {
  min-height: 250px;
  position: relative;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px dashed #cbd5e1;
  display: block !important;
}

.hs-inline-mosaic:not(.hs-mosaic-loaded):not(.et-fb)::before,
.hs-summary-mosaic:not(.hs-mosaic-loaded):not(.et-fb)::before {
  content: "";
  position: absolute;
  top: calc(50% - 25px);
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 48, 87, 0.1);
  border-left-color: #f0b323; 
  border-radius: 50%;
  animation: hs-spin 1s linear infinite;
}

.hs-inline-mosaic:not(.hs-mosaic-loaded):not(.et-fb)::after,
.hs-summary-mosaic:not(.hs-mosaic-loaded):not(.et-fb)::after {
  content: "PHOTOS LOADING...";
  position: absolute;
  top: calc(50% + 35px);
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 2px;
  color: #003057;
}

@keyframes hs-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Stack Grids to lock wrapper height to the tallest page (prevents jumping pagination) */
.hs-inline-mosaic-wrapper {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: 1fr !important;
  align-items: start !important;
  transition: height 0.6s ease !important;
  overflow: hidden !important;
}

/* Base state for all inline grids (hidden, faded out) */
/* ----------------------------------------------------
   Summary Mosaic Grid Overlay
---------------------------------------------------- */
.hs-summary-mosaic-wrapper {
    cursor: pointer;
    position: relative;
    display: block !important;
    width: 100% !important;
    /* Create a local container query scope so the internal grid math resolves to this wrapper's width */
    container-type: inline-size;
}

.hs-summary-mosaic-wrapper .hs-mosaic-grid {
    grid-auto-flow: dense !important;
    --grid-gap: 0.5rem !important;
    gap: var(--grid-gap) !important;
    
    /* Force exactly 16:9 aspect ratio on the summary grid cells using 0.5625 multiplier */
    grid-auto-rows: calc(
      (
          (100% - ((var(--cols) - 1) * var(--grid-gap))) /
            var(--cols)
      ) * 0.5625
    ) !important;
    grid-auto-rows: calc(
      (
          (100cqi - ((var(--cols) - 1) * var(--grid-gap))) /
            var(--cols)
      ) * 0.5625
    ) !important;
}

.hs-summary-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 48, 87, 0.6); /* Brand dark blue, translucent */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--hs-font-head, 'Montserrat', sans-serif);
    transition: background 0.3s ease;
}

.hs-summary-mosaic-wrapper:hover .hs-summary-overlay {
    background: rgba(0, 48, 87, 0.8);
}

.hs-inline-mosaic-wrapper .hs-mosaic-grid {
  grid-area: 1 / 1 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(5px) !important;
  transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s ease !important;
  z-index: 1 !important;
}

/* Active state for the current inline grid (visible, faded in) */
.hs-inline-mosaic-wrapper .hs-mosaic-grid.hs-active-grid {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
  z-index: 2 !important;
}

/* Individual Image Skeleton Loader (For lazy loaded images further down) */
.hs-mosaic-grid a {
  background-color: #e2e8f0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'%3E%3C/circle%3E%3Cpolyline points='21 15 16 10 5 21'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px;
}

/**
 * =============================================================================
 * [LAYER 5: BESPOKE MODULES] - COMMUNITY LINKS
 * =============================================================================
 * PURPOSE: Styling and layout for [LAYER 5: BESPOKE MODULES] - COMMUNITY LINKS
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */

.hs-section-community-portal-links .et_pb_column:not(.et-last-child) {
  cursor: pointer;
}

.hs-section-community-portal-links .et_pb_column .et_pb_group,
.hs-section-community-portal-links .et_pb_column .et_pb_group h2,
.hs-section-community-portal-links .et_pb_column .et_pb_group .et_pb_text_inner,
.hs-section-community-portal-links .et_pb_column .et_pb_group .et-pb-icon {
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.hs-section-community-portal-links .et_pb_column .et_pb_group .et-pb-icon {
  display: inline-block;
}

.hs-section-community-portal-links .et_pb_column:hover .et_pb_group {
  background-color: var(--hs-dark) !important;
}

.hs-section-community-portal-links .et_pb_column:hover .et_pb_group h2,
.hs-section-community-portal-links .et_pb_column:hover .et_pb_group .et_pb_text_inner {
  color: #ffffff !important;
}

.hs-section-community-portal-links .et_pb_column:hover .et_pb_group .et-pb-icon {
  color: var(--hs-gold) !important;
  transform: translateX(8px);
}

.hs-section-community-portal-links .et_pb_column .et_pb_group h2,
.hs-section-community-portal-links .et_pb_column .et_pb_group .et_pb_text_inner {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Mega Menu Links */

/* 1. Force the Divi Code Module wrappers to stop trapping the absolute link */
.et_pb_code:has(.mega-menu-overlay-link),
.et_pb_code:has(.mega-menu-overlay-link) .et_pb_code_inner {
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
}

/* 2. Make the link behave as a block and cover the parent Group */
.mega-menu-overlay-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    cursor: pointer;
}

/* 3. Screen-reader only text for SEO */
.mega-menu-overlay-link .et_pb_sr_only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    border: 0 !important;
}
/**
 * =============================================================================
 * TAILWIND UTILITIES
 * =============================================================================
 * PURPOSE: Styling and layout for TAILWIND UTILITIES
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */
*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  
}

#hs-mobile-nav-root :is(.absolute) {
  position: absolute
}

#hs-mobile-nav-root :is(.relative) {
  position: relative
}

#hs-mobile-nav-root :is(.inset-0) {
  inset: 0px
}

#hs-mobile-nav-root :is(.bottom-3) {
  bottom: 0.75rem
}

#hs-mobile-nav-root :is(.bottom-full) {
  bottom: 100%
}

#hs-mobile-nav-root :is(.left-1\/2) {
  left: 50%
}

#hs-mobile-nav-root :is(.left-4) {
  left: 1rem
}

#hs-mobile-nav-root :is(.z-20) {
  z-index: 20
}

#hs-mobile-nav-root :is(.z-50) {
  z-index: 50
}

#hs-mobile-nav-root :is(.m-0) {
  margin: 0px
}

#hs-mobile-nav-root :is(.my-\[5px\]) {
  margin-top: 5px;
  margin-bottom: 5px
}

#hs-mobile-nav-root :is(.mb-1) {
  margin-bottom: 0.25rem
}

#hs-mobile-nav-root :is(.mb-10) {
  margin-bottom: 2.5rem
}

#hs-mobile-nav-root :is(.mb-2) {
  margin-bottom: 0.5rem
}

#hs-mobile-nav-root :is(.mb-3) {
  margin-bottom: 0.75rem
}

#hs-mobile-nav-root :is(.mb-4) {
  margin-bottom: 1rem
}

#hs-mobile-nav-root :is(.mb-\[-2px\]) {
  margin-bottom: -2px
}

#hs-mobile-nav-root :is(.ml-1) {
  margin-left: 0.25rem
}

#hs-mobile-nav-root :is(.ml-4) {
  margin-left: 1rem
}

#hs-mobile-nav-root :is(.mr-2) {
  margin-right: 0.5rem
}

#hs-mobile-nav-root :is(.mt-0) {
  margin-top: 0px
}

#hs-mobile-nav-root :is(.mt-0\.5) {
  margin-top: 0.125rem
}

#hs-mobile-nav-root :is(.mt-4) {
  margin-top: 1rem
}

#hs-mobile-nav-root :is(.mt-6) {
  margin-top: 1.5rem
}

#hs-mobile-nav-root :is(.mt-\[4px\]) {
  margin-top: 4px
}

#hs-mobile-nav-root :is(.block) {
  display: block
}

#hs-mobile-nav-root :is(.flex) {
  display: flex
}

#hs-mobile-nav-root :is(.grid) {
  display: grid
}

#hs-mobile-nav-root :is(.aspect-video) {
  aspect-ratio: 16 / 9
}

#hs-mobile-nav-root :is(.h-20) {
  height: 5rem
}

#hs-mobile-nav-root :is(.h-4) {
  height: 1rem
}

#hs-mobile-nav-root :is(.h-8) {
  height: 2rem
}

#hs-mobile-nav-root :is(.h-\[60px\]) {
  height: 60px
}

#hs-mobile-nav-root :is(.h-full) {
  height: 100%
}

#hs-mobile-nav-root :is(.h-px) {
  height: 1px
}

#hs-mobile-nav-root :is(.w-4) {
  width: 1rem
}

#hs-mobile-nav-root :is(.w-48) {
  width: 12rem
}

#hs-mobile-nav-root :is(.w-8) {
  width: 2rem
}

#hs-mobile-nav-root :is(.w-\[60px\]) {
  width: 60px
}

#hs-mobile-nav-root :is(.w-full) {
  width: 100%
}

#hs-mobile-nav-root :is(.flex-1) {
  flex: 1 1 0%
}

#hs-mobile-nav-root :is(.flex-shrink-0) {
  flex-shrink: 0
}

#hs-mobile-nav-root :is(.cursor-default) {
  cursor: default
}

#hs-mobile-nav-root :is(.list-none) {
  list-style-type: none
}

#hs-mobile-nav-root :is(.grid-cols-4) {
  grid-template-columns: repeat(4, minmax(0, 1fr))
}

#hs-mobile-nav-root :is(.flex-col) {
  flex-direction: column
}

#hs-mobile-nav-root :is(.items-center) {
  align-items: center
}

#hs-mobile-nav-root :is(.items-baseline) {
  align-items: baseline
}

#hs-mobile-nav-root :is(.justify-center) {
  justify-content: center
}

#hs-mobile-nav-root :is(.justify-between) {
  justify-content: space-between
}

#hs-mobile-nav-root :is(.gap-1) {
  gap: 0.25rem
}

#hs-mobile-nav-root :is(.gap-1\.5) {
  gap: 0.375rem
}

#hs-mobile-nav-root :is(.gap-2) {
  gap: 0.5rem
}

#hs-mobile-nav-root :is(.gap-3) {
  gap: 0.75rem
}

#hs-mobile-nav-root :is(.gap-4) {
  gap: 1rem
}

#hs-mobile-nav-root :is(.gap-\[4px\]) {
  gap: 4px
}

#hs-mobile-nav-root :is(.space-y-0 > :not([hidden]) ~ :not([hidden])) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0px * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0px * var(--tw-space-y-reverse))
}

#hs-mobile-nav-root :is(.space-y-2 > :not([hidden]) ~ :not([hidden])) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.5rem * var(--tw-space-y-reverse))
}

#hs-mobile-nav-root :is(.space-y-3 > :not([hidden]) ~ :not([hidden])) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.75rem * var(--tw-space-y-reverse))
}

#hs-mobile-nav-root :is(.space-y-5 > :not([hidden]) ~ :not([hidden])) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1.25rem * var(--tw-space-y-reverse))
}

#hs-mobile-nav-root :is(.overflow-hidden) {
  overflow: hidden
}

#hs-mobile-nav-root :is(.overflow-y-auto) {
  overflow-y: auto
}

#hs-mobile-nav-root :is(.rounded-\[10px\]) {
  border-radius: 10px
}

#hs-mobile-nav-root :is(.rounded-full) {
  border-radius: 9999px
}

#hs-mobile-nav-root :is(.rounded-lg) {
  border-radius: 0.5rem
}

#hs-mobile-nav-root :is(.rounded-xl) {
  border-radius: 0.75rem
}

#hs-mobile-nav-root :is(.border) {
  border-width: 1px
}

#hs-mobile-nav-root :is(.border-b) {
  border-bottom-width: 1px
}

#hs-mobile-nav-root :is(.border-t-4) {
  border-top-width: 4px
}

#hs-mobile-nav-root :is(.border-none) {
  border-style: none
}

#hs-mobile-nav-root :is(.border-brand-gold) {
  --tw-border-opacity: 1;
  border-color: rgb(240 179 35 / var(--tw-border-opacity))
}

#hs-mobile-nav-root :is(.border-brand-gold\/30) {
  border-color: rgb(240 179 35 / 0.3)
}

#hs-mobile-nav-root :is(.border-slate-200) {
  --tw-border-opacity: 1;
  border-color: rgb(226 232 240 / var(--tw-border-opacity))
}

#hs-mobile-nav-root :is(.border-white\/10) {
  border-color: rgb(255 255 255 / 0.1)
}

#hs-mobile-nav-root :is(.bg-brand-dark) {
  --tw-bg-opacity: 1;
  background-color: rgb(0 48 87 / var(--tw-bg-opacity))
}

#hs-mobile-nav-root :is(.bg-brand-dark\/80) {
  background-color: rgb(0 48 87 / 0.8)
}

#hs-mobile-nav-root :is(.bg-brand-gold) {
  --tw-bg-opacity: 1;
  background-color: rgb(240 179 35 / var(--tw-bg-opacity))
}

#hs-mobile-nav-root :is(.bg-slate-300) {
  --tw-bg-opacity: 1;
  background-color: rgb(203 213 225 / var(--tw-bg-opacity))
}

#hs-mobile-nav-root :is(.bg-transparent) {
  background-color: transparent
}

#hs-mobile-nav-root :is(.bg-gradient-to-t) {
  background-image: linear-gradient(to top, var(--tw-gradient-stops))
}

#hs-mobile-nav-root :is(.from-black\/95) {
  --tw-gradient-from: rgb(0 0 0 / 0.95) var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)
}

#hs-mobile-nav-root :is(.via-black\/30) {
  --tw-gradient-to: rgb(0 0 0 / 0)  var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), rgb(0 0 0 / 0.3) var(--tw-gradient-via-position), var(--tw-gradient-to)
}

#hs-mobile-nav-root :is(.to-transparent) {
  --tw-gradient-to: transparent var(--tw-gradient-to-position)
}

#hs-mobile-nav-root :is(.object-contain) {
  -o-object-fit: contain;
     object-fit: contain
}

#hs-mobile-nav-root :is(.object-cover) {
  -o-object-fit: cover;
     object-fit: cover
}

#hs-mobile-nav-root :is(.p-0) {
  padding: 0px
}

#hs-mobile-nav-root :is(.p-4) {
  padding: 1rem
}

#hs-mobile-nav-root :is(.p-6) {
  padding: 1.5rem
}

#hs-mobile-nav-root :is(.px-2) {
  padding-left: 0.5rem;
  padding-right: 0.5rem
}

#hs-mobile-nav-root :is(.px-3) {
  padding-left: 0.75rem;
  padding-right: 0.75rem
}

#hs-mobile-nav-root :is(.px-4) {
  padding-left: 1rem;
  padding-right: 1rem
}

#hs-mobile-nav-root :is(.px-5) {
  padding-left: 1.25rem;
  padding-right: 1.25rem
}

#hs-mobile-nav-root :is(.px-6) {
  padding-left: 1.5rem;
  padding-right: 1.5rem
}

#hs-mobile-nav-root :is(.py-1) {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem
}

#hs-mobile-nav-root :is(.py-2) {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem
}

#hs-mobile-nav-root :is(.py-2\.5) {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem
}

#hs-mobile-nav-root :is(.py-20) {
  padding-top: 5rem;
  padding-bottom: 5rem
}

#hs-mobile-nav-root :is(.py-3) {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem
}

#hs-mobile-nav-root :is(.py-3\.5) {
  padding-top: 0.875rem;
  padding-bottom: 0.875rem
}

#hs-mobile-nav-root :is(.py-4) {
  padding-top: 1rem;
  padding-bottom: 1rem
}

#hs-mobile-nav-root :is(.pb-0) {
  padding-bottom: 0px
}

#hs-mobile-nav-root :is(.pb-0\.5) {
  padding-bottom: 0.125rem
}

#hs-mobile-nav-root :is(.pb-2) {
  padding-bottom: 0.5rem
}

#hs-mobile-nav-root :is(.pb-24) {
  padding-bottom: 6rem
}

#hs-mobile-nav-root :is(.pl-0) {
  padding-left: 0px
}

#hs-mobile-nav-root :is(.pt-2) {
  padding-top: 0.5rem
}

#hs-mobile-nav-root :is(.pt-4) {
  padding-top: 1rem
}

#hs-mobile-nav-root :is(.pt-6) {
  padding-top: 1.5rem
}

#hs-mobile-nav-root :is(.text-left) {
  text-align: left
}

#hs-mobile-nav-root :is(.text-center) {
  text-align: center
}

#hs-mobile-nav-root :is(.font-heading) {
  font-family: Montserrat, sans-serif
}

#hs-mobile-nav-root :is(.text-2xl) {
  font-size: 1.5rem;
  line-height: 2rem
}

#hs-mobile-nav-root :is(.text-3xl) {
  font-size: 1.875rem;
  line-height: 2.25rem
}

#hs-mobile-nav-root :is(.text-\[10px\]) {
  font-size: 10px
}

#hs-mobile-nav-root :is(.text-base) {
  font-size: 1rem;
  line-height: 1.5rem
}

#hs-mobile-nav-root :is(.text-lg) {
  font-size: 1.125rem;
  line-height: 1.75rem
}

#hs-mobile-nav-root :is(.text-sm) {
  font-size: 0.875rem;
  line-height: 1.25rem
}

#hs-mobile-nav-root :is(.text-xl) {
  font-size: 1.25rem;
  line-height: 1.75rem
}

#hs-mobile-nav-root :is(.text-xs) {
  font-size: 0.75rem;
  line-height: 1rem
}

#hs-mobile-nav-root :is(.font-bold) {
  font-weight: 700
}

#hs-mobile-nav-root :is(.font-extrabold) {
  font-weight: 800
}

#hs-mobile-nav-root :is(.font-medium) {
  font-weight: 500
}

#hs-mobile-nav-root :is(.font-semibold) {
  font-weight: 600
}

#hs-mobile-nav-root :is(.uppercase) {
  text-transform: uppercase
}

#hs-mobile-nav-root :is(.leading-none) {
  line-height: 1
}

#hs-mobile-nav-root :is(.leading-tight) {
  line-height: 1.25
}

#hs-mobile-nav-root :is(.tracking-tight) {
  letter-spacing: -0.025em
}

#hs-mobile-nav-root :is(.tracking-wide) {
  letter-spacing: 0.025em
}

#hs-mobile-nav-root :is(.tracking-wider) {
  letter-spacing: 0.05em
}

#hs-mobile-nav-root :is(.tracking-widest) {
  letter-spacing: 0.1em
}

#hs-mobile-nav-root :is(.text-brand-dark) {
  --tw-text-opacity: 1;
  color: rgb(0 48 87 / var(--tw-text-opacity))
}

#hs-mobile-nav-root :is(.text-brand-gold) {
  --tw-text-opacity: 1;
  color: rgb(240 179 35 / var(--tw-text-opacity))
}

#hs-mobile-nav-root :is(.text-brand-gold\/80) {
  color: rgb(240 179 35 / 0.8)
}

#hs-mobile-nav-root :is(.text-slate-400) {
  --tw-text-opacity: 1;
  color: rgb(148 163 184 / var(--tw-text-opacity))
}

#hs-mobile-nav-root :is(.text-slate-500) {
  --tw-text-opacity: 1;
  color: rgb(100 116 139 / var(--tw-text-opacity))
}

#hs-mobile-nav-root :is(.text-white) {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity))
}

#hs-mobile-nav-root :is(.text-white\/70) {
  color: rgb(255 255 255 / 0.7)
}

#hs-mobile-nav-root :is(.text-white\/90) {
  color: rgb(255 255 255 / 0.9)
}

#hs-mobile-nav-root :is(.opacity-100) {
  opacity: 1
}

#hs-mobile-nav-root :is(.opacity-30) {
  opacity: 0.3
}

#hs-mobile-nav-root :is(.opacity-50) {
  opacity: 0.5
}

#hs-mobile-nav-root :is(.opacity-90) {
  opacity: 0.9
}

#hs-mobile-nav-root :is(.shadow-md) {
  --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)
}

#hs-mobile-nav-root :is(.shadow-sm) {
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)
}

#hs-mobile-nav-root :is(.shadow-xl) {
  --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)
}

#hs-mobile-nav-root :is(.transition-all) {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms
}

#hs-mobile-nav-root :is(.transition-colors) {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms
}

#hs-mobile-nav-root :is(.transition-opacity) {
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms
}

#hs-mobile-nav-root :is(.transition-transform) {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms
}

#hs-mobile-nav-root :is(.duration-300) {
  transition-duration: 300ms
}

#hs-mobile-nav-root :is(.duration-700) {
  transition-duration: 700ms
}

#hs-mobile-nav-root :is(.hover\:bg-brand-blue:hover) {
  --tw-bg-opacity: 1;
  background-color: rgb(0 90 140 / var(--tw-bg-opacity))
}

#hs-mobile-nav-root :is(.hover\:bg-brand-gold:hover) {
  --tw-bg-opacity: 1;
  background-color: rgb(240 179 35 / var(--tw-bg-opacity))
}

#hs-mobile-nav-root :is(.hover\:bg-white:hover) {
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity))
}

#hs-mobile-nav-root :is(.hover\:text-brand-dark:hover) {
  --tw-text-opacity: 1;
  color: rgb(0 48 87 / var(--tw-text-opacity))
}

#hs-mobile-nav-root :is(.hover\:text-brand-gold:hover) {
  --tw-text-opacity: 1;
  color: rgb(240 179 35 / var(--tw-text-opacity))
}

#hs-mobile-nav-root :is(.hover\:text-white:hover) {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity))
}

#hs-mobile-nav-root :is(.hover\:opacity-80:hover) {
  opacity: 0.8
}

#hs-mobile-nav-root :is(.focus\:outline-none:focus) {
  outline: 2px solid transparent;
  outline-offset: 2px
}

#hs-mobile-nav-root :is(.group:hover .group-hover\:scale-105) {
  --tw-scale-x: 1.05;
  --tw-scale-y: 1.05;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))
}

/**
 * =============================================================================
 * MOBILE LANGUAGE SWITCHER OVERRIDES
 * =============================================================================
 * PURPOSE: Styling and layout for MOBILE LANGUAGE SWITCHER OVERRIDES
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */
#hs-mobile-nav-root .headstart-language-switcher {
    margin: 0 !important;
    padding: 0 !important;
    gap: 8px !important;
    align-items: center !important;
}
#hs-mobile-nav-root .headstart-language-switcher::before {
    display: none !important;
}
#hs-mobile-nav-root .hs-lang-flag::after {
    display: none !important;
}
#hs-mobile-nav-root .hs-lang-flag.hs-current-lang::after {
    display: none !important;
}
/* Plain <img> flags from [language_switcher] (no Divi et_pb_image wrap) */
#hs-mobile-nav-root .hs-lang-flag {
    width: 34px !important;
    height: 34px !important;
    margin: 0 !important;
}
#hs-mobile-nav-root .hs-lang-flag img,
#hs-mobile-nav-root .hs-lang-flag-img {
    display: block !important;
    width: 34px !important;
    height: 34px !important;
    max-width: 34px !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    box-sizing: border-box !important;
    border: 2px solid transparent !important;
    padding: 2px !important;
}
#hs-mobile-nav-root .hs-lang-flag.hs-current-lang img,
#hs-mobile-nav-root .hs-lang-flag.hs-current-lang .hs-lang-flag-img {
    border-color: #f0b323 !important;
}
/* Legacy Divi image modules if any remain in the drawer */
#hs-mobile-nav-root .et_pb_image {
    width: 34px !important;
    height: 34px !important;
    margin: 0 !important;
}
#hs-mobile-nav-root .et_pb_image_wrap,
#hs-mobile-nav-root .et_pb_image_wrap img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    box-sizing: border-box;
}

/**
 * =============================================================================
 * CUSTOM TWEAKS
 * =============================================================================
 * PURPOSE: Styling and layout for CUSTOM TWEAKS
 * LOGIC: CSS rules applied to DOM elements
 * DEPENDENCIES: None
 * [TODO: REVIEW_OPTIMIZATIONS - Review for specificity wars, file bloat, Tailwind removal]
 * =============================================================================
 */
#hs-mobile-nav-root .rounded-15 { border-radius: 15px !important; }
#hs-mobile-nav-root .hs-submenu-heading {
    border-bottom: 2px solid #D4AF37 !important;
    margin-left: -1rem !important;
    margin-right: -1rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    padding-bottom: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}
#hs-mobile-nav-root .hs-student-line {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}
#hs-mobile-nav-root .hs-student-line:last-child {
    border-bottom: none !important;
}
#hs-mobile-nav-root .hs-image-shadow {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 0 12px rgba(0, 0, 0, 0.05) !important;
}
#hs-mobile-nav-root .hs-highlight-border {
    border-left: 3px solid #d4af37 !important;
    padding-left: 8px !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
}

/**
 * =============================================================================
 * [NOTICEBOARD ENGINE]
 * =============================================================================
 */

/* Container and Structure */
.hs-noticeboard-wrapper {
    position: relative;
    width: 100%;
}

.hs-weekly-update-list-sidebar {
    background: #ffffff !important;
    border-radius: 1rem !important;
    box-shadow: 0 10px 30px rgba(0, 48, 87, 0.08) !important;
    border: 1px solid #f1f5f9 !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hs-noticeboard-header {
    margin-bottom: 1rem;
}

.hs-noticeboard-heading {
    font-family: var(--hs-font-head, 'Montserrat', sans-serif) !important;
    color: var(--hs-dark, #003057) !important;
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin: 1rem 0 1rem 0 !important;
    padding: 10px 0 10px 10px !important;
    border-left: 6px solid var(--hs-gold, #f0b323) !important;
}

/* Campus Switcher Chips */
.hs-noticeboard-chips {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 4px !important;
    margin-bottom: -12px !important;
    margin-right: 15px !important;
    position: relative !important;
    z-index: 20 !important;
}

#hs-campus-chip, #hs-events-campus-chip {
    font-family: var(--hs-font-head, 'Montserrat', sans-serif) !important;
    background-color: var(--hs-gold, #f0b323) !important;
    color: var(--hs-dark, #003057) !important;
    font-size: 9px !important;
    font-weight: 900 !important;
    letter-spacing: 0.1em !important;
    padding: 6px 8px !important;
    border-radius: 0.125rem !important;
    text-transform: uppercase !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

#hs-campus-toggle, #hs-events-campus-toggle {
    font-family: var(--hs-font-head, 'Montserrat', sans-serif) !important;
    background-color: var(--hs-gold, #f0b323) !important;
    color: var(--hs-dark, #003057) !important;
    font-size: 9px !important;
    font-weight: 900 !important;
    width: 21px !important;
    height: 21px !important;
    padding: 0 !important;
    border-radius: 0.125rem !important;
    cursor: pointer !important;
    border: none !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
    transition: background-color 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#hs-campus-toggle:hover, #hs-events-campus-toggle:hover {
    background-color: #e0a312 !important;
}

/* Pinned Card */
.hs-pinned-card {
    background-color: var(--hs-dark, #003057) !important;
    padding: 0.75rem 1.25rem !important;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    transition: background-color 0.3s ease !important;
}

.hs-pinned-card:hover {
    background-color: #002442 !important;
}

.hs-pinned-card-glow {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    margin-right: -2rem !important;
    margin-top: -2rem !important;
    width: 8rem !important;
    height: 8rem !important;
    background-color: #ffffff !important;
    opacity: 0.05 !important;
    border-radius: 9999px !important;
    filter: blur(24px) !important;
    transition: opacity 0.3s ease !important;
}

.hs-pinned-card:hover .hs-pinned-card-glow {
    opacity: 0.1 !important;
}

.hs-pinned-tag-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-bottom: 0.5rem !important;
    position: relative !important;
    z-index: 10 !important;
}

.hs-pinned-tag {
    background-color: var(--hs-gold, #f0b323) !important;
    color: var(--hs-dark, #003057) !important;
    font-family: var(--hs-font-head, 'Montserrat', sans-serif) !important;
    font-size: 9px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    padding: 6px 8px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    border-radius: 0.125rem !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
}

.hs-pinned-tag i, .hs-important-tag i {
    margin-right: 3px !important;
}

.hs-pinned-heading {
    font-family: var(--hs-font-head, 'Montserrat', sans-serif) !important;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    line-height: 1.3em !important;
    color: #ffffff !important;
    margin: 0 0 0.5rem 0 !important;
    position: relative !important;
    z-index: 10 !important;
    transition: color 0.3s ease !important;
}

.hs-pinned-read-more {
    display: flex !important;
    align-items: center !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: var(--hs-gold, #f0b323) !important;
    position: relative !important;
    z-index: 10 !important;
    margin-top: auto !important;
    padding-top: 0.5rem !important;
    transition: color 0.3s ease !important;
}

.hs-pinned-card:hover .hs-pinned-read-more i {
    transform: translateX(4px) !important;
}
.hs-pinned-card:hover .hs-pinned-read-more {
    color: #ffffff !important;
}

.hs-pinned-read-more i {
    margin-left: 0.375rem !important;
    transition: transform 0.3s ease !important;
}

/* Older Notices */
.hs-older-notices-container {
    padding: 1.5rem !important;
    background-color: #ffffff !important;
}

.hs-older-notice-item {
    padding: 1rem 1.5rem !important;
    margin-left: -1.5rem !important;
    margin-right: -1.5rem !important;
    border-bottom: 1px solid #f3f4f6 !important;
    background-color: transparent !important;
    transition: background-color 0.2s ease !important;
    cursor: pointer !important;
    display: block !important;
    position: relative !important;
    list-style: none !important;
}

.hs-older-notice-item:last-child {
    border-bottom: none !important;
}

.hs-older-notice-item:hover {
    background-color: #f9fafb !important;
}

.hs-older-notice-border {
    border-left: 4px solid transparent !important;
    padding-left: 0.75rem !important;
    transition: border-color 0.2s ease !important;
}

.hs-older-notice-item:hover .hs-older-notice-border {
    border-color: var(--hs-gold, #f0b323) !important;
}

.hs-important-tag-wrapper {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    margin-bottom: 4px !important;
}

.hs-important-tag {
    background-color: var(--hs-gold, #f0b323) !important;
    color: var(--hs-dark, #003057) !important;
    font-family: var(--hs-font-head, 'Montserrat', sans-serif) !important;
    font-size: 9px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    padding: 6px 8px !important;
    border-radius: 0.125rem !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
}

.hs-older-notice-title {
    font-family: var(--hs-font-head, 'Montserrat', sans-serif) !important;
    font-weight: 700 !important;
    font-size: 1.125rem !important;
    color: var(--hs-dark, #003057) !important;
    line-height: 1.3em !important;
    margin: 0 0 6px 0 !important;
    transition: color 0.2s ease !important;
}

.hs-older-notice-read-more {
    display: flex !important;
    align-items: center !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: var(--hs-dark, #003057) !important;
    margin-top: 0.5rem !important;
    transition: color 0.2s ease !important;
}

.hs-older-notice-item:hover .hs-older-notice-read-more {
    color: var(--hs-gold, #f0b323) !important;
}

.hs-older-notice-item:hover .hs-older-notice-read-more i {
    transform: translateX(4px) !important;
}

.hs-older-notice-read-more i {
    margin-left: 0.375rem !important;
    transition: transform 0.3s ease !important;
}

/* Pagination */
.hs-notice-pagination {
    margin-top: 1rem !important;
    padding-top: 1rem !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.375rem !important;
    border-top: 1px solid #f3f4f6 !important;
}

.hs-notice-pagination.hidden {
    display: none !important;
}

.hs-pagination-btn {
    width: 1.75rem !important;
    height: 1.75rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 9999px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    transition: all 0.2s ease !important;
    border: none !important;
    background: transparent !important;
    cursor: pointer !important;
}

.hs-pagination-btn.active {
    background-color: var(--hs-dark, #003057) !important;
    color: #ffffff !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
}

.hs-pagination-btn.inactive {
    color: #6b7280 !important;
}

.hs-pagination-btn.inactive:hover {
    color: var(--hs-dark, #003057) !important;
    background-color: #f3f4f6 !important;
}

.hs-pagination-btn.nav {
    color: #9ca3af !important;
}

.hs-pagination-btn.nav:hover {
    color: var(--hs-dark, #003057) !important;
    background-color: #f3f4f6 !important;
}

.hs-pagination-btn.nav.disabled {
    color: #d1d5db !important;
    cursor: not-allowed !important;
    background: transparent !important;
}

/* Modal */
.hs-noticeboard-modal-scope {
    position: fixed !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem !important;
    text-align: left !important;
    z-index: 99999 !important;
}

.hs-noticeboard-modal-scope.hidden {
    display: none !important;
}

.hs-modal-backdrop {
    position: absolute !important;
    inset: 0 !important;
    background-color: rgba(0, 0, 0, 0.95) !important;
    transition: opacity 0.3s ease !important;
}

.hs-modal-content {
    position: relative !important;
    background-color: #ffffff !important;
    border-radius: 1rem !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    width: 100% !important;
    max-width: 42rem !important;
    max-height: 90vh !important;
    z-index: 10 !important;
    transform: scale(0.95) !important;
    opacity: 0 !important;
    transition: all 0.3s ease !important;
}

.hs-modal-content.is-open {
    transform: scale(1) !important;
    opacity: 1 !important;
}

.hs-modal-close-btn {
    position: absolute !important;
    top: 1rem !important;
    right: 1rem !important;
    width: 2rem !important;
    height: 2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 9999px !important;
    background-color: #f3f4f6 !important;
    color: #6b7280 !important;
    transition: all 0.2s ease !important;
    z-index: 20 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    border: none !important;
    cursor: pointer !important;
}

.hs-modal-close-btn:hover {
    background-color: var(--hs-dark, #003057) !important;
    color: #ffffff !important;
}

.hs-modal-inner {
    width: 100% !important;
    padding: 1.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
}

@media (min-width: 640px) {
    .hs-modal-inner {
        padding: 2rem !important;
    }
}

.hs-modal-img-wrapper {
    width: 100% !important;
    margin-bottom: 2rem !important;
    flex-shrink: 0 !important;
}

.hs-modal-img-wrapper.hidden {
    display: none !important;
}

.hs-modal-img-wrapper img {
    width: 100% !important;
    height: auto !important;
    max-height: 40vh !important;
    object-fit: cover !important;
    border-radius: 15px !important;
    box-shadow: 0 0 35px rgba(0, 48, 87, 0.15) !important;
}

.hs-modal-title {
    font-family: var(--hs-font-head, 'Montserrat', sans-serif) !important;
    font-weight: 700 !important;
    font-size: 1.5rem !important;
    color: var(--hs-dark, #003057) !important;
    line-height: 1.25 !important;
    border-bottom: 1px solid #f3f4f6 !important;
    padding-bottom: 0.75rem !important;
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
}

.hs-modal-prose {
    flex: 1 1 0% !important;
    font-family: var(--hs-font-body, 'Open Sans', sans-serif) !important;
    font-size: 1rem !important;
    line-height: 1.7 !important;
    color: #475569 !important;
}

.hs-modal-prose p {
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
}

.hs-modal-prose ul {
    list-style: none !important;
    padding-left: 20px !important;
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
}

.hs-modal-prose li {
    margin-bottom: 0.5rem !important;
    padding-left: 27px !important;
    position: relative !important;
    display: block !important;
}

.hs-modal-prose li::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 5px !important;
    width: 16px !important;
    height: 16px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23f0b323' d='M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204 0z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
}

.hs-modal-prose strong {
    font-weight: 700 !important;
    color: var(--hs-dark, #003057) !important;
}

/* Mobile Slider Header Controls */
@media(max-width: 767px) {
    .hs-shortcode-slider-wrapper[data-display="slider"] .hs-slider-grid-filter { width: 100% !important; margin-bottom: 15px !important; }
    .hs-shortcode-slider-wrapper[data-display="slider"] .hs-grid-controls-right { width: 100%; justify-content: space-between; }
    .hs-shortcode-slider-wrapper[data-display="slider"] .hs-top-arrows { display: none !important; }
}
@media(min-width: 768px) {
}

/* ==========================================
 * [BESPOKE] PARENT FITNESS WIDGET & MODAL
 * ========================================== */
.hs-fitness-widget {
    background-color: #003057;
    padding: 2rem;
    padding-top: 4rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-radius: 1rem;
    position: relative;
    display: flex;
    flex-direction: column;
    margin-top: 4rem;
    font-family: 'Montserrat', sans-serif !important;
}

.hs-fitness-glow-wrapper {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 1rem;
    z-index: 0;
    pointer-events: none;
}

.hs-fitness-glow {
    position: absolute;
    top: 0;
    right: 0;
    margin-right: -4rem;
    margin-top: -4rem;
    width: 12rem;
    height: 12rem;
    background-color: white;
    opacity: 0.05;
    border-radius: 9999px;
    filter: blur(24px);
}

.hs-fitness-img {
    position: absolute;
    top: -3.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 7rem;
    height: 7rem;
    border-radius: 9999px;
    border: 4px solid #f0b323;
    object-fit: cover;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 20;
}

.hs-fitness-img-group {
    position: absolute;
    top: -3.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    z-index: 20;
}

.hs-fitness-img-item {
    width: 7rem;
    height: 7rem;
    border-radius: 9999px;
    border: 4px solid #f0b323;
    object-fit: cover;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    margin-left: -2rem; 
    background: #003057; 
}

.hs-fitness-img-item:first-child {
    margin-left: 0;
}

.hs-fitness-header {
    text-align: center;
    position: relative;
    z-index: 10;
    margin-bottom: 2rem;
}

.hs-fitness-title {
    font-weight: 900;
    font-size: 1.5rem;
    color: white;
    line-height: 1.25;
    margin-bottom: 1rem;
    margin-top: 0;
    font-family: 'Montserrat', sans-serif !important;
}

.hs-fitness-time {
    color: #f0b323;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background-color: rgba(240, 179, 35, 0.1);
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    display: inline-block;
}

.hs-fitness-schedule {
    position: relative;
    z-index: 10;
    font-size: 15px;
    font-weight: 700;
    color: white;
}

.hs-fitness-day {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}

.hs-fitness-day:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.hs-fitness-day-label {
    font-weight: 800;
    color: #f0b323;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 11px;
    margin-bottom: 0.15rem;
}

.hs-fitness-btn {
    margin-top: 1.25rem;
    width: 100%;
    padding: 0.875rem 0;
    background-color: #f0b323;
    color: #003057;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
    font-family: 'Montserrat', sans-serif !important;
}

.hs-fitness-btn:hover {
    background-color: #e0a212;
}

/* ==========================================
 * CAMPUS TABS STYLING
 * ========================================== */
.hs-fitness-campus-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 10;
}

/* Specific style for tabs inside the white modal */
.hs-fitness-campus-tabs.hs-modal-tabs {
    margin-bottom: 0;
}

.hs-fitness-tab {
    background: rgba(255, 255, 255, 0.08); /* Greyed out */
    color: rgba(255, 255, 255, 0.5); /* Faded text */
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1.25rem;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Montserrat', sans-serif !important;
    flex: 1;
    max-width: 120px;
    text-align: center;
}

/* Darker grey tabs for the white modal background */
.hs-modal-tabs .hs-fitness-tab {
    background: #f3f4f6;
    color: #6b7280;
    border-color: #e5e7eb;
}

.hs-fitness-tab:first-child {
    border-radius: 9999px 0 0 9999px;
    border-right: none;
}

.hs-fitness-tab:last-child {
    border-radius: 0 9999px 9999px 0;
    border-left: none;
}

/* Highlight effect on hover for unselected */
.hs-fitness-tab:not(.active):hover {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

.hs-modal-tabs .hs-fitness-tab:not(.active):hover {
    background: #e5e7eb;
    color: #374151;
}

/* Selected State */
.hs-fitness-tab.active {
    background: #f0b323; /* Brand Yellow */
    color: #003057; /* Dark Blue Text */
    border-color: #f0b323;
}

/* Modal Hero Graphic */
.hs-fitness-modal-hero {
    width: 100%;
    background: #f3f4f6;
    position: relative;
}

.hs-fitness-modal-hero {
    background-color: #f8f9fa;
    display: flex;
    justify-content: center;
}

.hs-fitness-modal-hero img {
    width: 100%;
    height: auto;
    max-height: 65vh;
    object-fit: contain;
    display: block;
}

/* Modal specific typography fixes */
#hs-fitness-modal-container h3, 
#hs-fitness-modal-container h4, 
#hs-fitness-modal-container span, 
#hs-fitness-modal-container p, 
#hs-fitness-modal-container li {
    font-family: 'Montserrat', sans-serif !important;
}

#hs-fitness-modal-container p {
    line-height: 1.6 !important;
    margin-bottom: 0.75rem;
}
#hs-fitness-modal-container p:last-child {
    margin-bottom: 0;
}

.hs-fitness-modal-wrapper {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: left;
    z-index: 2147483647;
    font-family: 'Montserrat', sans-serif !important;
}

@media (min-width: 640px) {
    .hs-fitness-modal-wrapper {
        padding: 1.5rem;
    }
}

.hs-fitness-modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(3px);
    transition: opacity 0.3s;
    cursor: pointer;
}

.hs-fitness-modal-content {
    position: relative;
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 90%;
    max-width: 42rem;
    max-height: 92vh;
    z-index: 10;
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s;
    box-sizing: border-box !important;
}

.hs-fitness-modal-content.is-active {
    transform: scale(1);
    opacity: 1;
}

.hs-fitness-modal-inner {
    width: 100%;
    padding: 1rem 1.25rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-sizing: border-box !important;
}

@media (min-width: 640px) {
    .hs-fitness-modal-inner {
        padding: 1rem 1.5rem 1.5rem 1.5rem;
    }
}

/* Wrapper to pull tabs half-over the image */
.hs-modal-tabs-wrapper {
    display: flex;
    justify-content: center;
    margin-top: -1.25rem;
    position: relative;
    z-index: 20;
    margin-bottom: 1rem;
}

.hs-modal-tabs-wrapper .hs-fitness-campus-tabs {
    margin-bottom: 0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    border-radius: 9999px;
    background: #ffffff; /* So the crack between tabs isn't transparent */
}

/* Modal Header Layout */
.hs-fitness-modal-header {
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
    text-align: left; /* Keep title on left or center? User said switch is centered, didn't specify title. Keep left. */
}

.hs-fitness-modal-label {
    font-size: 12px;
    color: #f0b323;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
    display: block;
}

.hs-fitness-modal-heading {
    font-weight: 700;
    font-size: 1.5rem;
    color: #003057;
    line-height: 1.25;
    margin: 0;
}

.hs-fitness-timetable-heading {
    margin-top: 3.5rem !important;
    padding-bottom: 0.75rem !important;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 1rem;
}

.hs-fitness-modal-body {
    flex: 1 1 0%;
    font-size: 15px;
    color: #4b5563;
    line-height: 1.7 !important;
    word-break: break-word; /* Prevents overflow on mobile */
}

/* Mobile specific fixes */
@media (max-width: 480px) {
    .hs-fitness-modal-heading {
        font-size: 1.15rem !important;
    }
    .hs-fitness-day {
        font-size: 14px;
    }
}

/* ==========================================
   EVENTS CALENDAR SIDEBAR CSS TOGGLE
   ========================================== */
#hs-events-sidebar-wrapper[data-active-campus="chaofah"] .hs-events-sidebar-item:not([data-campus*="chaofah"]):not([data-campus*="both"]) {
    display: none !important;
}
#hs-events-sidebar-wrapper[data-active-campus="cherngtalay"] .hs-events-sidebar-item:not([data-campus*="cherngtalay"]):not([data-campus*="both"]) {
    display: none !important;
}

/* Language Switcher Mobile Placement Fix */
@media (max-width: 768px) {
  .hs-section-tabs .hs-lang-switcher {
    top: -35px !important;
    right: -10px !important;
  }
}

/* 10 Years Exam Table Alignment */
.hs-standard-table.hs-table-years th:not(:first-child),
.hs-standard-table.hs-table-years td:not(:first-child) {
    text-align: center !important;
    white-space: nowrap !important;
}

/* Ensure direct links in tabs are bold like regular tab buttons */
.hs-section-tabs .hs-nav-group-toggle.hs-direct-link {
    font-weight: 700 !important;
}

/* ==========================================
   CUSTOM HTML BUTTON STYLES (hs-btn-custom-sm)
   ========================================== */
.hs-btn-custom-sm {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background-color: var(--hs-gold, #f0b323) !important;
    color: var(--hs-dark, #003057) !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    padding: 0 0.8rem !important; /* Removed vertical padding since we are forcing height */
    border-radius: 4px !important;
    font-size: 0.65rem !important;
    letter-spacing: 0.05em !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    border: 2px solid var(--hs-gold, #f0b323) !important;
    gap: 6px; 
    
    /* Strict height limits to stop stretching */
    height: 32px !important;
    max-height: 32px !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    align-self: flex-start !important;
}

/* Ensure the Divi icon can transition smoothly */
.hs-btn-custom-sm .et-pb-icon {
    display: inline-block !important;
    transition: transform 0.3s ease !important;
    font-size: 16px !important; /* Force a strict larger pixel size */
    vertical-align: middle !important;
    line-height: 1 !important;
    margin-top: -2px !important; /* Slight optical adjustment for Divi arrows */
}

.hs-btn-custom-sm:hover {
    /* Keep button stationary, no lift, no color change */
    transform: none !important;
}

/* Animate arrow slightly to the right on hover */
.hs-btn-custom-sm:hover .et-pb-icon {
    transform: translateX(4px) !important;
}

/* =============================================================================
 * GLOBAL READ MORE COLLAPSE SYSTEM
 * ============================================================================= */
.hs-read-more-container {
    position: relative !important;
    max-height: 400px;
    overflow: hidden;
    transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.hs-read-more-container.hs-expanded {
    max-height: 8000px !important; /* Arbitrarily large to allow expansion */
}

/* Gradient Fade Overlay */
.hs-read-more-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1) 90%);
    transition: opacity 0.5s ease;
    pointer-events: none; /* Let clicks pass through */
    z-index: 5;
}
.hs-read-more-container.hs-expanded::after,
.hs-read-more-container.hs-no-collapse::after {
    opacity: 0;
    visibility: hidden;
}

/* Different Height Classes */
.hs-read-more-container.hs-collapse-200 { max-height: 200px; }
.hs-read-more-container.hs-collapse-600 { max-height: 600px; }
.hs-read-more-container.hs-collapse-800 { max-height: 800px; }

/* Read More Button */
.hs-read-more-btn-wrapper {
    display: flex;
    justify-content: center;
    margin-top: -30px;
    position: relative;
    z-index: 10;
    padding-bottom: 25px;
}
.hs-read-more-btn {
    background-color: var(--hs-dark, #003057);
    color: white !important;
    border: none;
    padding: 10px 28px;
    border-radius: 30px;
    font-family: var(--hs-font-head, 'Montserrat', sans-serif);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 48, 87, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.hs-read-more-btn:hover {
    background-color: var(--hs-gold, #f0b323);
    color: var(--hs-dark, #003057) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(240, 179, 35, 0.3);
}

/* =============================================================================
 * SCHEDULE / NOTICES BOX (Main Content Area)
 * ============================================================================= */
.hs-schedule-box {
    border: 2px solid var(--hs-dark, #003057);
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    background: #ffffff;
}

.hs-schedule-box-header {
    background: var(--hs-dark, #003057);
    color: #ffffff;
    padding: 16px 20px;
    font-family: var(--hs-font-head, 'Montserrat', sans-serif);
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 0.5px;
}

.hs-schedule-box-header i {
    color: var(--hs-gold, #f0b323);
    font-size: 1.2rem;
}

.hs-schedule-box-body {
    padding: 20px;
}

.hs-schedule-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    border-bottom: 1px dashed #cbd5e1;
    padding-bottom: 16px;
}

.hs-schedule-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.hs-schedule-day {
    font-family: var(--hs-font-head, 'Montserrat', sans-serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--hs-dark, #003057);
    flex: 1;
    padding-right: 15px;
    margin: 0 !important;
}

.hs-schedule-time {
    font-family: var(--hs-font-body, 'Open Sans', sans-serif);
    font-size: 0.95rem;
    font-weight: 600;
    color: #475569;
    text-align: right;
    line-height: 1.5;
    margin: 0 !important;
}

.hs-schedule-note {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
    font-style: italic;
    line-height: 1.5;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-bottom: 0 !important;
}

.hs-schedule-note i {
    color: var(--hs-gold, #f0b323);
    margin-top: 3px;
}

@media (max-width: 600px) {
    .hs-schedule-row {
        flex-direction: column;
        gap: 6px;
    }
    .hs-schedule-time {
        text-align: left;
    }
}

/* Divi Visual Builder overrides for Read More (disables collapse so user can edit full text) */
.et-fb .hs-read-more-container {
    max-height: none !important;
    overflow: visible !important;
}
.et-fb .hs-read-more-container::after {
    display: none !important;
}

/* Default border-radius for standalone images in weekly updates.
   Using low specificity so Divi Builder settings easily override this! */
.hs-weekly-article .et_pb_image_wrap {
    border-radius: 8px;
    overflow: hidden;
}
@media (max-width: 767px) {
    .hs-weekly-article .et_pb_image_wrap {
        border-radius: 4px;
    }
}

/* ==========================================
   UTILITY: Object Fit Cover for Divi Images
   Forces images to perfectly fill their container's drop-shadow/rounded corners box 
   without leaving empty whitespace or squishing the aspect ratio.
   Usage: Add 'hs-fill-image' to the Advanced -> CSS Class field of the Image module
   ========================================== */
.hs-fill-image,
.hs-fill-image .et_pb_image_wrap,
.hs-fill-image .et_pb_image_wrap a {
    height: 100% !important;
    width: 100% !important;
    display: block !important;
}

.hs-fill-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* ==========================================
   WEEKLY UPDATE: Global Image Fill
   Automatically applies the object-fit cover logic to ALL Divi Image modules 
   inside the .weekly-update section so they stretch to fill their styled columns.
   ========================================== */
.weekly-update .et_pb_image,
.weekly-update .et_pb_image .et_pb_image_wrap,
.weekly-update .et_pb_image .et_pb_image_wrap a {
    height: 100% !important;
    width: 100% !important;
    display: block !important;
}

.weekly-update .et_pb_image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}




/* ========================================= */
/* REUSABLE LAYOUT: Text (75%) / Video (25%) */
/* Usage: Add class "hs-text-video-split" to a parent Group */
/* ========================================= */

/* DESKTOP & TABLET: Strict 25% Video, Flexible Text */
@media (min-width: 768px) {
    .hs-text-video-split {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        gap: 24px !important;
    }
    
    /* Text dynamically fills all remaining space safely */
    .hs-text-video-split > *:first-child {
        flex: 1 1 auto !important; 
        width: auto !important;
        margin: 0 !important; 
    }
    
    /* Video Column locked strictly to 25% */
    .hs-text-video-split > *:last-child {
        flex: 0 0 25% !important;
        width: 25% !important;
        max-width: 25% !important;
        margin: 0 !important; 
    }
}

/* MOBILE: Stack Vertically and Force Full Width */
@media (max-width: 767px) {
    .hs-text-video-split {
        display: flex !important;
        flex-direction: column !important; 
        align-items: stretch !important; /* Physically pulls children to 100% edges */
        gap: 24px !important; 
    }
    
    /* Brute-force ALL children wrappers to 100% */
    .hs-text-video-split > * {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 auto !important;
        align-self: stretch !important;
        margin: 0 !important; 
    }
}

/* FORCE THE ACTUAL VIDEO TO FILL ITS WRAPPER (ALL SCREENS) */
.hs-text-video-split video {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
}


/* =========================================
   HEADSTART AWARD CARDS (4-COLUMN DARK MODE)
   Scoped to: .hs-award-card-codeblock
   ========================================= */

.hs-award-card-codeblock .hs-award-grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

@media (max-width: 1024px) {
    .hs-award-card-codeblock .hs-award-grid-4col { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 0.5rem;
    }
}

@media (max-width: 767px) {
    .hs-award-card-codeblock .hs-award-grid-4col { 
        grid-template-columns: 1fr; 
    }
}

.hs-award-card-codeblock .hs-award-card {
    background: var(--hs-dark, #003057);
    color: white;
    padding: 25px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 48, 87, 0.15);
}

/* Faded Background Icons */
.hs-award-card-codeblock .hs-award-card::after {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: -10px;
    bottom: -20px;
    font-size: 8rem;
    color: rgba(255,255,255,0.04);
    z-index: 0;
    transform: rotate(-10deg);
}
.hs-award-card-codeblock .hs-award-card[data-icon="trophy"]::after { content: '\f091'; }
.hs-award-card-codeblock .hs-award-card[data-icon="star"]::after { content: '\f005'; }
.hs-award-card-codeblock .hs-award-card[data-icon="medal"]::after { content: '\f5a2'; }
.hs-award-card-codeblock .hs-award-card[data-icon="award"]::after { content: '\f559'; }

.hs-award-card-codeblock .hs-award-card * { position: relative; z-index: 10; }

/* Bulletproof Title Override */
.hs-award-card-codeblock .hs-award-card h4,
.hs-award-card-codeblock .hs-award-card .hs-award-title { 
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #f0b323 !important; 
    font-size: 22px !important; 
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    position: relative !important;
    z-index: 9999 !important; 
    margin-top: 0 !important;
    margin-bottom: 25px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border-bottom: 2px solid rgba(240, 179, 35, 0.2) !important;
    padding-bottom: 10px !important;
}

.hs-award-card-codeblock .hs-award-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 15px 0;
}
.hs-award-card-codeblock .hs-award-row:last-child { 
    border-bottom: none; 
    padding-bottom: 0;
}

.hs-award-card-codeblock .hs-award-rank {
    font-family: var(--hs-font-head, 'Montserrat', sans-serif);
    font-size: 1.4rem;
    font-weight: 800;
    width: 35px;
    color: var(--hs-gold, #f0b323); 
}

.hs-award-card-codeblock .hs-award-name-wrap {
    flex-grow: 1;
    padding-right: 15px;
}

.hs-award-card-codeblock .hs-award-name { 
    font-family: var(--hs-font-body, 'Open Sans', sans-serif);
    font-weight: 700; 
    font-size: 1rem; 
    color: #ffffff;
}

.hs-award-card-codeblock .hs-award-campus { 
    font-family: var(--hs-font-body, 'Open Sans', sans-serif);
    font-size: 0.75rem; 
    color: #94a3b8; 
    display: block; 
    margin-top: 4px;
    line-height: 1.3;
}

.hs-award-card-codeblock .hs-award-score-wrap {
    text-align: right;
}

.hs-award-card-codeblock .hs-award-score { 
    font-family: var(--hs-font-head, 'Montserrat', sans-serif); 
    font-weight: 800; 
    color: var(--hs-gold, #f0b323); 
    font-size: 1.2rem;
    display: block;
}

.hs-award-card-codeblock .hs-award-pts {
    font-family: var(--hs-font-body, 'Open Sans', sans-serif);
    font-size: 0.65rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-top: -2px;
}