/*
 * Styles for index.php
 * Extracted from the PHP page without changing selectors or declaration order.
 */

/* Extracted from index.php - style block 1 */
:root {
      --report-red: #e02424;
      --report-blue: #4a7fd6;
      --report-divider: #d7d7d7;
      --report-text: #2b2b2b;
    }

    .right-section {
      border-left: 1px solid #ddd;
      padding-left: 70px;
    }

    .report-card {
      padding-top: clamp(1rem, 3vw, 2rem);
      padding-bottom: clamp(1rem, 3vw, 2rem);
    }

    .report-card .border-start {
      border-color: var(--report-divider) !important;
    }

    .report-percentage {
      font-weight: 800;
      font-size: clamp(2rem, 7vw, 3.5rem);
      color: var(--report-red);
      line-height: 1;
    }

    .toggle-btn {
      background: none;
      border: none;
      line-height: 1;
      min-width: 44px;
      min-height: 44px;
    }

    .toggle-arrow {
      display: inline-block;
      color: var(--report-blue);
      font-size: clamp(1.2rem, 3vw, 1.6rem);
      transition: transform 0.25s ease;
    }

    .toggle-btn[aria-expanded="true"] .toggle-arrow {
      transform: rotate(180deg);
    }

    .report-detail-text {
      font-size: clamp(0.85rem, 2.2vw, 0.95rem);
      color: var(--report-text);
      line-height: 1.6;
      word-wrap: break-word;
    }

    .img-section img {
      height: auto;
    }

    @media (max-width: 767px) {
      .heading p {
        font-family: "inter", sans-serif;
        font-optical-sizing: auto;
        font-weight: 700;
        font-style: normal;
        font-size: 18px;
      }

      .btns {
        min-height: 1px;
        padding: 0 66px;
        border-radius: 6px;
        border: none;
        background: var(--report-blue);
        color: #fff;
        font-weight: 600;
      }

      .btns:hover {
        background: #3a6bc0;
      }
    }

    .btns {
      min-height: 44px;
      padding: 0 30px;
      border-radius: 6px;
      border: none;
      background: var(--report-blue);
      color: #fff;
      font-weight: 600;
    }

    .btns:hover {
      background: #3a6bc0;
    }

    .img-section {
      display: flex;
      align-items: center;
      justify-content: end;
    }

    .truism-search-wrap {
      position: relative;
      max-width: 500px;
    }

    .truism-search-box {
      position: relative;
      display: flex;
      align-items: center;
    }

    .truism-search-icon {
      position: absolute;
      left: 14px;
      pointer-events: none;
    }

    .truism-search-input {
      width: 100%;
      height: 44px;
      border: 2px solid #2563eb;
      border-radius: 22px;
      padding: 0 16px 0 42px;
      font-family: 'Segoe UI', Arial, sans-serif;
      font-size: 0.95rem;
      color: #1c1c1c;
      outline: none;
      transition: border-color .15s ease, box-shadow .15s ease;
    }

    .truism-search-input:focus {
      border-color: #4a7fd6;
      box-shadow: 0 0 0 3px rgba(74, 127, 214, 0.15);
    }

    .truism-search-results {
      position: absolute;
      z-index: 20;
      left: 0;
      right: 0;
      margin-top: 6px;
      background: #fff;
      border: 1px solid #d7d7d7;
      border-radius: 10px;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
      max-height: 260px;
      overflow-y: auto;
      display: none;
    }

    .truism-search-result-item {
      padding: 10px 14px;
      font-size: 0.88rem;
      color: #0f172a;
      cursor: pointer;
      border-bottom: 1px solid #f0f0f0;
    }

    .truism-search-result-item:last-child {
      border-bottom: none;
    }

    .truism-search-result-item:hover,
    .truism-search-result-item.active {
      background: #f3f6fc;
    }

    .truism-search-empty {
      padding: 12px 14px;
      font-size: 0.85rem;
      color: #888;
    }

    @media (max-width:575.98px) {
      .truism-search-wrap {
        max-width: 100%;
      }
    }

    .changemakers-group-title {
      font-family: 'Segoe UI', Arial, sans-serif;
      font-weight: 700;
      font-size: 1.15rem;
      color: #2563eb;
      border-bottom: 2px solid #2563eb;
      padding-bottom: 6px;
      margin-bottom: 16px;
    }

    .changemakers-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      justify-content: center;
      max-height: 520px;
      overflow-y: auto;
      padding: 4px 6px 4px 4px;
    }

    .changemakers-grid .truth-democracy-card {
      max-width: 340px;
      flex: 1 1 300px;
      margin: 0;
    }

    .truth-democracy-card {
      max-width: 700px;
      border: 1px solid #dbeafe;
      border-radius: 14px;
      background: #fff;
      box-shadow: 0 2px 10px rgba(37, 99, 235, 0.06);
      transition: transform .15s ease, box-shadow .15s ease;
    }

    .truth-democracy-card:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 20px rgba(37, 99, 235, 0.14);
    }

    .truth-photo-box {
      width: 110px;
      height: 110px;
      border: 2px solid #000;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      background: #fff;
      position: relative;
    }

    .truth-photo-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .photo-placeholder {
      display: none;
      font-family: 'Segoe UI', Arial, sans-serif;
      font-size: 0.95rem;
      color: #555;
    }

    .truth-name-label {
      font-family: 'Segoe UI', Arial, sans-serif;
      font-size: clamp(0.9rem, 2.2vw, 1rem);
      color: #1c1c1c;
      margin: 0;
    }

    .truth-name-value {
      font-weight: 400;
    }

    .truth-heading {
      font-family: 'Segoe UI', Arial, sans-serif;
      font-weight: 600;
      font-size: 13px;
      color: #0f172a;
      margin: 0;
    }

    .truth-score-circle {
      width: 56px;
      height: 56px;
      border: none;
      border-radius: 50%;
      font-weight: 600;
      font-size: 1.1rem;
      color: #fff;
      background: linear-gradient(135deg, #2563eb, #4a7fd6);
    }

    .truth-link {
      color: #0f172a;
      font-weight: 600;
      text-decoration: none;
      font-size: clamp(0.85rem, 2vw, 1rem);
      border: none;
      background: none;
      padding: 2px 4px;
    }

    .truth-link:hover {
      text-decoration: underline;
      color: #2f5fa8;
    }

    .truth-link:disabled {
      color: #bbb;
      cursor: not-allowed;
      text-decoration: none;
    }

    @media (max-width:575.98px) {
      .truth-photo-box {
        width: 90px;
        height: 90px;
      }

      .truth-score-circle {
        width: 48px;
        height: 48px;
        font-size: 1rem;
      }

      .truth-democracy-card {
        padding: 1rem !important;
      }

      .truth-links-row {
        justify-content: center !important;
        gap: 14px !important;
      }
    }

    .img-section img {
      max-width: 300px;
      height: auto;
      margin: 0;
    }

    @media (max-width: 767px) {
      .img-section {
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
      }

      .img-section img {
        max-width: 266px !important;
        height: auto;
        margin: 0;
      }

      .right-section {
        border-left: none;
        padding-left: 0;
        padding-top: 20px;
        text-align: center;
      }
    }

    .truism-title {
      font-family: 'Segoe UI', Arial, sans-serif;
      font-weight: 600;
      font-size: 20px;
      color: #0f172a;
      display: inline-block;
      margin-right: 6px;
    }

    .truism-card {
      max-width: 900px;
      border: 2px solid #2f5fa8 !important;
      background: #fff;
    }

    .truism-nav .nav-btn {
      font-size: 1.8rem;
      line-height: 1;
      color: #0f172a;
      border: none;
      background: none;
      padding: 0.1rem 0.6rem;
    }

    .truism-nav .nav-btn:hover {
      color: #2f5fa8;
    }

    .truism-statement {
      font-size: clamp(0.92rem, 2.2vw, 1.15rem);
      color: #0f172a;
    }

    .truism-x {
      color: #e02424;
      font-weight: 700;
    }

    .truism-table-wrap {
      max-width: 520px;
    }

    .truism-table td {
      font-size: clamp(0.8rem, 1.8vw, 0.95rem);
      vertical-align: middle;
    }

    .truth-header td {
      background: #fff300;
      font-weight: 700;
      font-size: clamp(0.9rem, 2vw, 1.05rem);
    }

    .frac {
      display: inline-flex;
      flex-direction: column;
      align-items: center;
      vertical-align: middle;
      font-style: italic;
      line-height: 1.25;
    }

    .frac .num {
      border-bottom: 1.4px solid #000;
      padding: 0 4px;
    }

    .frac .den {
      padding: 0 4px;
    }

    .truism-triangle {
      position: absolute;
      right: 14px;
      bottom: 10px;
      width: 0;
      height: 0;
      border-left: 14px solid transparent;
      border-right: 14px solid transparent;
      border-top: 16px solid #4a7fd6;
    }

    .truism-pagination-wrap {
      width: 100%;
    }

    .truism-pagination {
      display: inline-flex;
      align-items: center;
      background: #1a1b21;
      border: 1px solid #2b2c34;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
      max-width: 100%;
    }

    .truism-pagination button {
      -webkit-appearance: none;
      appearance: none;
      border: none;
      background: transparent;
      border-right: 1px solid #2b2c34;
      color: #6b6f7f;
      font-family: 'Segoe UI', Arial, sans-serif;
      font-size: 0.92rem;
      font-weight: 600;
      padding: 10px 14px;
      height: 42px;
      cursor: pointer;
      transition: background .15s ease, color .15s ease;
    }

    .truism-pagination button:hover:not(:disabled) {
      background: rgba(255, 255, 255, 0.06);
    }

    .truism-pagination button:disabled {
      opacity: .32;
      cursor: not-allowed;
    }

    .truism-pagination .pg-numbers {
      display: contents;
    }

    .truism-pagination .page-num-btn {
      color: #4f8ef7;
      min-width: 38px;
    }

    .truism-pagination .page-num-btn.active {
      background: #1f6feb;
      color: #fff;
      border-radius: 7px;
      margin: 5px 3px;
      padding: 6px 12px;
      height: 32px;
      border-right: none;
    }

    .truism-pagination .pg-last {
      border-right: none;
    }

    @media (max-width:480px) {
      .truism-pagination button {
        padding: 8px 10px;
        font-size: 0.82rem;
        height: 38px;
      }

      .truism-pagination .page-num-btn {
        min-width: 30px;
      }

      .truism-pagination .page-num-btn.active {
        height: 28px;
        padding: 5px 9px;
        margin: 5px 2px;
      }

      .truism-table-wrap {
        max-width: 100%;
      }

      .truism-card {
        padding: 1rem !important;
      }

      .truism-nav .nav-btn {
        font-size: 1.5rem;
      }
    }

    .cm-az-nav {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
          margin-top: 23px;
    }

    .cm-az-btn {
      border: 1.5px solid #2563eb;
      background: #fff;
      color: #2563eb;
      font-weight: 600;
      font-size: 0.85rem;
      min-width: 34px;
      height: 34px;
      border-radius: 8px;
      cursor: pointer;
      transition: all .15s ease;
    }

    .cm-az-btn:hover {
      background: #eff6ff;
    }

    .cm-az-btn.active {
      background: #2563eb;
      color: #fff;
    }

    .cm-score-select {
      height: 38px;
      border: 1.5px solid #d7d7d7;
      border-radius: 8px;
      padding: 0 12px;
      font-size: 0.9rem;
      color: #1c1c1c;
      background: #fff;
    }

    .cm-modal-content {
      border-radius: 14px;
      border: none;
    }

    .cm-modal-table th {
      background: #eff6ff;
      color: #2563eb;
    }

    .cm-modal-table td {
      vertical-align: middle;
    }


    /* ===== Change Makers compact WhatsApp-style redesign ===== */
    html,
    body {
      height: 100%;
      overflow: hidden;
    }

    .cm-page-shell {
      height: calc(100dvh - 92px);
      min-height: 0;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      background: #fff;
      max-width: 980px;
      margin: 0 auto;
    }

    .cm-page-heading {
      flex: 0 0 auto;
      padding: 2px 0 8px;
    }

    .cm-page-heading h2 {
      margin: 0;
      color: #1f2937;
      font-family: 'Segoe UI', Arial, sans-serif;
      font-size: clamp(1.35rem, 2.5vw, 1.75rem);
      font-weight: 800;
      letter-spacing: -0.02em;
    }

    .cm-search-panel {
      flex: 0 0 auto;
      background: #fff;
      border: 1px solid #e5e7eb;
      border-radius: 16px;
      padding: 8px;
      box-shadow: 0 4px 16px rgba(17, 24, 39, 0.06);
      margin-bottom: 8px;
    }

    .truism-search-wrap {
      max-width: none;
      width: 100%;
      position: relative;
    }

    .truism-search-box {
      position: relative;
      display: flex;
      align-items: center;
      color: #2563eb;
    }

    .truism-search-icon {
      position: absolute;
      left: 14px;
      z-index: 2;
      pointer-events: none;
    }

    .truism-search-input {
      width: 100%;
      height: 42px;
      border: 1.5px solid #bfdbfe;
      border-radius: 12px;
      padding: 0 42px 0 42px;
      background: #f8fafc;
      color: #111827;
      font-size: 0.92rem;
      font-weight: 500;
      outline: none;
      transition: .18s ease;
    }

    .truism-search-input:focus {
      background: #fff;
      border-color: #2563eb;
      box-shadow: 0 0 0 3px rgba(37, 99, 235, .10);
    }

    .cm-search-clear {
      position: absolute;
      right: 8px;
      width: 30px;
      height: 30px;
      border: 0;
      border-radius: 50%;
      background: transparent;
      color: #7c8491;
      font-size: 1.25rem;
      line-height: 1;
      display: none;
      align-items: center;
      justify-content: center;
    }

    .cm-search-clear.show {
      display: inline-flex;
    }

    .truism-search-results {
      left: 0;
      right: 0;
      margin-top: 5px;
      max-height: 210px;
      border-radius: 12px;
      overflow-y: auto;
    }

    .cm-az-nav {
      display: flex;
      flex-wrap: nowrap;
      gap: 5px;
      margin-top: 8px;
      overflow-x: auto;
      overflow-y: hidden;
      padding: 1px 0 3px;
      scrollbar-width: none;
      -webkit-overflow-scrolling: touch;
    }

    .cm-az-nav::-webkit-scrollbar {
      display: none;
    }

    .cm-az-btn {
      flex: 0 0 auto;
      min-width: 30px;
      height: 30px;
      border: 1px solid #cbd5e1;
      border-radius: 50%;
      background: #fff;
      color: #5f6368;
      font-size: 0.75rem;
      font-weight: 700;
      padding: 0 7px;
      transition: .15s ease;
    }

    .cm-az-btn:first-child {
      border-radius: 15px;
      min-width: 42px;
    }

    .cm-az-btn:hover,
    .cm-az-btn.active {
      border-color: #2563eb;
      background: #2563eb;
      color: #fff;
    }

    .cm-groups-wrap {
      flex: 1 1 auto;
      min-height: 0;
      overflow-y: auto;
      overflow-x: hidden;
      overscroll-behavior: contain;
      scrollbar-width: thin;
      padding: 0 2px;
      border-top: 1px solid #f0f0f0;
      border-bottom: 1px solid #f0f0f0;
    }

    .changemakers-section {
      margin: 0;
    }

    .changemakers-group-title {
      display: none;
    }

    .changemakers-grid {
      display: block;
      max-height: none;
      overflow: visible;
      padding: 0;
    }

    .changemakers-grid .truth-democracy-card,
    .truth-democracy-card {
      max-width: none;
      width: 100%;
      margin: 0;
      padding: 10px 4px;
      border: 0;
      border-bottom: 2px solid #0000008f !important;
      border-radius: 0;
      background: #fff;
      box-shadow: none;
      transition: background .15s ease;
    }

    .truth-democracy-card:hover {
      transform: none;
      box-shadow: none;
      background: #f8fafc;
    }

    .cm-person-row {
      display: flex;
      align-items: flex-start;
      gap: 11px;
    }

    .truth-photo-box {
      width: 58px;
      height: 58px;
      min-width: 58px;
      border: 0;
      border-radius: 50%;
      overflow: hidden;
      background: #dbeafe;
      box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .08);
    }

    .truth-photo-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 50%;
    }

    .photo-placeholder {
      width: 100%;
      height: 100%;
      align-items: center;
      justify-content: center;
      color: #2563eb;
      font-size: 1.2rem;
      font-weight: 800;
      text-transform: uppercase;
    }

    .cm-person-content {
      flex: 1 1 auto;
      min-width: 0;
    }

    .cm-person-topline {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }

    .truth-name-value {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      color: #172033;
      font-family: 'Segoe UI', Arial, sans-serif;
      font-size: 0.98rem;
      font-weight: 800;
    }

    .truth-heading {
      margin-top: 1px;
      color: #6b7280;
      font-size: 0.76rem;
      font-weight: 600;
      text-align: left;
    }

    .cm-percentage {
      flex: 0 0 auto;
      font-size: 1.0rem !important;
      font-weight: 800;
          margin-bottom: -42px !important;
    }

    .cm-progress {
      height: 7px;
      margin: 5px 0 7px;
      background: #eceff3;
      border-radius: 999px;
      overflow: hidden;
    }

    .cm-progress .progress-bar {
      border-radius: 999px;
      transition: width .35s ease;
    }

    .cm-progress-high { background: #24a148; }
    .cm-progress-medium { background: #f59e0b; }
    .cm-progress-low { background: #dc3545; }
    .cm-progress-high-text { color: #16833a; }
    .cm-progress-medium-text { color: #c77d00; }
    .cm-progress-low-text { color: #c62828; }

    .truth-links-row {
     
      align-items: center;
      flex-wrap: wrap;
      gap: 4px 13px;
      padding: 0;
      justify-content: flex-start !important;
    }

    .truth-link {
      border: 0;
      background: transparent;
      padding: 0;
      color: #111827;
      font-size: 0.76rem;
      font-weight: 600;
      text-decoration: none;
      line-height: 1.35;
    }

    .truth-link span {
      color: #2563eb;
      font-weight: 800;
    }

    .truth-link:hover {
      color: #2563eb;
      text-decoration: none;
    }

    .truth-link:disabled {
      opacity: .38;
      color: #777;
    }

    .cm-proceed-wrap {
      flex: 0 0 auto;
      padding-top: 8px;
      text-align: center;
      background: #fff;
    }

    .cm-proceed-wrap .btns {
      min-height: 40px;
      min-width: 180px;
      padding: 8px 28px;
      border-radius: 10px;
      background: #2563eb;
      border: 0;
      color: #fff;
      font-weight: 700;
      box-shadow: 0 4px 12px rgba(37, 99, 235, .18);
    }

    .cm-proceed-wrap .btns:hover {
      background: #1d4ed8;
      color: #fff;
    }

    @media (max-width: 767.98px) {
      .cm-page-shell {
        height: calc(100dvh - 76px);
        padding-left: 8px !important;
        padding-right: 8px !important;
      }

      .cm-page-heading {
        padding-bottom: 6px;
      }

      .cm-search-panel {
        border-radius: 13px;
        padding: 7px;
        margin-bottom: 6px;
      }

      .truth-democracy-card {
        padding: 9px 2px !important;
      }

      .truth-photo-box {
        width: 54px;
        height: 54px;
        min-width: 54px;
      }

      .truth-links-row {
        gap: 3px 10px !important;
      }

      .cm-proceed-wrap {
        padding-top: 6px;
      }

      .cm-proceed-wrap .btns {
        width: 100%;
        min-height: 38px;
      }
    }


    /* ===== A-Z / Search toggle update ===== */
    .cm-filter-toolbar {
      display: flex;
      align-items: center;
      gap: 8px;
      width: 100%;
    }

    .cm-filter-toolbar .cm-az-nav {
      flex: 1 1 auto;
      min-width: 0;
      margin-top: 0;
    }

    .cm-search-toggle,
    .cm-search-back {
      flex: 0 0 auto;
      width: 38px;
      height: 38px;
      border: 0;
      border-radius: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: #2563eb;
      color: #fff;
      cursor: pointer;
      box-shadow: 0 4px 12px rgba(37, 99, 235, .18);
      transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
    }

    .cm-search-toggle:hover,
    .cm-search-back:hover {
      background: #1d4ed8;
      transform: translateY(-1px);
      box-shadow: 0 6px 16px rgba(37, 99, 235, .24);
    }

    .cm-search-mode {
      display: none;
      align-items: center;
      gap: 8px;
      width: 100%;
    }

    .cm-search-mode.active {
      display: flex;
    }

    .cm-search-mode .truism-search-box {
      flex: 1 1 auto;
      min-width: 0;
    }

    .cm-search-mode .truism-search-results {
      left: 46px;
    }

    .cm-search-panel.search-open .cm-filter-toolbar {
      display: none;
    }

    .cm-search-panel.search-open .cm-search-mode {
      display: flex;
    }

    /* Proceed button with icon */
    .cm-proceed-btn {
      min-height: 42px;
      min-width: 178px;
      padding: 9px 18px 9px 20px;
      border: 0;
      border-radius: 999px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      background: linear-gradient(135deg, #2563eb 0%, #0f172a 100%);
      color: #fff;
      font-size: .9rem;
      font-weight: 800;
      text-decoration: none;
      box-shadow: 0 7px 18px rgba(37, 99, 235, .22);
      transition: transform .18s ease, box-shadow .18s ease;
    }

    .cm-proceed-btn:hover {
      color: #fff;
      transform: translateY(-1px);
      box-shadow: 0 9px 22px rgba(37, 99, 235, .28);
    }

    .cm-proceed-icon {
      width: 27px;
      height: 27px;
      border-radius: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: rgba(255, 255, 255, .16);
    }

    @media (max-width: 767.98px) {
      .cm-search-toggle,
      .cm-search-back {
        width: 36px;
        height: 36px;
      }

      .cm-proceed-btn {
        width: 100%;
        min-height: 40px;
      }
    }


    /* ===== Final Black + Blue Theme Overrides ===== */
    :root {
      --cm-black: #0f172a;
      --cm-black-soft: #111827;
      --cm-blue: #2563eb;
      --cm-blue-dark: #1d4ed8;
      --cm-blue-soft: #eff6ff;
      --cm-blue-border: #bfdbfe;
    }

    .cm-page-heading h2 {
      color: var(--cm-black);
    }

    .cm-search-panel {
      border-color: #dbe3ee;
      box-shadow: 0 4px 16px rgba(15, 23, 42, .07);
    }

    .cm-az-btn {
      border-color: #cbd5e1;
      color: var(--cm-black);
      background: #fff;
    }

    .cm-az-btn:hover {
      border-color: var(--cm-blue);
      color: var(--cm-blue);
      background: var(--cm-blue-soft);
    }

    .cm-az-btn.active {
      border-color: var(--cm-blue);
      background: var(--cm-blue);
      color: #fff;
      box-shadow: 0 3px 9px rgba(37, 99, 235, .22);
    }

    .cm-search-toggle,
    .cm-search-back {
      background: var(--cm-black);
      color: #fff;
      box-shadow: 0 4px 12px rgba(15, 23, 42, .20);
    }

    .cm-search-toggle:hover,
    .cm-search-back:hover {
      background: var(--cm-blue);
      box-shadow: 0 6px 16px rgba(37, 99, 235, .24);
    }

    .truism-search-box {
      color: var(--cm-blue);
    }

    .truism-search-input {
      border-color: var(--cm-blue-border);
      background: #f8fafc;
      color: var(--cm-black);
    }

    .truism-search-input:focus {
      border-color: var(--cm-blue);
      box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
    }

    .truism-search-result-item {
      color: var(--cm-black);
    }

    .truism-search-result-item:hover,
    .truism-search-result-item.active {
      background: var(--cm-blue-soft);
      color: var(--cm-blue-dark);
    }

    .truth-name-value {
      color: var(--cm-black);
    }

    .truth-heading {
      color: #475569;
    }

    .truth-photo-box {
      background: #dbeafe;
      box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .12);
    }

    .photo-placeholder {
      color: var(--cm-blue);
    }

    .truth-democracy-card:hover {
      background: #f8fafc;
    }

    .truth-link {
      color: var(--cm-black-soft);
    }

    .truth-link span {
      color: var(--cm-blue);
    }

    .truth-link:hover {
      color: var(--cm-blue);
    }

    .cm-proceed-btn {
      background: linear-gradient(135deg, var(--cm-black) 0%, var(--cm-blue) 100%);
      box-shadow: 0 7px 18px rgba(15, 23, 42, .20);
    }

    .cm-proceed-btn:hover {
      background: linear-gradient(135deg, #020617 0%, var(--cm-blue-dark) 100%);
      box-shadow: 0 9px 22px rgba(37, 99, 235, .24);
    }

    .cm-modal-table th {
      background: var(--cm-blue-soft);
      color: var(--cm-blue-dark);
    }


    /* ===== Proceed Arrow Animation ===== */
    .cm-proceed-icon svg {
      animation: cmArrowMove 1.15s ease-in-out infinite;
      transform-origin: center;
    }

    @keyframes cmArrowMove {
      0%, 100% {
        transform: translateX(0);
        opacity: 1;
      }
      50% {
        transform: translateX(5px);
        opacity: .72;
      }
    }

    .cm-proceed-btn:hover .cm-proceed-icon svg {
      animation-duration: .65s;
    }

    @media (prefers-reduced-motion: reduce) {
      .cm-proceed-icon svg {
        animation: none;
      }
    }

  
    /* Desktop/Web Proceed button visibility fix - mobile untouched */
    @media (min-width: 768px) {
      .cm-page-shell {
        height: calc(100dvh - 92px);
        overflow: hidden;
      }

      .cm-groups-wrap {
        min-height: 0;
        flex: 1 1 auto;
      }

      .cm-proceed-wrap {
        display: flex !important;
        flex: 0 0 54px !important;
        height: 54px;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 50;
        background: #fff;
      }

      .cm-proceed-btn {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
      }
    }


    /* FINAL WEB PROCEED BUTTON FIX */
    @media (min-width: 768px) {
      .cm-page-shell {
        display: flex !important;
        flex-direction: column !important;
        height: calc(100vh - 92px) !important;
        overflow: hidden !important;
      }

      .cm-groups-wrap {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
      }

      .cm-proceed-wrap {
        display: flex !important;
        flex: 0 0 60px !important;
        height: 60px !important;
        position: relative !important;
        z-index: 999 !important;
        align-items: center !important;
        justify-content: center !important;
        visibility: visible !important;
        opacity: 1 !important;
      }

      .cm-proceed-btn {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
      }
    }


    /* Truth Logo Replace Proceed Button */

.cm-truth-logo {
    width: 170px;
    height: auto;
    display: block;
    cursor: pointer;
    transition: all .3s ease;
}


.cm-truth-logo:hover {
    transform: scale(1.08);
}


/* ===== WEB / DESKTOP VERTICAL SCROLL + TRUTH IMAGE FIX =====
   Mobile styles are intentionally not changed. */
@media (min-width: 768px) {

    /* WEB/DESKTOP: allow the complete page to scroll vertically */
    html,
    body {
        height: auto !important;
        min-height: 100% !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    .cm-page-shell {
        height: auto !important;
        min-height: calc(100vh - 92px) !important;
        overflow: visible !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .cm-groups-wrap {
        flex: 0 0 auto !important;
        min-height: 0 !important;
        max-height: none !important;
        height: auto !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
    }

    .changemakers-grid {
        max-height: none !important;
        overflow: visible !important;
    }

    .cm-proceed-wrap {
        flex: 0 0 auto !important;
        height: auto !important;
        min-height: 100px;
        padding: 18px 0 24px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        visibility: visible !important;
        opacity: 1 !important;
        overflow: visible !important;
    }

    .cm-truth-logo {
        width: 190px !important;
        max-width: 90% !important;
        height: auto !important;
        display: block !important;
        margin: 0 auto !important;
        object-fit: contain !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}


/* ===== WEB ONLY: BODY + INNER CONTENT VERTICAL OVERFLOW ===== */
@media (min-width: 768px) {
    html {
        height: auto !important;
        min-height: 100% !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    body {
        height: auto !important;
        min-height: 100vh !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    .cm-page-shell {
        height: auto !important;
        min-height: calc(100vh - 92px) !important;
        overflow: visible !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* Inner names area also gets its own vertical overflow */
    .cm-groups-wrap {
        flex: 0 1 auto !important;
        height: auto !important;
        min-height: 300px !important;
        max-height: calc(100vh - 260px) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        scrollbar-width: thin;
    }

    .changemakers-grid {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .changemakers-section {
        height: auto !important;
        overflow: visible !important;
    }

    .cm-proceed-wrap {
        flex: 0 0 auto !important;
        position: relative !important;
        overflow: visible !important;
    }
}

/* Mobile View */

@media(max-width:767px){

    .cm-proceed-wrap {
        display:flex;
        justify-content:center;
        align-items:center;
        padding-top:6px;
    }


    .cm-truth-logo {
        width:150px;
        max-width:80%;
    }

}

/* =========================================================
   GLOBAL
   ========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    overflow-x: hidden;
}


/* =========================================================
   HERO CONTAINER
   ========================================================= */

.hero-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}


/* =========================================================
   FLASH NEWS
   ========================================================= */

.top-nav {
    width: 100%;
    background: #212167;
    position: relative;
    overflow: hidden;
}

.breakingNews {
    width: 100%;
    height: 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.bn-title h2 {
    margin: 0;
    font-size: 20px;
    color: #fff;
    white-space: nowrap;
}

.bn-red .bn-title {
    background: #f44a56;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 15px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.bn-title span {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 20px 0 20px 10px;
    border-color:
        transparent
        transparent
        transparent
        #f44a56;
    position: absolute;
    right: -10px;
    top: 0;
}

.news-ticker {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.news-track {
    white-space: nowrap;
    display: inline-block;
    padding-left: 100%;
    animation: ticker 40s linear infinite;
}

.news-track:hover {
    animation-play-state: paused;
}

.news-track a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    padding-left: 20px;
    white-space: nowrap;
}

@keyframes ticker {

    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }

}


/* =========================================================
   IMAGE
   ========================================================= */

.imagedata {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    display: block;
    overflow: visible;
}

.imagedata picture {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    display: block;
}

.imagedata img {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    display: block;
}


/* =========================================================
   WELCOME SECTION
   ========================================================= */

.df-welcome {
    display: none;
}


/* =========================================================
   BUTTON
   ========================================================= */

.btn-log {
    width: 100%;
    margin: 0;
    padding: 15px 30px 20px;
    background: #fff;
    text-align: center;
}

.btn-log .btn-data {
    display: block;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 14px 10px;
}


/* =========================================================
   MOBILE - ALL DEVICES
   320px TO 768px
   ========================================================= */

@media screen and (max-width: 768px) {

    html,
    body {
        width: 100%;
        min-width: 100%;
        margin: 0;
        padding: 0;

        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    body {
        display: block;
        min-height: 100vh;
        background: #fff;
    }


    /* ---------------------------------------------------------
       HEADER
       --------------------------------------------------------- */

    body > header {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }


    /* ---------------------------------------------------------
       HERO
       --------------------------------------------------------- */

    .hero-container {
        width: 100% !important;
        max-width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        overflow: visible !important;
    }


    /* ---------------------------------------------------------
       FLASH NEWS
       --------------------------------------------------------- */

    .top-nav {
        width: 100% !important;
        max-width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        overflow: hidden;
    }

    .breakingNews {
        width: 100%;
        height: 60px;
    }

    .bn-red .bn-title {
        height: 60px;

        padding: 0 20px;

        font-size: clamp(16px, 5vw, 22px);
    }

    .bn-title h2 {
        font-size: clamp(18px, 5.5vw, 24px);
        line-height: 1;
    }

    .bn-title span {
        border-width: 30px 0 30px 15px;

        right: -15px;

        top: 0;
    }

    .news-ticker {
        height: 60px;
        min-width: 0;
    }

    .news-track a {
        font-size: clamp(13px, 4vw, 16px);
    }


    /* ---------------------------------------------------------
       FULL WIDTH IMAGE
       --------------------------------------------------------- */

    .imagedata {
        width: 100% !important;
        max-width: 100% !important;

        height: auto !important;

        margin: 0 !important;
        padding: 0 !important;

        display: block !important;

        overflow: visible !important;
    }

    .imagedata picture {
        width: 100% !important;
        max-width: 100% !important;

        height: auto !important;

        margin: 0 !important;
        padding: 0 !important;

        display: block !important;
    }

    .imagedata img {
        width: 100% !important;
        max-width: 100% !important;

        height: auto !important;

        margin: 0 !important;
        padding: 0 !important;

        display: block !important;

        object-fit: initial !important;
    }


    /* ---------------------------------------------------------
       BUTTON
       --------------------------------------------------------- */

    .btn-log {
        width: 100% !important;

        margin: 0 !important;

        padding: 15px 20px 20px !important;

        background: #fff;

        position: relative !important;

        left: auto !important;
        right: auto !important;
        bottom: auto !important;

        z-index: 10;
    }

    .btn-log .btn-data {
        width: 100% !important;
        max-width: 100% !important;

        margin: 0 auto !important;

        padding: 14px 8px !important;

        font-size: clamp(16px, 4.5vw, 20px);

        line-height: 1.3;
    }

}


/* =========================================================
   VERY SMALL MOBILE
   320px - 359px
   ========================================================= */

@media screen and (max-width: 359px) {

    .breakingNews {
        height: 40px;
    }

    .bn-red .bn-title {
        height: 52px;
        padding: 0 14px;
    }

    .bn-title h2 {
        font-size: 17px;
    }

    .bn-title span {
        border-width: 26px 0 26px 12px;
        right: -12px;
    }

    .news-ticker {
        height: 52px;
    }

    .news-track a {
        font-size: 12px;
    }

    .btn-log {
        padding: 10px 12px 15px !important;
    }

}


/* =========================================================
   SMALL MOBILE
   360px - 389px
   ========================================================= */

@media screen and (min-width: 360px) and (max-width: 389px) {

    .breakingNews {
        height: 56px;
    }

    .bn-red .bn-title {
        height: 56px;
        padding: 0 16px;
    }

    .bn-title h2 {
        font-size: 19px;
    }

    .bn-title span {
        border-width: 28px 0 28px 13px;
        right: -13px;
    }

    .news-ticker {
        height: 56px;
    }

}


/* =========================================================
   NORMAL MOBILE
   390px - 430px
   ========================================================= */

@media screen and (min-width: 390px) and (max-width: 430px) {

    .breakingNews {
        height: 60px;
    }

    .bn-red .bn-title {
        height: 60px;
        padding: 0 20px;
    }

    .bn-title h2 {
        font-size: 21px;
    }

    .bn-title span {
        border-width: 30px 0 30px 15px;
        right: -15px;
    }

}


/* =========================================================
   LARGE MOBILE / SMALL TABLET
   431px - 600px
   ========================================================= */

@media screen and (min-width: 431px) and (max-width: 600px) {

    .breakingNews {
        height: 60px;
    }

    .bn-red .bn-title {
        height: 60px;
        padding: 0 22px;
    }

    .bn-title h2 {
        font-size: 22px;
    }

}


/* =========================================================
   TABLET PORTRAIT
   601px - 768px
   ========================================================= */

@media screen and (min-width: 601px) and (max-width: 768px) {

    .breakingNews {
        height: 60px;
    }

    .bn-red .bn-title {
        height: 60px;
        padding: 0 25px;
    }

    .bn-title h2 {
        font-size: 24px;
    }

    .news-track a {
        font-size: 16px;
    }
 

    .btn-log {
        padding: 15px 30px 20px !important;
    }

    .btn-log .btn-data {
        max-width: 500px !important;
    }

}


/* =========================================================
   EXTRA SAFETY FOR MOBILE
   ========================================================= */

@media screen and (max-width: 768px) {

    .container,
    .container-fluid {
        width: 100% !important;
        max-width: 100% !important;
    }

    img {
        max-width: 100%;
    }

}

/* =========================================================
   FINAL VIEWPORT FIX
   NO VERTICAL PAGE SCROLL + ANIMATED CTA BUTTON
   ========================================================= */

/* Keep the complete page inside the visible screen */
html,
body {
    width: 100%;
    height: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden !important;
}

body {
    height: 100vh;
    height: 100dvh;
    min-height: 0 !important;
    display: flex;
    flex-direction: column;
    background: #fff;
}

/* Header must keep only the space it actually needs */
body > header {
    flex: 0 0 auto;
}

/* Hero takes only the remaining viewport height */
.hero-container {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 auto;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
}

.top-nav,
.breakingNews {
    flex: 0 0 auto;
}

/* Image area automatically fits the remaining free space */
.imagedata {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 auto;
    background: #001a32;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.imagedata picture {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.imagedata img {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center center !important;
}

/* Bottom button area stays inside viewport */
.btn-log {
    width: 100% !important;
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 10px 16px 12px !important;
    background: #fff;
    text-align: center;
    position: relative !important;
    z-index: 20;
}

/* Modern animated CTA */
.btn-log .btn-data {
    position: relative;
    isolation: isolate;
    width: min(100%, 500px) !important;
    min-height: 54px;
    margin: 0 auto !important;
    padding: 14px 58px 14px 28px !important;

    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    border: 0 !important;
    border-radius: 999px !important;
    overflow: hidden;

    color: #fff !important;
    text-decoration: none !important;
    font-size: clamp(15px, 2vw, 18px);
    font-weight: 700;
    letter-spacing: .25px;

    background:
        linear-gradient(120deg, #17175d 0%, #292993 48%, #f44a56 100%) !important;

    box-shadow:
        0 10px 24px rgba(33, 33, 103, .24),
        inset 0 1px 0 rgba(255, 255, 255, .22);

    transform: translateZ(0);
    transition:
        transform .28s ease,
        box-shadow .28s ease,
        filter .28s ease;
}

/* Soft moving shine */
.btn-log .btn-data::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -70%;
    left: -45%;
    width: 34%;
    height: 240%;
    transform: rotate(22deg);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, .12),
        rgba(255, 255, 255, .72),
        rgba(255, 255, 255, .12),
        transparent
    );
    animation: buttonShine 3s ease-in-out infinite;
}

/* Animated arrow */
.btn-log .btn-data::after {
    content: "→";
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 25px;
    line-height: 1;
    font-weight: 700;
    animation: buttonArrow 1.15s ease-in-out infinite;
}

.btn-log .btn-data:hover,
.btn-log .btn-data:focus-visible {
    transform: translateY(-2px) scale(1.012);
    box-shadow:
        0 14px 30px rgba(33, 33, 103, .30),
        0 4px 14px rgba(244, 74, 86, .18);
    filter: saturate(1.08);
}

.btn-log .btn-data:active {
    transform: translateY(0) scale(.985);
}

.btn-log .btn-data:focus-visible {
    outline: 3px solid rgba(244, 74, 86, .28) !important;
    outline-offset: 3px;
}

@keyframes buttonShine {
    0%, 18% {
        left: -45%;
        opacity: 0;
    }

    28% {
        opacity: 1;
    }

    58% {
        left: 120%;
        opacity: 0;
    }

    100% {
        left: 120%;
        opacity: 0;
    }
}

@keyframes buttonArrow {
    0%, 100% {
        transform: translate(-2px, -50%);
    }

    50% {
        transform: translate(5px, -50%);
    }
}

/* Mobile viewport tuning */
@media screen and (max-width: 768px) {
    html,
    body {
        height: 100%;
        min-height: 100%;
        overflow: hidden !important;
    }

    body {
        height: 100vh;
        height: 100dvh;
        min-height: 0 !important;
    }

    .hero-container {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    .imagedata,
    .imagedata picture {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    .imagedata img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center center !important;
    }

    .btn-log {
        flex: 0 0 auto !important;
        padding: 8px 14px calc(10px + env(safe-area-inset-bottom)) !important;
    }

    .btn-log .btn-data {
        width: 100% !important;
        max-width: 500px !important;
        min-height: 50px;
        padding: 12px 52px 12px 22px !important;
        font-size: clamp(14px, 4vw, 17px) !important;
        line-height: 1.2;
    }

    .btn-log .btn-data::after {
        right: 19px;
        font-size: 23px;
    }
}

/* Very short mobile screens */
@media screen and (max-width: 768px) and (max-height: 700px) {
    .breakingNews {
        height: 44px !important;
    }

    .bn-red .bn-title {
        height: 44px !important;
        padding: 0 14px !important;
    }

    .bn-title h2 {
        font-size: 17px !important;
    }

    .bn-title span {
        border-width: 22px 0 22px 11px !important;
        right: -11px !important;
    }

    .news-ticker {
        height: 44px !important;
    }

    .btn-log {
        padding-top: 6px !important;
        padding-bottom: calc(23px + env(safe-area-inset-bottom)) !important;
    }

    .btn-log .btn-data {
        min-height: 46px;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }
}

/* Accessibility: avoid forced animation when user requests less motion */
@media (prefers-reduced-motion: reduce) {
    .btn-log .btn-data,
    .btn-log .btn-data::before,
    .btn-log .btn-data::after {
        animation: none !important;
        transition: none !important;
    }
}


/* =========================================================
   FINAL IMAGE NO-CROP SAFEGUARD
   Entire hero artwork remains visible on desktop + mobile.
   ========================================================= */
.hero-container,
.imagedata,
.imagedata picture {
    min-height: 0 !important;
}

.imagedata {
    /*display: flex !important;*/
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
}

.imagedata picture {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.imagedata img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
}

/* Mobile source also stays completely visible */
@media screen and (max-width: 768px) {
    .imagedata,
    .imagedata picture,
    .imagedata img {
        width: 100% !important;
        max-width: 100% !important;
    }

    .imagedata img {
        height: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
        object-position: center center !important;
    }
}


/* =========================================================
   DESKTOP / WEB RESTORE
   Keep web image/layout like the original code.
   Mobile (<= 768px) is intentionally NOT changed here.
   ========================================================= */
@media screen and (min-width: 769px) {

    html,
    body {
        width: 100% !important;
        height: auto !important;
        min-height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    body {
        display: block !important;
        background: #fff !important;
    }

    .hero-container {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        overflow: visible !important;
    }

    .top-nav,
    .breakingNews {
        flex: none !important;
    }

    .imagedata {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        overflow: visible !important;
        background: transparent !important;
    }

    .imagedata picture {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
    }

    .imagedata img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        object-fit: initial !important;
        object-position: initial !important;
    }

    /* Keep redesigned animated CTA, but let it sit normally after the image */
    .btn-log {
        width: 100% !important;
        margin: 0 !important;
        padding: 15px 30px 20px !important;
        position: relative !important;
    }
}


/* =========================================================
   THE PEOPLE PROJECT IMAGE BUTTON
   ========================================================= */

.btn-log {
    width: 100%;
    margin: 0;
    padding: 15px 30px 20px;
    background: #fff;
    text-align: center;
}

.people-project-btn {
    position: relative !important;

    display: inline-block !important;

    width: min(100%, 500px) !important;

    margin: 0 auto !important;
    padding: 0 !important;

    border: 0 !important;
    outline: none !important;

    background: transparent !important;
    box-shadow: none !important;

    text-decoration: none !important;

    overflow: hidden;

    /* Arrow completely removed */
    font-size: 0;
    line-height: 0;

    cursor: pointer;
}


/* =========================================================
   IMAGE
   ========================================================= */

.people-project-image {
    display: block;

    width: 25%;
    max-width: 500px;

    height: auto;

    margin: 0 auto;
    padding: 0;

    border: 0;
    outline: none;

    object-fit: contain;

    cursor: pointer;

    /* truth3.jpeg must remain static */
    animation: none !important;

    transform: none !important;
    transform-origin: center center;

    transition: none !important;
}


/* =========================================================
   IMAGE ANIMATION
   ========================================================= */

@keyframes peopleProjectAnimation {

    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }

}


/* Hover */
.people-project-btn:hover .people-project-image {
    transform: none !important;
}


/* =========================================================
   REMOVE ALL ARROW / PSEUDO ELEMENTS
   ========================================================= */

.people-project-btn::before,
.people-project-btn::after {
    content: none !important;
    display: none !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media screen and (max-width: 768px) {

    .btn-log {
        width: 100% !important;

      
    }

    .people-project-btn {
        width: 100% !important;
        max-width: 500px !important;

        margin: 0 auto !important;
        padding: 0 !important;
    }

    .people-project-image {
        /* Same clean size on all mobile screens */
        width: 150px !important;
        max-width: calc(100vw - 24px) !important;

        height: auto !important;
        max-height: none !important;

        margin: 0 auto !important;
        padding: 0 !important;

        display: block !important;
        object-fit: contain !important;
        object-position: center center !important;

        animation: none !important;
        transform: none !important;
        transition: none !important;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media screen and (max-width: 380px) {

    .btn-log {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .people-project-image {
        width: 150px !important;
        max-width: calc(100vw - 20px) !important;
        height: auto !important;
        margin: 0 auto !important;
    }

}


/* =========================================================
   VERY SHORT MOBILE
   ========================================================= */

@media screen and (max-width: 768px) and (max-height: 700px) {

    .btn-log {
        padding-top: 6px !important;
        padding-bottom:
            calc(7px + env(safe-area-inset-bottom))
            !important;
    }

    .people-project-image {
        width: 150px !important;
        max-width: calc(100vw - 20px) !important;
        height: auto !important;
        max-height: none !important;

        margin: 0 auto !important;
        object-fit: contain !important;

        animation: none !important;
        transform: none !important;
        transition: none !important;
    }

}


/* =========================================================
   MOBILE IMAGE - FULL WIDTH / NO BACKGROUND
   ========================================================= */
@media screen and (max-width: 768px) {
    .imagedata {
        width: 100% !important;
        height: auto !important;
        background: transparent !important;
        overflow: visible !important;
    }

    .imagedata picture {
        width: 100% !important;
        height: auto !important;
        display: block !important;
        background: transparent !important;
    }

    .imagedata img {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: none !important;
        display: block !important;
        object-fit: contain !important;
        object-position: center center !important;
        background: transparent !important;
    }
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .people-project-image {
        animation: none !important;
        transition: none !important;
    }

}


/* =========================================================
   FINAL RESPONSIVE truth3.jpeg FIX
   IMPORTANT: Keep this block at the VERY END of <style>.
   Mobile only. Desktop/tablet remain unchanged.
   ========================================================= */

/* Disable animation permanently for truth3.jpeg */
.people-project-image,
.people-project-btn:hover .people-project-image,
.people-project-btn:focus .people-project-image,
.people-project-btn:active .people-project-image {
    animation: none !important;
    transition: none !important;
    transform: none !important;
}

/* Extra Small Mobile - 320px and below */
@media screen and (max-width: 320px) {
    .btn-log {
        width: 100% !important;
        height: 92px !important;
        min-height: 92px !important;
        margin: 0 !important;
        padding: 0 10px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
    }

    .btn-log a,
    .people-project-btn {
        width: 140px !important;
        height: 72px !important;
        max-width: 140px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: visible !important;
    }

    .people-project-image {
        width: 140px !important;
        height: 72px !important;
        max-width: 140px !important;
        max-height: 72px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        display: block !important;
        object-fit: contain !important;
        object-position: center center !important;
    }
}

/* Small Mobile - 321px to 375px */
@media screen and (min-width: 321px) and (max-width: 375px) {
    .btn-log {
        width: 100% !important;
        height: 96px !important;
        min-height: 96px !important;
        margin: 0 !important;
        padding: 0 10px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
    }

    .btn-log a,
    .people-project-btn {
        width: 150px !important;
        height: 76px !important;
        max-width: 150px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: visible !important;
    }

    .people-project-image {
        width: 150px !important;
        height: 76px !important;
        max-width: 150px !important;
        max-height: 76px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        display: block !important;
        object-fit: contain !important;
        object-position: center center !important;
    }
}

/* Mobile - 376px to 425px */
@media screen and (min-width: 376px) and (max-width: 425px) {
    .btn-log {
        width: 100% !important;
        height: 100px !important;
        min-height: 100px !important;
        margin: 0 !important;
        padding: 0 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
    }

    .btn-log a,
    .people-project-btn {
        width: 160px !important;
        height: 80px !important;
        max-width: 160px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: visible !important;
    }

    .people-project-image {
        width: 160px !important;
        height: 80px !important;
        max-width: 160px !important;
        max-height: 80px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        display: block !important;
        object-fit: contain !important;
        object-position: center center !important;
    }
}

/* Large Mobile - 426px to 575px */
@media screen and (min-width: 426px) and (max-width: 575px) {
    .btn-log {
        width: 100% !important;
        height: 104px !important;
        min-height: 104px !important;
        margin: 0 !important;
        padding: 0 14px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
    }

    .btn-log a,
    .people-project-btn {
        width: 170px !important;
        height: 84px !important;
        max-width: 170px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: visible !important;
    }

    .people-project-image {
        width: 170px !important;
        height: 84px !important;
        max-width: 170px !important;
        max-height: 84px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        display: block !important;
        object-fit: contain !important;
        object-position: center center !important;
    }
}

/* Common safety for ALL mobile devices */
@media screen and (max-width: 575px) {
    body {
        overflow-x: hidden !important;
    }

    .btn-log {
        box-sizing: border-box !important;
        background: #fff !important;
        text-align: center !important;
    }

    .btn-log a,
    .people-project-btn {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
    }

    .people-project-image {
        position: static !important;
        float: none !important;
        border: 0 !important;
        outline: 0 !important;
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}


/* =========================================================
   FINAL MOBILE-ONLY FIX
   Remove the white area contained at the bottom of webdate.jpeg
   Desktop / Web view remains unchanged.
   ========================================================= */

@media screen and (max-width: 768px) {

    /* Crop only the mobile hero image */
    .imagedata {
        width: 100% !important;
        height: 138vw !important;
        max-height: none !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        background: #061a2e !important;
        display: block !important;
    }

    .imagedata picture {
        width: 100% !important;
        height: 100% !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        overflow: hidden !important;
        background: #061a2e !important;
    }

    .imagedata img {
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        object-fit: cover !important;
        object-position: top center !important;
        background: #061a2e !important;
    }

    /* Truth section */
    .btn-log {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 5px 0 7px !important;
        background: #061a2e !important;
        text-align: center !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .btn-log > a,
    .btn-log .people-project-btn {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important;
        overflow: visible !important;
    }

    .people-project-image {
        width: 65px !important;
        height: auto !important;
        max-width: 65px !important;
        max-height: none !important;
        margin: 0 auto !important;
        padding: 0 !important;
        display: block !important;
        object-fit: contain !important;
        object-position: center center !important;
        animation: none !important;
        transform: none !important;
        transition: none !important;
    }
}

/* 320px - 380px */
@media screen and (max-width: 380px) {

    .imagedata {
        height: 138vw !important;
    }

    .btn-log {
        padding: 4px 0 6px !important;
        background: #061a2e !important;
    }

    .people-project-image {
        width: 60px !important;
        max-width: 60px !important;
    }
}

/* 381px - 768px */
@media screen and (min-width: 381px) and (max-width: 768px) {

    .imagedata {
        height: 138vw !important;
    }

    .btn-log {
        padding: 5px 0 7px !important;
        background: #061a2e !important;
    }

    .people-project-image {
        width: 65px !important;
        max-width: 65px !important;
    }
}


/* =========================================================
   FINAL MOBILE ONLY FIX
   - Keep 4-side border of webdate.jpeg visible
   - Crop only the unwanted bottom white area
   - Increase truth3.jpeg size
   - Desktop / Web view remains unchanged
   ========================================================= */

@media screen and (max-width: 768px) {

    /* Mobile hero: keep full width and crop only from bottom */
    .imagedata {
        width: 100% !important;
        height: 138vw !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        background: #061a2e !important;
        display: block !important;
    }

    .imagedata picture {
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        overflow: visible !important;
    }

    .imagedata img {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;

        /* Do NOT use cover: it can cut the left/right border */
        object-fit: initial !important;
        object-position: top center !important;
    }

    /* Bottom truth section */
    .btn-log {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 6px 0 8px !important;
        background: #061a2e !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .btn-log > a,
    .btn-log .people-project-btn {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        background: transparent !important;
        overflow: visible !important;
    }

    /* Increased truth3.jpeg size */
    .people-project-image {
        width: 105px !important;
        height: auto !important;
        max-width: 105px !important;
        max-height: none !important;

        margin: 0 auto !important;
        padding: 0 !important;
        display: block !important;

        object-fit: contain !important;
        object-position: center center !important;

        animation: none !important;
        transform: none !important;
        transition: none !important;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media screen and (max-width: 380px) {

    .imagedata {
        height: 138vw !important;
    }

    .btn-log {
        padding: 5px 0 7px !important;
        background: #b87612!important;
    }

    .people-project-image {
        width: 95px !important;
        max-width: 95px !important;
    }
}


/* =========================================================
   381px - 768px
   ========================================================= */

@media screen and (min-width: 381px) and (max-width: 768px) {

    .imagedata {
        height: 138vw !important;
    }

    .btn-log {
        padding: 6px 0 8px !important;
        background: #b87612 !important;
    }

    .people-project-image {
        width: 105px !important;
        max-width: 105px !important;
    }
}



/* =========================================================
   WEB / DESKTOP - SAME DESIGN AS MOBILE
   Mobile styles are untouched.
   Desktop uses the same portrait image/layout and page scrolls vertically.
   ========================================================= */
@media screen and (min-width: 769px) {

    html,
    body {
        width: 100% !important;
        height: auto !important;
        min-height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    body {
        display: block !important;
        background: #fff !important;
    }

    .hero-container {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        overflow: visible !important;
    }

    /* Same portrait image used by mobile */
    .imagedata {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        overflow: visible !important;
        background: #061a2e !important;
    }

    .imagedata picture {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        overflow: visible !important;
    }

    .imagedata img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        object-fit: initial !important;
        object-position: top center !important;
    }

    /* Keep the bottom section same as mobile */
    .btn-log {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 6px 0 8px !important;
        background: #b87612 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    .btn-log > a,
    .btn-log .people-project-btn {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important;
        overflow: visible !important;
    }

    .people-project-image {
        width: 105px !important;
        max-width: 105px !important;
        height: auto !important;
        max-height: none !important;
        margin: 0 auto !important;
        padding: 0 !important;
        display: block !important;
        object-fit: contain !important;
        object-position: center center !important;
        animation: none !important;
        transform: none !important;
        transition: none !important;
    }
}
