/* KSEZ public mobile QA fixes — 2026-10-19 */
@media (max-width: 767px) {
  html, body { max-width: 100%; overflow-x: clip; }
  .wrapper, #page-content, #page-content .container, #page-content article { min-width: 0; max-width: 100%; }

  /* Public editorial copy: balanced on both edges without altering labels or controls. */
  .page-sub-page #page-content article > p,
  .page-sub-page #page-content section > p,
  .page-sub-page #page-content .section-heading > p,
  .page-sub-page #page-content .cms-section-body,
  .page-sub-page #page-content .advantages-hero-copy > p,
  .page-sub-page #page-content .advantage-card > p,
  .page-sub-page #page-content .policy-introduction p,
  .page-sub-page #page-content .incentive-feature-card > p,
  .page-sub-page #page-content .industry-card__body > p,
  .page-sub-page #page-content .recognition-hero-copy > p,
  .page-sub-page #page-content .leadership-message-copy p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
  }

  /* SOP reader: compact controls and fast image-page canvas on phones. */
  .sop-library-page { min-width: 0; }
  .ksez-pdf-reader { width: 100%; border-radius: 11px; }
  .ksez-pdf-toolbar { gap: 11px; padding: 13px; }
  .ksez-pdf-brand { width: 100%; }
  .ksez-pdf-brand strong { white-space: normal; line-height: 1.3; }
  .ksez-pdf-controls {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    gap: 7px;
  }
  .ksez-pdf-controls .ksez-pdf-button { width: 100%; min-width: 0; padding: 0; }
  .ksez-pdf-page-control { grid-column: span 2; justify-content: center; min-width: 0; padding: 0 7px; }
  .ksez-pdf-zoom-value { display: grid; min-width: 0; place-items: center; }
  .ksez-pdf-actions { display: grid; grid-template-columns: repeat(3, 42px); gap: 8px; width: 100%; justify-content: center; }
  .ksez-pdf-actions .ksez-pdf-button,
  .ksez-pdf-actions .ksez-pdf-download { width: 42px; min-width: 42px; padding: 0; }
  .ksez-pdf-stage { min-height: 360px; padding: 10px; overscroll-behavior: contain; }
  .ksez-pdf-loading, .ksez-pdf-empty { min-height: 360px; padding: 36px 18px; }
  .ksez-pdf-help { gap: 8px; padding: 12px 14px; }
  .ksez-pdf-shortcuts { gap: 8px 12px; }

  /* Competitive Advantages: contain 3D decoration and prevent sideways page drag. */
  .advantages-page { width: 100%; overflow: clip; }
  .advantages-hero { width: 100%; margin-right: 0; margin-left: 0; overflow: hidden; border-radius: 10px; }
  .advantages-hero-copy, .advantages-scorecard, .investment-3d-parent { min-width: 0; max-width: 100%; }
  .advantages-hero h1 { overflow-wrap: anywhere; }
  .advantages-hero-tags { max-width: 100%; }

  /* Incentive descriptions need readable contrast on dark cards. */
  .incentive-feature-card > p { color: rgba(255,255,255,.88) !important; opacity: 1; }

  /* Leadership directory: cards use their full width when photos are not shown. */
  .leadership-card-grid { grid-template-columns: 1fr; gap: 13px; }
  .leadership-card { display: block; min-height: 0; width: 100%; }
  .leadership-card-body { width: 100%; min-height: 0; padding: 17px 18px; }
  .leadership-card h3 { max-width: none; font-size: 17px; line-height: 1.35; overflow-wrap: break-word; }
  .leadership-card-role { font-size: 11px; line-height: 1.45; }
  .leadership-read-button { margin-top: 12px; font-size: 11px; }
  .leadership-message-panel { padding: 20px 16px; }
  .leadership-message-brand { justify-content: flex-start; min-height: 38px; padding-right: 96px; }
  .leadership-message-brand img { width: 108px; height: 38px; padding: 4px 7px; }
  .leadership-slider-controls { top: 18px; right: 16px; }
  .leadership-message-heading { margin-top: 18px; }
  .leadership-message-frame { width: 100%; box-sizing: border-box; }

  /* Public bill download experience. */
  .billing-public-showcase { width: 100%; min-width: 0; margin: 28px 0; padding: 24px 18px; gap: 24px; }
  .billing-public-copy, .billing-dashboard-preview { min-width: 0; max-width: 100%; }
  .billing-public-copy h2 { font-size: 25px; line-height: 1.2; overflow-wrap: anywhere; }
  .billing-public-copy > p { text-align: justify; }
  .billing-public-copy > a { max-width: 100%; white-space: normal; text-align: center; }
  .billing-dashboard-preview { min-height: 275px; padding: 13px; }
  .billing-preview-current { padding: 16px; }
  .billing-preview-current > div { align-items: flex-start; flex-direction: column; gap: 10px; }

  /* About SEZMC route becomes a vertical story on mobile. */
  .sez-connectivity { padding: 24px 18px 22px; }
  .sez-connectivity__viewport { margin-right: 0; overflow: visible; padding: 0; }
  .sez-connectivity__track { display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 18px; min-width: 0; align-items: start; }
  .sez-connectivity__sea { width: 72px; height: 72px; margin-top: 4px; }
  .sez-connectivity__sea figcaption { bottom: 8px; font-size: 8px; }
  .sez-connectivity__stops { display: grid; grid-template-columns: 1fr; gap: 0; height: auto; padding: 0; }
  .sez-connectivity__stops::before { width: 1px; height: auto; left: 7px; right: auto; top: 8px; bottom: 8px; background: linear-gradient(180deg,var(--connectivity-teal),#65bfb4 75%,var(--connectivity-amber)); }
  .sez-connectivity__stops::after { display: none; }
  .sez-connectivity__stop { min-height: 62px; align-items: flex-start; padding: 0 0 14px 31px; text-align: left; }
  .sez-connectivity__point { width: 13px; height: 13px; left: 7px; top: 7px; transform: translate(-50%,-50%); }
  .sez-connectivity__stop h3 { min-height: 0; margin: 0 0 3px; font-size: 12px; }
  .sez-connectivity__stop p { font-size: 9px; text-align: left !important; }
  .sez-connectivity__road { position: static; transform: none; order: 3; margin-top: 5px; padding: 3px 7px; font-size: 7px; }
  .sez-connectivity__note { margin-top: 12px; }
  .sezmc-page-atlas { width: 100%; overflow: hidden; }
  .sezmc-page-atlas-header { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; }
  .sezmc-page-atlas-header h2 { overflow-wrap: anywhere; }
  .sezmc-atlas-fullscreen-button { position: static; max-width: 118px; white-space: normal; }
  .sezmc-page-atlas--network .sezmc-page-atlas-frame { width: 100%; height: 760px; min-height: 0; overflow: hidden; }
  .sezmc-page-atlas-frame iframe { width: 100%; max-width: 100%; }

  /* Staff Motivation hero: restore a true single-column mobile layout. */
  .recognition-hero { display: grid; grid-template-columns: minmax(0,1fr) !important; gap: 24px; padding: 28px 21px; }
  .recognition-hero-copy { min-width: 0; width: 100%; }
  .recognition-hero h1 { font-size: clamp(32px,10vw,40px); line-height: 1.08; white-space: normal !important; overflow-wrap: normal; }
  .recognition-hero h2 { font-size: 20px; line-height: 1.25; }
  .recognition-hero p { width: 100%; font-size: 13px; line-height: 1.7; }
  .recognition-quick-nav { width: 100%; overflow-x: auto; padding-bottom: 4px; }
  .recognition-hero-image { width: 100%; min-width: 0; min-height: 0; }
  .recognition-hero-image img { width: min(100%,430px); max-height: none; margin: 0 auto; }

  /* Industry cards: reserve a reliable visible media area on mobile. */
  .industry-card__image { height: 190px; min-height: 190px; background: #dce9e2; }
  .industry-card__image img { display: block !important; width: 100%; height: 100%; opacity: 1 !important; visibility: visible !important; object-fit: cover; }
  .industry-card__body > p { overflow: visible; display: block; }

  /* Homepage gallery centered and chart cards separated. */
  .ksez-authorities-gallery-row .ksez-gallery-column,
  .ksez-authorities-gallery-row.ksez-gallery-only-layout .ksez-gallery-column { float: none; width: 100%; margin: 0 auto; }
  #gallery .gallery-list { display: grid !important; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; width: min(100%,540px); margin: 0 auto; padding: 0; justify-content: center; }
  #gallery .gallery-list > li { float: none !important; width: auto !important; margin: 0 !important; }
  #gallery .gallery-list img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
  #gallery .gallery-action-row { align-items: center; flex-direction: column; gap: 12px; text-align: center; }
  .ksez-impact-suite-row > .ksez-impact-column,
  .ksez-impact-suite-row > .ksez-growth-column,
  .ksez-impact-suite-row > .ksez-documentary-column { float: none; width: 100% !important; margin-bottom: 26px; }
  .ksez-impact-suite-row > :last-child { margin-bottom: 0; }
}

@media (max-width: 420px) {
  .ksez-pdf-controls { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .ksez-pdf-page-control { grid-column: span 2; }
  .sezmc-page-atlas--network .sezmc-page-atlas-frame { height: 720px; }
}

/* Homepage authorities and gallery: remove the legacy thumbnail centering hack
   on touch layouts and keep both sections readable at every phone width. */
@media (max-width: 991px) {
  .page-homepage-carousel .ksez-authorities-gallery-row {
    align-items: stretch;
    display: flex;
    flex-direction: column;
    gap: 34px;
  }

  .page-homepage-carousel .ksez-authorities-gallery-row > .ksez-authorities-column,
  .page-homepage-carousel .ksez-authorities-gallery-row > .ksez-gallery-column,
  .page-homepage-carousel .ksez-authorities-gallery-row.ksez-gallery-only-layout > .ksez-gallery-column {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .page-homepage-carousel #gallery,
  .page-homepage-carousel #gallery .section-content,
  .page-homepage-carousel #gallery .gallery-list {
    width: 100%;
    max-width: none;
  }

  .page-homepage-carousel #gallery {
    display: block !important;
    height: auto !important;
    overflow: visible;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .page-homepage-carousel #gallery .gallery-list {
    clear: both;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .page-homepage-carousel #gallery .gallery-list > li {
    float: none !important;
    width: auto !important;
    height: auto !important;
    min-width: 0;
    min-height: 0;
    margin: 0 !important;
    padding: 0;
    overflow: hidden;
    border: 1px solid #dce7e1;
    border-radius: 9px;
    background: #edf4f0;
    box-shadow: 0 5px 15px rgba(11, 77, 52, .09);
  }

  .page-homepage-carousel #gallery .gallery-list > li > a {
    position: relative !important;
    left: auto !important;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    margin: 0 !important;
    overflow: hidden;
  }

  .page-homepage-carousel #gallery .gallery-list > li > a::after {
    display: none;
  }

  .page-homepage-carousel #gallery .gallery-list img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    aspect-ratio: auto;
    object-fit: cover;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none;
  }

  .page-homepage-carousel #gallery .gallery-action-row {
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
    text-align: center;
  }

  .page-homepage-carousel #gallery .catalogue-flyers-link,
  .page-homepage-carousel #gallery .gallery-more-link {
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
  }
}

