  /*
   * ============================================================
   * UP DATA COMMONS - osTicket Custom Landing Page
   * ============================================================
   */
  /* ------------------------------------------------------------
     1. Main osTicket Landing Page Layout
     ------------------------------------------------------------ */
  /* Hide the default sidebar on the landing page */
  #landing_page > .sidebar,
  #landing_page .sidebar,
  #landing_page .front-page-sidebar {
      display: none !important;
  }
  /* Expand main content */
  #landing_page {
      width: 100% !important;
      max-width: 1200px !important;
      margin: 0 auto !important;
      padding: 0 15px !important;
      box-sizing: border-box !important;
  }
  /* Expand the content area after hiding sidebar */
  #landing_page > .main-content,
  #landing_page .main-content {
      width: 100% !important;
      max-width: 100% !important;
      margin: 0 auto !important;
      padding: 0 !important;
      float: none !important;
      box-sizing: border-box !important;
  }
  /* Remove unnecessary default spacing */
  #landing_page .thread-body {
      padding: 0 !important;
      margin: 0 !important;
      border: none !important;
      background: transparent !important;
  }
  /* ------------------------------------------------------------
     2. UPDC Hero Banner
     ------------------------------------------------------------ */
  .updc-hero {
      background: linear-gradient(
          135deg,
          rgba(123, 17, 19, 0.97) 0%,
          rgba(0, 75, 35, 0.94) 100%
      ) !important;
      color: #ffffff !important;
      padding: 45px 40px !important;
      border-radius: 12px !important;
      margin: 0 0 30px 0 !important;
      box-shadow:
          0 10px 25px -5px rgba(0, 0, 0, 0.15) !important;
      font-family:
          -apple-system,
          BlinkMacSystemFont,
          "Segoe UI",
          Roboto,
          Helvetica,
          Arial,
          sans-serif !important;
      box-sizing: border-box !important;
  }
  /* Hero title */
  .updc-hero h1 {
      color: #ffffff !important;
      font-size: 2.2em !important;
      line-height: 1.2 !important;
      margin: 0 0 10px 0 !important;
      padding: 0 !important;
      font-weight: 800 !important;
      letter-spacing: -0.5px !important;
      text-transform: uppercase !important;
  }
  /* Hero description */
  .updc-hero p {
      font-size: 1.05em !important;
      line-height: 1.6 !important;
      color: #f1f5f9 !important;
      margin: 0 0 12px 0 !important;
      padding: 0 !important;
      max-width: 900px !important;
  }
  /* Support hours badge */
  .updc-hero .hours-tag {
      display: inline-block !important;
      background: rgba(255, 255, 255, 0.15) !important;
      padding: 6px 14px !important;
      border-radius: 20px !important;
      font-size: 0.88em !important;
      line-height: 1.5 !important;
      color: #FFC72C !important;
      font-weight: 600 !important;
      border: 1px solid rgba(255, 199, 44, 0.3) !important;
  }
  /* ------------------------------------------------------------
     3. Search Bar
     ------------------------------------------------------------ */
  .updc-search-container {
      max-width: 700px !important;
      margin: -15px auto 35px auto !important;
      position: relative !important;
      z-index: 5 !important;
      padding: 0 !important;
  }
  /* Search form */
  .updc-search-box {
      display: flex !important;
      width: 100% !important;
      box-shadow:
          0 8px 20px rgba(0, 0, 0, 0.08) !important;
      border-radius: 8px !important;
      overflow: hidden !important;
      background: #ffffff !important;
      margin: 0 !important;
      padding: 0 !important;
  }
  /* Search input */
  .updc-search-box input[type="text"] {
      flex-grow: 1 !important;
      width: auto !important;
      min-width: 0 !important;
      padding: 14px 20px !important;
      margin: 0 !important;
      border: 1px solid #e2e8f0 !important;
      border-right: none !important;
      outline: none !important;
      font-size: 1em !important;
      line-height: 1.5 !important;
      background: #ffffff !important;
      color: #1e293b !important;
      box-sizing: border-box !important;
  }
  /* Search input focus */
  .updc-search-box input[type="text"]:focus {
      border-color: #7B1113 !important;
      box-shadow: none !important;
  }
  /* Search placeholder */
  .updc-search-box input[type="text"]::placeholder {
      color: #94a3b8 !important;
      opacity: 1 !important;
  }
  /* Search button */
  .updc-search-box button {
      background-color: #FFC72C !important;
      color: #000000 !important;
      border: none !important;
      padding: 0 28px !important;
      margin: 0 !important;
      font-weight: 700 !important;
      font-size: 0.95em !important;
      line-height: normal !important;
      cursor: pointer !important;
      transition: all 0.2s ease !important;
  }
  /* Search button hover */
  .updc-search-box button:hover {
      background-color: #e6b324 !important;
      color: #000000 !important;
  }
  /* ------------------------------------------------------------
     4. Three Card Grid
     ------------------------------------------------------------ */
  .updc-cards-grid {
      display: grid !important;
      grid-template-columns:
          repeat(3, minmax(0, 1fr)) !important;
      gap: 24px !important;
      width: 100% !important;
      margin: 0 0 40px 0 !important;
      padding: 0 !important;
      font-family:
          -apple-system,
          BlinkMacSystemFont,
          "Segoe UI",
          Roboto,
          Helvetica,
          Arial,
          sans-serif !important;
      box-sizing: border-box !important;
  }
  /* ------------------------------------------------------------
     5. Individual Cards
     ------------------------------------------------------------ */
  .updc-card {
      background: #ffffff !important;
      border: 1px solid #e2e8f0 !important;
      border-radius: 12px !important;
      padding: 30px 24px !important;
      text-align: center !important;
      box-shadow:
          0 4px 12px rgba(0, 0, 0, 0.03) !important;
      display: flex !important;
      flex-direction: column !important;
      justify-content: space-between !important;
      align-items: center !important;
      min-height: 300px !important;
      box-sizing: border-box !important;
      transition:
          transform 0.25s ease,
          box-shadow 0.25s ease !important;
  }
  /* Card hover */
  .updc-card:hover {
      transform: translateY(-5px) !important;
      box-shadow:
          0 12px 24px rgba(0, 0, 0, 0.08) !important;
  }
  /* ------------------------------------------------------------
     6. Card Icons
     ------------------------------------------------------------ */
  .updc-card-icon {
      width: 56px !important;
      height: 56px !important;
      min-width: 56px !important;
      border-radius: 50% !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      margin: 0 0 18px 0 !important;
  }
  /* Knowledgebase icon */
  .icon-kb {
      background: #fffbeb !important;
      color: #d97706 !important;
  }
  /* Open ticket icon */
  .icon-open {
      background: #fef2f2 !important;
      color: #7B1113 !important;
  }
  /* Ticket status icon */
  .icon-check {
      background: #f0fdf4 !important;
      color: #004B23 !important;
  }
  /* ------------------------------------------------------------
     7. Card Titles
     ------------------------------------------------------------ */
  .updc-card h2 {
      font-size: 1.25em !important;
      line-height: 1.3 !important;
      font-weight: 700 !important;
      color: #1e293b !important;
      margin: 0 0 10px 0 !important;
      padding: 0 !important;
  }
  /* ------------------------------------------------------------
     8. Card Descriptions
     ------------------------------------------------------------ */
  .updc-card p {
      font-size: 0.9em !important;
      line-height: 1.5 !important;
      color: #64748b !important;
      margin: 0 0 24px 0 !important;
      padding: 0 !important;
      flex-grow: 1 !important;
  }
  /* ------------------------------------------------------------
     9. Card Buttons
     ------------------------------------------------------------ */
  .updc-btn {
      display: inline-block !important;
      width: 85% !important;
      padding: 11px 0 !important;
      border-radius: 6px !important;
      font-weight: 700 !important;
      font-size: 0.9em !important;
      line-height: 1.5 !important;
      text-decoration: none !important;
      box-sizing: border-box !important;
      transition:
          opacity 0.2s ease,
          transform 0.2s ease !important;
  }
  /* Button hover */
  .updc-btn:hover {
      opacity: 0.88 !important;
      transform: translateY(-1px) !important;
      text-decoration: none !important;
  }
  /* Knowledgebase button */
  .btn-kb {
      background-color: #FFC72C !important;
      color: #000000 !important;
  }
  /* Open ticket button */
  .btn-open {
      background-color: #7B1113 !important;
      color: #ffffff !important;
  }
  /* Ticket status button */
  .btn-check {
      background-color: #004B23 !important;
      color: #ffffff !important;
  }
  /* ------------------------------------------------------------
     10. Hide Featured Knowledgebase Section
     ------------------------------------------------------------ */
  /*
   * The default index.php adds the Featured Knowledge Base Articles
   * section after the landing page.
   *
   * Hide it to keep the custom UPDC design clean.
   */
  #landing_page + div {
      display: none !important;
  }
  /* ------------------------------------------------------------
     11. Responsive Tablet
     ------------------------------------------------------------ */
  @media (max-width: 850px) {
      #landing_page {
          padding: 0 15px !important;
      }
      .updc-cards-grid {
          grid-template-columns: 1fr !important;
          gap: 20px !important;
      }
      .updc-card {
          min-height: auto !important;
      }
  }
  /* ------------------------------------------------------------
     12. Responsive Mobile
     ------------------------------------------------------------ */
  @media (max-width: 600px) {
      #landing_page {
          padding: 0 10px !important;
      }
      .updc-hero {
          padding: 30px 20px !important;
          border-radius: 10px !important;
      }
      .updc-hero h1 {
          font-size: 1.7em !important;
      }
      .updc-hero p {
          font-size: 0.95em !important;
      }
      .updc-search-container {
          margin-top: -10px !important;
      }
      .updc-search-box {
          flex-direction: column !important;
          border-radius: 8px !important;
      }
      .updc-search-box input[type="text"] {
          width: 100% !important;
          border-right: 1px solid #e2e8f0 !important;
          border-bottom: none !important;
      }
      .updc-search-box button {
          width: 100% !important;
          padding: 12px !important;
      }
      .updc-btn {
          width: 100% !important;
      }
  }
  /* ============================================================
     UPDC OSTICKET - FULL CLIENT PORTAL RESPONSIVENESS
     Desktop | Tablet | Mobile
     ============================================================ */
  /* Global */
  * {
      box-sizing: border-box;
  }
  html,
  body {
      max-width: 100%;
      overflow-x: hidden;
  }
  img {
      max-width: 100%;
      height: auto;
  }
  #container {
      width: 100%;
      max-width: 100%;
  }
  #content {
      width: 100%;
      max-width: 100%;
      padding-left: 20px;
      padding-right: 20px;
  }
  /* ============================================================
     HEADER
     ============================================================ */
  #header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 12px;
      width: 100%;
      padding: 15px 20px;
  }
  #header #logo {
      float: none !important;
      display: inline-flex;
      align-items: center;
      max-width: 100%;
  }
  #header #logo img {
      max-width: 260px;
      height: auto;
  }
  #header .pull-right.flush-right {
      float: none !important;
      margin-left: auto;
      max-width: 100%;
      text-align: right;
  }
  #header .pull-right p {
      margin: 5px 0;
  }
  /* ============================================================
     FORMS
     ============================================================ */
  #content input[type="text"],
  #content input[type="email"],
  #content input[type="password"],
  #content input[type="tel"],
  #content select,
  #content textarea {
      max-width: 100%;
  }
  #content textarea {
      resize: vertical;
  }
  #content input[type="file"] {
      max-width: 100%;
  }
  #content .form_table {
      max-width: 100%;
  }
  /* Prevent long text from breaking layouts */
  #content p,
  #content td,
  #content th,
  #content a {
      overflow-wrap: anywhere;
  }
  /* ============================================================
     TICKET CONVERSATION
     ============================================================ */
  .thread-entry,
  .thread-body {
      max-width: 100%;
      overflow-wrap: anywhere;
  }
  .thread-entry img,
  .thread-body img {
      max-width: 100%;
      height: auto;
  }
  /* ============================================================
     TICKET TABLES
     ============================================================ */
  /* Apply scrolling only to ticket listing tables.
     Keep ordinary osTicket form tables unchanged. */
  #ticketTable {
      max-width: 100%;
  }
  #ticketTable td,
  #ticketTable th {
      overflow-wrap: normal;
  }
  /* ============================================================
     TABLET - 768px to 1024px
     ============================================================ */
  @media screen and (max-width: 1024px) {
      #content {
          padding-left: 15px;
          padding-right: 15px;
      }
      .updc-cards-grid {
          grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
          gap: 18px !important;
      }
      .updc-card {
          min-height: 260px !important;
      }
      #header #logo img {
          max-width: 220px;
      }
  }
  /* ============================================================
     MOBILE - 767px and below
     ============================================================ */
  @media screen and (max-width: 767px) {
      body {
          font-size: 14px;
      }
      #container {
          padding: 0;
      }
      #content {
          width: 100% !important;
          padding: 12px !important;
          margin: 0 !important;
      }
      /* Header */
      #header {
          flex-direction: column;
          align-items: center;
          text-align: center;
          padding: 15px 10px;
      }
      #header #logo {
          float: none !important;
          justify-content: center;
          margin: 0 auto;
      }
      #header #logo img {
          max-width: 190px;
      }
      #header .pull-right.flush-right {
          width: 100%;
          margin: 0;
          text-align: center;
      }
      #header .pull-right p {
          line-height: 1.8;
      }
      }
      /* Landing page */
      #landing_page {
          width: 100% !important;
          padding: 0 10px !important;
      }
      .updc-hero {
          padding: 25px 18px !important;
          margin-bottom: 25px !important;
      }
      .updc-hero h1 {
          font-size: 1.6em !important;
      }
      .updc-hero p {
          font-size: 0.95em !important;
      }
      .updc-cards-grid {
          grid-template-columns: 1fr !important;
          gap: 15px !important;
      }
      .updc-card {
          min-height: auto !important;
          padding: 25px 20px !important;
      }
      .updc-btn {
          width: 100% !important;
      }
      /* Search */
      .updc-search-container {
          width: 100%;
          padding: 0 5px;
      }
      .updc-search-box {
          flex-direction: column !important;
      }
      .updc-search-box input[type="text"] {
          width: 100% !important;
          border-right: 1px solid #e2e8f0 !important;
          border-bottom: none !important;
      }
      .updc-search-box button {
          width: 100% !important;
          min-height: 45px;
      }
      /* Inputs */
      #content input[type="text"],
      #content input[type="email"],
      #content input[type="password"],
      #content input[type="tel"],
      #content select,
      #content textarea {
          width: 100% !important;
          max-width: 100% !important;
          font-size: 16px !important;
      }
      /* Buttons */
      #content input[type="submit"],
      #content button {
          min-height: 42px;
      }
      /* Ticket conversation */
      .thread-entry {
          padding: 12px !important;
      }
      /* Ticket table: horizontal scrolling */
      #ticketTable {
          display: block;
          width: 100%;
          overflow-x: auto;
          -webkit-overflow-scrolling: touch;
      }
      #footer {
          text-align: center;
          padding: 15px;
      }
  /* ============================================================
     SMALL MOBILE - 480px and below
     ============================================================ */
  @media screen and (max-width: 480px) {
      #header #logo img {
          max-width: 160px;
      }
      #content {
          padding: 10px !important;
      }
      .updc-hero h1 {
          font-size: 1.4em !important;
      }
      .updc-card {
          padding: 20px 15px !important;
      }
      h1 {
          font-size: 22px;
      }
      h2 {
          font-size: 19px;
      }
      h3 {
          font-size: 17px;
      }
  }
  /* ============================================================
     UPDC MOBILE LAYOUT PATCH
     Fix horizontal overflow on phones
     ============================================================ */
  @media screen and (max-width: 600px) {
      html,
      body {
          width: 100% !important;
          max-width: 100% !important;
          overflow-x: hidden !important;
      }
      #container,
      #header,
      #content,
      #landing_page,
      #landing_page > .main-content,
      #landing_page .main-content,
      .updc-hero,
      .updc-search-container,
      .updc-cards-grid,
      .updc-card {
          width: 100% !important;
          max-width: 100% !important;
          min-width: 0 !important;
          box-sizing: border-box !important;
      }
      /* Hero banner */
      .updc-hero {
          padding: 22px 16px !important;
          margin-bottom: 20px !important;
          overflow-wrap: anywhere !important;
      }
      .updc-hero h1 {
          font-size: clamp(18px, 5vw, 24px) !important;
          line-height: 1.3 !important;
          white-space: normal !important;
          overflow-wrap: anywhere !important;
          word-break: normal !important;
      }
      .updc-hero p {
          font-size: 13px !important;
          line-height: 1.6 !important;
          overflow-wrap: anywhere !important;
      }
      .updc-hero .hours-tag {
          display: inline-block !important;
          max-width: 100% !important;
          white-space: normal !important;
          font-size: 11px !important;
          line-height: 1.5 !important;
      }
      /* Search bar */
      .updc-search-container {
          margin: 0 auto 25px !important;
          padding: 0 !important;
      }
      .updc-search-box {
          display: flex !important;
          flex-direction: column !important;
          width: 100% !important;
          min-width: 0 !important;
      }
      .updc-search-box input[type="text"] {
          width: 100% !important;
          min-width: 0 !important;
          max-width: 100% !important;
          padding: 13px 14px !important;
          border: 1px solid #e2e8f0 !important;
          box-sizing: border-box !important;
      }
      .updc-search-box button {
          width: 100% !important;
          max-width: 100% !important;
          min-height: 44px !important;
          box-sizing: border-box !important;
      }
      /* Action cards */
      .updc-cards-grid {
          display: grid !important;
          grid-template-columns: minmax(0, 1fr) !important;
          gap: 15px !important;
      }
      .updc-card {
          min-height: auto !important;
          padding: 22px 16px !important;
          overflow-wrap: anywhere !important;
      }
      .updc-card h2 {
          font-size: 19px !important;
          white-space: normal !important;
      }
      .updc-card p {
          font-size: 13px !important;
          line-height: 1.6 !important;
      }
      .updc-btn {
          width: 100% !important;
          max-width: 100% !important;
          box-sizing: border-box !important;
      }
      /* Header */
      #header {
          display: flex !important;
          flex-direction: column !important;
          align-items: center !important;
          padding: 12px 10px !important;
      }
      #header #logo img {
          width: auto !important;
          max-width: 160px !important;
          height: auto !important;
      }
      #header .pull-right.flush-right {
          width: 100% !important;
          max-width: 100% !important;
          margin: 0 !important;
          text-align: center !important;
      }
          text-align: center !important;
      }
      /* Main content spacing */
      #content {
          padding: 10px !important;
      }
  /* ============================================================
     UPDC - MOBILE OVERFLOW HOTFIX
     ============================================================ */
  @media screen and (max-width: 600px) {
      html,
      body {
          width: 100% !important;
          max-width: 100% !important;
          margin: 0 !important;
          overflow-x: hidden !important;
      }
      #container,
      #header,
      #nav,
      #content,
      #landing_page,
      #landing_page > .main-content,
      #landing_page .main-content,
      #landing_page .thread-body {
          width: 100% !important;
          max-width: 100% !important;
          min-width: 0 !important;
          margin-left: 0 !important;
          margin-right: 0 !important;
          float: none !important;
          box-sizing: border-box !important;
      }
      #content {
          padding: 10px !important;
      }
      #landing_page {
          padding: 0 !important;
          overflow: hidden !important;
      }
      /* Prevent children from forcing desktop width */
      #landing_page * {
          min-width: 0 !important;
          max-width: 100% !important;
          box-sizing: border-box !important;
      }
      /* Hero */
      .updc-hero {
          width: 100% !important;
          padding: 20px 15px !important;
          margin: 0 0 20px !important;
      }
      .updc-hero h1 {
          font-size: 21px !important;
          overflow-wrap: anywhere !important;
      }
      .updc-hero p {
          font-size: 13px !important;
          overflow-wrap: anywhere !important;
      }
      .updc-hero .hours-tag {
          white-space: normal !important;
      }
      /* Search */
      .updc-search-container {
          width: 100% !important;
          margin: 0 0 25px !important;
          padding: 0 !important;
      }
      .updc-search-box {
          display: flex !important;
          flex-direction: column !important;
          width: 100% !important;
      }
      .updc-search-box input[type="text"],
      .updc-search-box button {
          width: 100% !important;
          max-width: 100% !important;
      }
      /* Cards */
      .updc-cards-grid {
          display: grid !important;
          grid-template-columns: minmax(0, 1fr) !important;
          width: 100% !important;
          gap: 15px !important;
          margin: 0 0 25px !important;
      }
      .updc-card {
          display: flex !important;
          flex-direction: column !important;
          align-items: center !important;
          width: 100% !important;
          min-height: auto !important;
          padding: 22px 15px !important;
          margin: 0 !important;
          text-align: center !important;
      }
      .updc-card h2,
      .updc-card p {
          width: 100% !important;
          overflow-wrap: anywhere !important;
      }
      .updc-btn {
          display: block !important;
          width: 100% !important;
      }
      /* Footer */
      #footer {
          width: 100% !important;
          max-width: 100% !important;
          box-sizing: border-box !important;
          overflow-wrap: anywhere !important;
      }
  }
  /* ============================================================
     UPDC - CONSOLIDATED osTicket NAVIGATION
     Markup: ul#nav > li > a
     ============================================================ */
  ul#nav {
      display: flex !important;
      flex-direction: row !important;
      flex-wrap: wrap !important;
      align-items: center !important;
      width: 100% !important;
      max-width: 100% !important;
      height: auto !important;
      margin: 0 !important;
      padding: 0 !important;
      overflow: visible !important;
      list-style: none !important;
      box-sizing: border-box !important;
  }
  ul#nav > li {
      display: block !important;
      float: none !important;
      flex: 0 0 auto !important;
      width: auto !important;
      min-width: 0 !important;
      margin: 0 !important;
      padding: 0 !important;
      list-style: none !important;
  }
  ul#nav > li > a {
      display: block !important;
      width: auto !important;
      min-height: 40px !important;
      padding: 10px 16px !important;
      line-height: 1.4 !important;
      white-space: normal !important;
      box-sizing: border-box !important;
  }
  @media screen and (max-width: 767px) {
      ul#nav {
          flex-direction: column !important;
          align-items: stretch !important;
      }
      ul#nav > li {
          width: 100% !important;
          flex: 0 0 auto !important;
      }
      ul#nav > li > a {
          display: block !important;
          width: 100% !important;
          min-height: 44px !important;
          padding: 12px 18px !important;
          font-size: 14px !important;
      }
  }

