/* Extracted from page\research\projects.html */
/* ===== TABS ===== */
    .proj-tabs {
      display: flex;
      gap: 0;
      border-bottom: 2px solid #d0d8e8;
      margin-bottom: 36px;
      flex-wrap: wrap;
    }
    .proj-tab {
      padding: 12px 24px;
      background: none;
      border: none;
      cursor: pointer;
      font-size: 0.88rem;
      font-weight: 600;
      color: #5a6a80;
      border-bottom: 3px solid transparent;
      margin-bottom: -2px;
      transition: all 0.3s;
      white-space: nowrap;
    }
    .proj-tab:hover { color: #1a3a6e; }
    .proj-tab.active { color: #2e6fc4; border-bottom-color: #2e6fc4; }

    .tab-panel { display: none; }
    .tab-panel.active { display: block; }

    /* ===== SECTION HEADER ===== */
    .section-head {
      display: flex;
      align-items: center;
      gap: 14px;
      margin-bottom: 18px;
      margin-top: 8px;
    }
    .section-head h3 {
      font-size: 0.95rem;
      color: var(--text-dark);
      margin: 0;
      white-space: normal;
      font-weight: 700;
    }
    .section-head::after {
      content: '';
      flex: 1;
      height: 1px;
      background: #d0d8e8;
    }
    .section-badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 4px 12px;
      border-radius: 6px;
      font-size: 0.68rem;
      font-weight: 700;
      white-space: nowrap;
      flex-shrink: 0;
      letter-spacing: 0.02em;
    }
    .badge-key       { background: #fef9ec; color: #a07d1a; }
    .badge-general   { background: #eef2ff; color: #1e40af; }
    .badge-foreign   { background: #eef2ff; color: #4338ca; }
    .badge-young     { background: #ecfdf5; color: #166534; }
    .badge-provincial{ background: #fdf2f8; color: #9d174d; }
    .badge-city     { background: #fffbeb; color: #92400e; }
    .badge-other     { background: #ecfeff; color: #075985; }

    /* ===== CLEAN CARD ===== */
    .cards-wrap {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
      gap: 14px;
      margin-bottom: 36px;
    }

    .proj-card {
      background: #fff;
      border-radius: 10px;
      padding: 20px 22px;
      border-left: 3px solid var(--accent);
      border: 1px solid var(--border);
      box-shadow: 0 1px 4px rgba(10,31,61,0.04);
      transition: all 0.25s ease;
      display: flex;
      flex-direction: column;
    }
    .proj-card:hover {
      box-shadow: 0 6px 24px rgba(10,31,61,0.09);
      transform: translateY(-2px);
    }

    /* left border color by type */
    .proj-card.type-key       { border-left-color: #e8bc3c; }
    .proj-card.type-general   { border-left-color: #2e6fc4; }
    .proj-card.type-foreign   { border-left-color: #7c3aed; }
    .proj-card.type-young     { border-left-color: #16a34a; }
    .proj-card.type-provincial{ border-left-color: #db2777; }
    .proj-card.type-city     { border-left-color: #d97706; }
    .proj-card.type-other     { border-left-color: #0284c7; }

    .proj-card-title {
      font-size: 0.88rem;
      font-weight: 650;
      color: var(--text-dark);
      line-height: 1.6;
      margin-bottom: 12px;
      flex: 1;
    }

    .proj-card-meta {
      display: flex;
      flex-direction: column;
      gap: 5px;
      margin-bottom: 14px;
    }
    .meta-row {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 0.78rem;
      color: var(--text-medium);
    }
    .meta-row .label {
      color: var(--text-light);
      font-weight: 500;
      min-width: 42px;
      flex-shrink: 0;
    }

    .proj-card-bottom {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-top: 12px;
      border-top: 1px solid #eef2f8;
    }
    .proj-duration {
      font-size: 0.72rem;
      color: var(--text-light);
      font-weight: 500;
    }
    .proj-status {
      font-size: 0.65rem;
      font-weight: 700;
      padding: 3px 10px;
      border-radius: 10px;
      letter-spacing: 0.01em;
    }
    .status-ongoing { background: #eef2ff; color: #2e6fc4; }
    .status-completed { background: #f1f5f9; color: #64748b; }

    /* Codex desktop refinement */

    @media (min-width: 901px) {
      .page-banner--research {
        min-height: 410px;
        padding: 96px 0 86px;
      }
      .page-banner--research h1 {
        font-size: clamp(3.15rem, 4.5vw, 4.75rem);
      }
      .page-banner--research .banner-subtitle {
        max-width: 820px;
        font-size: 1.16rem;
        line-height: 1.84;
      }
      .hero-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 32px;
      }
      .hero-text {
        max-width: 760px;
      }
      .hero-stats {
        display: flex;
        gap: 16px;
        flex-shrink: 0;
      }
      .hero-stat {
        min-width: 126px;
        min-height: 112px;
        padding: 23px 20px;
        border-radius: 8px;
        border: 1px solid rgba(255,255,255,0.18);
        background: rgba(255,255,255,0.09);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(8px);
      }
      .hero-stat .num {
        color: #ffc832;
        font-size: 2.25rem;
        font-weight: 900;
        line-height: 1;
      }
      .hero-stat .lbl {
        margin-top: 12px;
        color: rgba(255,255,255,0.82);
        font-size: 0.82rem;
        line-height: 1.35;
        text-align: center;
      }
      .section {
        padding: 94px 0 112px;
      }
      .proj-tabs {
        gap: 10px;
        padding: 10px;
        margin-bottom: 56px;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: #fff;
        box-shadow: 0 10px 32px rgba(10,31,61,0.06);
      }
      .proj-tab {
        min-height: 58px;
        padding: 0 30px;
        border-radius: 7px;
        border-bottom: none;
        margin-bottom: 0;
        font-size: 1rem;
      }
      .proj-tab.active {
        color: #fff;
        background: linear-gradient(135deg, var(--accent-dark), var(--accent));
        border-bottom-color: transparent;
      }
      .section-head {
        gap: 18px;
        margin: 46px 0 24px;
      }
      .section-head:first-child {
        margin-top: 0;
      }
      .section-head h3 {
        font-size: 1.75rem;
        line-height: 1.22;
      }
      .section-badge {
        min-height: 34px;
        padding: 8px 14px;
        border-radius: 6px;
        font-size: 0.78rem;
        letter-spacing: 0.04em;
      }
      .cards-wrap {
        grid-template-columns: repeat(auto-fill, minmax(430px, 1fr));
        gap: 24px;
        margin-bottom: 44px;
      }
      .proj-card {
        min-height: 194px;
        padding: 30px 32px;
        border-radius: 8px;
        border-left-width: 5px;
        box-shadow: 0 10px 30px rgba(10,31,61,0.06);
      }
      .proj-card-title {
        font-size: 1.08rem;
        line-height: 1.66;
        margin-bottom: 18px;
      }
      .proj-card-meta {
        gap: 9px;
        margin-bottom: 18px;
      }
      .meta-row {
        gap: 10px;
        font-size: 0.96rem;
        line-height: 1.6;
      }
      .meta-row .label {
        min-width: 56px;
        font-weight: 700;
      }
      .proj-card-bottom {
        padding-top: 16px;
      }
      .proj-duration {
        font-size: 0.9rem;
      }
      .proj-status {
        padding: 6px 12px;
        border-radius: 6px;
        font-size: 0.78rem;
      }
    }

    /* ===== RESPONSIVE ===== */
    @media (max-width: 900px) {
      .hero-content { flex-direction: column; }
      .hero-stats { width: 100%; display: flex;justify-content: flex-start;  }
      .cards-wrap { grid-template-columns: 1fr; }
      .hero-stat {
        min-width: 126px;
        min-height: 112px;
        margin: 10px;
        padding: 23px 20px;
        border-radius: 8px;
        border: 1px solid rgba(255,255,255,0.18);
        background: rgba(255,255,255,0.09);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(8px);
      }
      .hero-stat .num {
        color: #ffc832;
        font-size: 2.25rem;
        font-weight: 900;
        line-height: 1;
      }
      .hero-stat .lbl {
        margin-top: 12px;
        color: rgba(255,255,255,0.82);
        font-size: 0.82rem;
        line-height: 1.35;
        text-align: center;
      }

    }
    @media (max-width: 600px) {
      .hero-stat { min-width: 65px; padding: 12px 14px; }
      .hero-stat .num { font-size: 1.3rem; }
      .proj-tabs { gap: 0; }
      .proj-tab { padding: 10px 14px; font-size: 0.8rem; }
      .proj-card { padding: 16px; }
      .proj-card-title { font-size: 0.84rem; }
    }