@media (max-width: 767px) {
  .page-homepage-carousel .block {
    max-width: 100%;
    overflow-x: clip;
  }

  .page-homepage-carousel .block .row,
  .page-homepage-carousel .block section,
  .page-homepage-carousel .block .section-content {
    min-width: 0;
    max-width: 100%;
  }

  .page-homepage-carousel .block > .container > .row > [class*="col-"],
  .page-homepage-carousel .block-dark-background > .row > [class*="col-"] {
    float: none;
    width: 100%;
    min-width: 0;
  }

  .page-homepage-carousel .block img,
  .page-homepage-carousel .block video,
  .page-homepage-carousel .block iframe,
  .page-homepage-carousel .block canvas,
  .page-homepage-carousel .block svg {
    max-width: 100%;
  }

  .page-homepage-carousel .block section > header h2,
  .page-homepage-carousel .block section > header h3 {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .page-homepage-carousel .block > .container {
    width: 100%;
    max-width: 100%;
    padding-right: 17px;
    padding-left: 17px;
  }

  .page-homepage-carousel .ksez-authorities-gallery-row {
    margin-right: 0;
    margin-left: 0;
  }

  .page-homepage-carousel .ksez-authorities-gallery-row section > header h2 {
    font-size: clamp(25px, 7.4vw, 32px);
    line-height: 1.2;
  }

  .page-homepage-carousel #our-professors .professor-thumbnail {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 13px;
    width: 100%;
    min-width: 0;
    padding: 10px;
    border: 1px solid #dce7e1;
    border-radius: 9px;
    background: #fff;
  }

  .page-homepage-carousel #our-professors .professor-image {
    float: none;
    width: 76px;
    margin: 0;
  }

  .page-homepage-carousel #our-professors .professor-image img {
    display: block;
    width: 76px;
    height: 92px;
    object-fit: cover;
    border-radius: 6px;
  }

  .page-homepage-carousel #our-professors .professor-thumbnail aside {
    min-width: 0;
    margin-left: 0;
  }

  .page-homepage-carousel #our-professors .professor-thumbnail aside header > a {
    display: block;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .page-homepage-carousel #gallery .gallery-action-row {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 16px;
  }
}