/* Recovered UPDC green pill navigation update */
@media (min-width: 768px) {
    ul#nav {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 24px !important;
        margin: 0 !important;
        background: #F3F6F8 !important;
        background-image: none !important;
        border-top: 1px solid #E5EAF0 !important;
        border-bottom: 1px solid #E5EAF0 !important;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04) !important;
        list-style: none !important;
    }

    ul#nav > li {
        display: block !important;
        float: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    ul#nav > li > a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 11px 20px !important;
        margin: 0 !important;
        background: transparent !important;
        background-image: none !important;
        border: none !important;
        border-radius: 30px !important;
        color: #334155 !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        transition: all 0.2s ease !important;
    }

    ul#nav > li > a img,
    ul#nav > li > a::before,
    ul#nav > li > a::after {
        display: none !important;
        content: none !important;
        background: none !important;
        background-image: none !important;
    }

    ul#nav > li > a:hover:not(.active) {
        background: #E8F3EC !important;
        color: #17613C !important;
    }

    ul#nav > li > a.active {
        background: #17613C !important;
        color: #FFFFFF !important;
    }

    ul#nav > li > a.active:hover {
        background: #124D30 !important;
        color: #FFFFFF !important;
    }
}

/* ============================================================
   UPDC RESPONSIVE PORTAL FRAME AND LEFT-ALIGNED LOGO
   ============================================================ */