@media (max-width: 520px) {
  .page-homepage-carousel #gallery .gallery-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .page-homepage-carousel #gallery .gallery-action-row {
    align-items: center;
    flex-direction: column;
  }
}

/* Homepage refinements requested for phones only. */
.page-homepage-carousel .about-ksez-mobile-toggle {
  display: none;
}

@media (max-width: 767px) {
  .page-homepage-carousel #about,
  .page-homepage-carousel #our-professors,
  .page-homepage-carousel #gallery,
  .page-homepage-carousel #partners,
  .page-homepage-carousel #donation,
  .page-homepage-carousel .ksez-weather,
  .page-homepage-carousel .ksez-weather-location-action {
    width: 100%;
    max-width: 560px;
    margin-right: auto;
    margin-left: auto;
  }

  .page-homepage-carousel #about .about-ksez-rich-content {
    position: relative;
    max-height: 214px;
    overflow: hidden;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    transition: max-height 0.35s ease;
  }

  .page-homepage-carousel #about .about-ksez-rich-content::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 34px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 86%);
    content: "";
    pointer-events: none;
  }

  .page-homepage-carousel #about .about-ksez-rich-content.is-expanded {
    max-height: 1100px;
  }

  .page-homepage-carousel #about .about-ksez-rich-content.is-expanded::after {
    display: none;
  }

  .page-homepage-carousel #about .about-ksez-rich-content p {
    text-align: justify;
  }

  .page-homepage-carousel .about-ksez-mobile-toggle {
    align-items: center;
    display: inline-flex;
    gap: 5px;
    margin: 8px 0 3px;
    padding: 3px 0;
    border: 0;
    border-bottom: 1px solid rgba(22, 76, 47, 0.34);
    border-radius: 0;
    background: transparent;
    color: #164c2f;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
  }

  .page-homepage-carousel .about-ksez-mobile-toggle svg {
    width: 15px;
    height: 15px;
    transition: transform 0.25s ease;
  }

  .page-homepage-carousel .about-ksez-mobile-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
  }

  .page-homepage-carousel #about .about-ksez-actions .read-more {
    display: none;
  }

  .page-homepage-carousel .ksez-weather {
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
    margin-top: 16px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-left: 3px solid #ea6645;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(22, 76, 47, 0.14);
  }

  .page-homepage-carousel .ksez-weather-main {
    gap: 11px;
  }

  .page-homepage-carousel .ksez-weather-icon {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .page-homepage-carousel .ksez-weather-temperature {
    font-size: 23px;
  }

  .page-homepage-carousel .ksez-weather-condition {
    font-size: 11px;
  }

  .page-homepage-carousel .ksez-weather-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin: 0;
    padding: 9px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-left: 0;
  }

  .page-homepage-carousel .ksez-weather-details span,
  .page-homepage-carousel .ksez-weather-details span:last-child {
    justify-content: flex-start;
    min-height: 34px;
    padding: 7px 9px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    white-space: normal;
  }

  .page-homepage-carousel .ksez-weather-updated {
    position: static;
    grid-column: 1 / -1;
    margin-top: -2px;
    text-align: center;
  }

  .page-homepage-carousel .ksez-weather-location-action {
    align-items: center;
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    padding-top: 8px;
  }

  .page-homepage-carousel .ksez-weather-location-action small {
    text-align: left;
  }

  .page-homepage-carousel #gallery .gallery-action-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
    width: 100%;
    margin-top: 15px;
  }

  .page-homepage-carousel #gallery .catalogue-flyers-link,
  .page-homepage-carousel #gallery .gallery-more-link {
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 40px;
    margin: 0;
    padding: 7px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
  }

  .page-homepage-carousel #gallery .gallery-more-link {
    display: inline-flex;
    border: 1px solid rgba(22, 76, 47, 0.34);
    background: #fff;
    color: #164c2f;
  }

  .page-homepage-carousel #donation > header {
    display: none !important;
  }

  .page-homepage-carousel #donation {
    margin-top: 13px;
  }

  .page-homepage-carousel #donation .section-content,
  .page-homepage-carousel #donation .universal-button {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
  }

  .page-homepage-carousel #donation .universal-button h3 {
    margin: 0;
  }
}