html,
body {
    min-height: 100%;
    background: #f1f3f5 !important;
}

body {
    margin: 0 !important;
}

#container {
    width: calc(100% - 2 * clamp(20px, 12vw, 120px)) !important;
    max-width: 1200px !important;
    min-height: calc(100vh - 56px) !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background: #ffffff !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18) !important;
    box-sizing: border-box !important;
}

#header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 16px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 12px 20px !important;
    box-sizing: border-box !important;
}

#header #logo {
    order: 0 !important;
    float: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: auto !important;
    max-width: min(60%, 360px) !important;
    margin: 0 auto 0 0 !important;
}

#header #logo img {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
}

#header .pull-right.flush-right {
    order: 1 !important;
    float: none !important;
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 45% !important;
    margin: 0 0 0 auto !important;
    text-align: right !important;
}

#content {
    width: 100% !important;
    max-width: 100% !important;
    padding: clamp(16px, 3vw, 32px) !important;
    box-sizing: border-box !important;
}

#landing_page {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

@media screen and (max-width: 767px) {
    #container {
        width: calc(100% - 20px) !important;
        min-height: calc(100vh - 32px) !important;
    }

    #header {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: wrap !important;
        gap: 8px 12px !important;
        padding: 12px 14px !important;
        text-align: left !important;
    }

    #header #logo {
        justify-content: flex-start !important;
        max-width: min(58%, 240px) !important;
        margin: 0 auto 0 0 !important;
    }

    #header #logo img {
        max-width: 100% !important;
    }

    #header .pull-right.flush-right {
        width: auto !important;
        max-width: 42% !important;
        margin: 0 0 0 auto !important;
        text-align: right !important;
    }

    #content {
        padding: 14px !important;
    }
}

@media screen and (max-width: 380px) {
    #header {
        align-items: flex-start !important;
    }

    #header #logo {
        max-width: 100% !important;
        margin: 0 !important;
    }

    #header #logo img {
        max-width: 160px !important;
    }

    #header .pull-right.flush-right {
        max-width: 100% !important;
        margin-left: auto !important;
    }
}

/* ============================================================
   HEADER ALIGNMENT AND SYMMETRICAL CONTENT GUTTERS
   ============================================================ */
#header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    column-gap: 20px !important;
    row-gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 12px clamp(16px, 2.5vw, 40px) !important;
    overflow: hidden !important;
}

#header #logo {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
    min-width: 0 !important;
    max-width: min(100%, 580px) !important;
    margin: 0 !important;
}

#header #logo img {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    max-height: 112px !important;
    object-fit: contain !important;
    object-position: left center !important;
}

#header .pull-right.flush-right {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    align-self: center !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    white-space: nowrap !important;
    text-align: right !important;
}

#content {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: clamp(16px, 6.5vw, 96px) !important;
    padding-right: clamp(16px, 6.5vw, 96px) !important;
    box-sizing: border-box !important;
}

#content #landing_page,
#landing_page {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}

#landing_page > .main-content,
#landing_page .main-content,
#landing_page .thread-body,
#landing_page .updc-hero,
#landing_page .updc-search-container,
#landing_page .updc-cards-grid {
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