@media (max-width: 380px) {
  .page-homepage-carousel #gallery .catalogue-flyers-link,
  .page-homepage-carousel #gallery .gallery-more-link {
    font-size: 9px;
    padding-right: 5px;
    padding-left: 5px;
  }
}

/* Homepage phone cards: use the available canvas evenly and keep every panel centred. */
@media (max-width: 767px) {
  .page-homepage-carousel .ksez-home-intro-row,
  .page-homepage-carousel .ksez-impact-suite-row,
  .page-homepage-carousel .ksez-connect-row,
  .page-homepage-carousel .ksez-authorities-gallery-row,
  .page-homepage-carousel .ksez-industries-row {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  .page-homepage-carousel .ksez-home-intro-row > [class*="col-"],
  .page-homepage-carousel .ksez-impact-suite-row > [class*="col-"],
  .page-homepage-carousel .ksez-connect-row > [class*="col-"],
  .page-homepage-carousel .ksez-authorities-gallery-row > [class*="col-"],
  .page-homepage-carousel .ksez-industries-row > [class*="col-"] {
    float: none;
    width: 100% !important;
    max-width: none;
    margin-right: auto;
    margin-left: auto;
    padding-right: 0;
    padding-left: 0;
  }

  .page-homepage-carousel :is(
    #news-small,
    #about,
    .ksez-weather,
    .ksez-weather-location-action,
    #academic-life,
    #campus-life,
    #newsletter,
    #connect,
    #our-professors,
    #gallery,
    #partners,
    #donation
  ) {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin-right: auto;
    margin-left: auto;
  }

  .page-homepage-carousel .ksez-impact-suite-row > .ksez-impact-column,
  .page-homepage-carousel .ksez-impact-suite-row > .ksez-growth-column,
  .page-homepage-carousel .ksez-impact-suite-row > .ksez-documentary-column {
    margin-bottom: 24px;
  }

  .page-homepage-carousel .ksez-impact-suite-row > :last-child {
    margin-bottom: 0;
  }

  .page-homepage-carousel #academic-life .impact-content,
  .page-homepage-carousel #campus-life .growth-chart-content,
  .page-homepage-carousel #newsletter > header {
    width: 100%;
    max-width: none;
  }

  .page-homepage-carousel #campus-life .growth-chart,
  .page-homepage-carousel #campus-life .growth-chart svg,
  .page-homepage-carousel #newsletter iframe,
  .page-homepage-carousel #newsletter video {
    display: block;
    width: 100% !important;
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
  }

  .page-homepage-carousel #newsletter iframe,
  .page-homepage-carousel #newsletter video {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .page-homepage-carousel .block-dark-background {
    box-sizing: border-box;
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding: 24px 18px;
  }

  .page-homepage-carousel #connect .connect-block > .row {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  .page-homepage-carousel #connect .connect-block > .row > [class*="col-"] {
    float: none;
    width: 100% !important;
    padding-right: 0;
    padding-left: 0;
  }

  .page-homepage-carousel #connect .ksez-feature-grid,
  .page-homepage-carousel #connect .ksez-feature-card,
  .page-homepage-carousel #partners .section-content,
  .page-homepage-carousel #partners .logos,
  .page-homepage-carousel #donation .section-content,
  .page-homepage-carousel #donation .universal-button {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
  }

  .page-homepage-carousel #our-professors .section-content,
  .page-homepage-carousel #our-professors .professors,
  .page-homepage-carousel #our-professors .professor-thumbnail,
  .page-homepage-carousel #our-professors .authority-resource-links {
    width: 100%;
    max-width: none;
  }

  .page-homepage-carousel #our-professors .authority-resource-links {
    justify-content: center;
  }

  .page-homepage-carousel #our-professors .authority-board-link {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-height: 38px;
    margin: 0;
    padding: 8px 15px;
    border: 1px solid rgba(22, 76, 47, 0.22);
    border-radius: 999px;
    background: #f6faf8;
    text-align: center;
  }
}