@media screen and (max-width: 767px) {
    #header {
        grid-template-columns: minmax(0, 1fr) auto !important;
        column-gap: 10px !important;
        padding: 10px 14px !important;
    }

    #header #logo {
        max-width: 100% !important;
    }

    #header #logo img {
        max-width: 100% !important;
        max-height: 72px !important;
    }

    #header .pull-right.flush-right {
        white-space: normal !important;
        font-size: 14px !important;
    }

    #content {
        padding-left: clamp(14px, 4vw, 28px) !important;
        padding-right: clamp(14px, 4vw, 28px) !important;
    }
}

@media screen and (max-width: 380px) {
    #header {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    #header #logo {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    #header .pull-right.flush-right {
        grid-column: 1 !important;
        grid-row: 2 !important;
        justify-self: end !important;
    }
}

/* ============================================================
   PORTAL LAYOUT CORRECTIONS
   ============================================================ */
#header {
    height: auto !important;
    min-height: 124px !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 2 !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

#header #logo,
#header #logo img {
    height: auto !important;
    max-height: none !important;
}

#header #logo img {
    width: auto !important;
    max-width: min(100%, 480px) !important;
}

#header .pull-right.flush-right {
    align-self: center !important;
    line-height: 1.4 !important;
}

#content,
#content > *,
#landing_page,
#landing_page > .main-content,
#landing_page .main-content,
#landing_page .thread-body {
    position: static !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    float: none !important;
}

#content {
    padding-left: clamp(20px, 4vw, 64px) !important;
    padding-right: clamp(20px, 4vw, 64px) !important;
}

#content #landing_page,
#landing_page {
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

#landing_page > .main-content,
#landing_page .main-content {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

#landing_page .updc-hero,
#landing_page .updc-search-container,
#landing_page .updc-cards-grid {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

#landing_page .updc-search-container {
    max-width: 900px !important;
    margin: 0 auto 35px !important;
}

#landing_page .updc-search-box {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
}

#landing_page .updc-search-box input[type="text"] {
    flex: 1 1 auto !important;
    width: 0 !important;
    min-width: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

#landing_page .updc-search-box button {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 120px !important;
}

@media screen and (max-width: 600px) {
    #header {
        min-height: 0 !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
    }

    #header #logo img {
        max-width: min(100%, 260px) !important;
    }

    #content {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    #landing_page .updc-search-container {
        width: 100% !important;
        max-width: none !important;
        margin: 0 auto 24px !important;
    }

    #landing_page .updc-search-box {
        flex-direction: column !important;
    }

    #landing_page .updc-search-box input[type="text"],
    #landing_page .updc-search-box button {
        width: 100% !important;
        min-width: 0 !important;
    }
}

/* Final visual balance: center the landing block in the white portal */
#header #logo img {
    max-width: min(100%, 430px) !important;
}

#content #landing_page,
#landing_page {
    position: relative !important;
    left: -1.35vw !important;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}

@media screen and (max-width: 767px) {
    #content #landing_page,
    #landing_page {
        left: 0 !important;
    }

    #header #logo img {
        max-width: min(100%, 240px) !important;
    }
}