/* Keep the original header brand geometry; only centre its artwork on phones. */
@media (max-width: 767px) {
  .billing-public-page .careers-hero {
    display: block;
    grid-template-columns: minmax(0, 1fr) !important;
    min-height: 0;
    margin-top: 4px;
    border-radius: 12px;
    background: linear-gradient(135deg, #073d27 0%, #0b5837 62%, #14724a 100%);
    box-shadow: 0 15px 36px rgba(7, 61, 39, 0.18);
  }

  .billing-public-page .careers-hero::before {
    background:
      radial-gradient(circle at 92% 12%, rgba(255, 255, 255, 0.12), transparent 28%),
      linear-gradient(115deg, transparent 62%, rgba(255, 255, 255, 0.045));
  }

  .billing-public-page .careers-hero__content {
    width: 100%;
    min-width: 0;
    padding: 31px 22px 29px;
  }

  .billing-public-page .careers-kicker {
    max-width: 100%;
    margin-bottom: 16px;
    font-size: 9.5px;
    line-height: 1.35;
    letter-spacing: 1.05px;
    white-space: normal;
  }

  .billing-public-page .careers-hero h1 {
    max-width: 430px;
    margin-bottom: 14px;
    font-size: clamp(32px, 10.5vw, 40px);
    line-height: 1.04;
    letter-spacing: -1.25px;
    white-space: normal;
    overflow-wrap: normal;
  }

  .billing-public-page .careers-hero__content > p {
    max-width: 430px;
    font-size: 13px;
    line-height: 1.68;
    text-align: left;
  }

  .billing-public-page .careers-hero__actions {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 11px 16px;
    margin-top: 23px;
  }

  .billing-public-page .careers-primary-btn {
    min-height: 42px;
    padding: 11px 15px;
    font-size: 10px;
  }

  .billing-public-page .careers-hero__actions > span {
    max-width: 120px;
    font-size: 9px;
    line-height: 1.4;
  }

  .billing-public-page .careers-hero__visual {
    display: none !important;
  }

  .career-opportunities-page :is(
    .careers-hero__content,
    .careers-values article,
    .careers-section-heading,
    .careers-empty__copy,
    .careers-process li,
    .careers-policy,
    .career-card,
    .career-detail-content,
    .career-application-panel__heading
  ) p {
    text-align: justify !important;
    text-align-last: left;
    text-justify: inter-word;
    hyphens: auto;
    overflow-wrap: break-word;
  }

  .career-opportunities-page .careers-faq {
    display: none !important;
  }

  .sezmc-about-page :is(
    .sezmc-content-section,
    .sezmc-principle-card,
    .ksez-recognition,
    .ksez-sector-grid article,
    .sez-connectivity__intro
  ) p {
    text-align: justify !important;
    text-align-last: left;
    text-justify: inter-word;
    hyphens: auto;
    overflow-wrap: break-word;
  }

  :is(
    .khairpur-closing-statement,
    .team-showcase .team-page-heading,
    .clusters-page .clusters-hero-copy,
    .clusters-page .clusters-intro,
    .clusters-page .cluster-card,
    .clusters-page .clusters-conclusion,
    .salient-page .salient-hero-copy,
    .salient-page .salient-section-heading,
    .salient-page .feature-card,
    .salient-page .salient-value-panel,
    .salient-page .salient-legal-note,
    .investment-policy-page .policy-introduction,
    .investment-policy-page .policy-section-heading,
    .investment-policy-page .policy-objectives-grid article,
    .investment-policy-page .incentive-feature-card,
    .investment-policy-page .investor-assurance,
    .investment-policy-page .investment-policy-note,
    .advantages-page .advantages-hero-copy,
    .advantages-page .advantages-intro,
    .advantages-page .advantage-card,
    .advantages-page .advantages-conclusion,
    .academia-page .academia-hero-copy,
    .academia-page .academia-overview,
    .academia-page .academic-partners > .section-heading,
    .academia-page .objectives-copy,
    .academia-page .cooperation-grid article,
    .academia-page .university-portal-copy,
    .academia-page .academia-vision,
    .academia-page .academia-gallery > .section-heading
  ) p {
    text-align: justify !important;
    text-align-last: left;
    text-justify: inter-word;
    hyphens: auto;
    overflow-wrap: break-word;
  }

  #page-footer #footer-bottom .footer-inner .copyright {
    display: block;
    width: 100%;
    padding: 0 8px;
    font-size: 9px !important;
    line-height: 1.45;
    letter-spacing: 0;
    text-align: center;
  }

  .page-homepage-carousel #connect > header h2[data-mobile-heading] {
    font-size: 0;
  }

  .page-homepage-carousel #connect > header h2[data-mobile-heading]::before {
    content: attr(data-mobile-heading);
    font-size: clamp(22px, 6.5vw, 28px);
    line-height: 1.2;
  }

  .navigation-wrapper .primary-navigation-wrapper header .navbar-brand {
    align-items: center;
    display: flex;
    justify-content: center;
    height: 66px;
    padding-top: 0 !important;
  }

  .navigation-wrapper .primary-navigation-wrapper header .navbar-brand > a {
    align-items: center;
    display: flex;
    justify-content: center;
    height: 60px;
    line-height: 1;
  }

  .navigation-wrapper .primary-navigation-wrapper header .navbar-brand img {
    display: block;
    margin: 0;
    object-fit: contain;
    transform: none !important;
  }

  #page-footer #footer-content .logo img[src*="logo-white"] {
    display: block;
    width: 82px !important;
    max-width: 82px !important;
    height: auto !important;
    margin-right: auto;
    margin-left: auto;
  }
}
