
  :root{
    /* fallbacks only — remove if your page already defines these */
    --primary-text:#14213d;
    --secondary-text:#5b6472;
    --card-bg:#ffffff;
    --accent-color:#2557d6;
    /*--profile_blue:#1d4ed8;*/
    --netflix-glow: rgba(37,87,214,0.35);
  }
  *{box-sizing:border-box;}
 

  /* ============ institutions panel ============ */

  .institution_container{
    max-width:100%;
    width:100%;
    background:#ffffff;
    padding:0;
    border-radius:0px;
    box-shadow:0 10px 40px rgba(20,33,61,0.07);
    margin-bottom: 1rem;
  }
  
  .institution_container_inner{
          margin:0 auto;
          padding:40px clamp(20px,4vw,48px);
  }

  /* ---- header, with View all ---- */
  .institution_header{
    background:transparent;
    box-shadow:none;
    padding:0;
    margin-bottom:22px;
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:20px;
    flex-wrap:wrap;
  }
  .institution_header h1{
    font-size:2rem;
    font-weight:700;
    color:var(--primary-text);
    letter-spacing:-0.5px;
    margin:0 0 8px;
  }
  .institution_header p{
    font-size:1rem;
    color:var(--secondary-text);
    margin:0;
    max-width:60ch;
  }
  .view-all-btn{
    display:inline-flex;
    align-items:center;
    gap:6px;
    font-weight:700;
    font-size:0.85rem;
    color:var(--accent-color);
    background:#eef3ff;
    padding:11px 16px;
    border-radius:9px;
    text-decoration:none;
    white-space:nowrap;
    flex-shrink:0;
    transition:background .2s ease, color .2s ease, transform .2s ease;
  }
  .view-all-btn svg{width:15px;height:15px;transition:transform .2s ease;}
  .view-all-btn:hover{
    background:var(--accent-color);
    color:#fff;
  }
  .view-all-btn:hover svg{transform:translateX(3px);}

  /* ---- category tabs ---- */
  .tabs-container{
    display:flex;
    gap:28px;
    border-bottom:1px solid #e4e8f0;
    margin-bottom:8px;
    overflow-x:auto;
    scrollbar-width:none;
  }
  .tabs-container::-webkit-scrollbar{display:none;}
  .tab{
    padding:12px 2px;
    font-weight:700;
    font-size:0.95rem;
    color:var(--secondary-text);
    cursor:pointer;
    position:relative;
    white-space:nowrap;
    border:none;
    background:none;
    transition:color .2s ease;
  }
  .tab:hover{color:var(--primary-text);}
  .tab.active{color:var(--primary-text);}
  .tab.active::after{
    content:'';
    position:absolute;
    bottom:-1px; left:0;
    width:100%; height:2px;
    background-color:var(--accent-color);
    border-radius:2px;
  }

  /* ---- single-row carousel ---- */
  .carousel-wrapper{
    position:relative;
  }

  .cards-row{
    display:flex;
    gap:20px;
    overflow-x:auto;
    scroll-behavior:smooth;
    scroll-snap-type:x proximity;
    padding:24px 4px 10px;
    scrollbar-width:none;
  }
  .cards-row::-webkit-scrollbar{display:none;}

  @keyframes flyIn{
    0%{opacity:0; transform:scale(.9) translateY(28px); filter:blur(6px);}
    60%{opacity:1; transform:scale(1.015) translateY(-3px); filter:blur(0);}
    100%{opacity:1; transform:scale(1) translateY(0); filter:blur(0);}
  }

  .institution-card{
    flex:0 0 clamp(220px, 22vw, 268px);
    width:clamp(220px, 22vw, 268px);
    scroll-snap-align:start;
    background:var(--card-bg);
    border:1px solid #eef1f7;
    border-radius:14px;
    box-shadow:0 3px 14px rgba(20,33,61,0.05);
    display:flex;
    flex-direction:column;
    cursor:pointer;
    position:relative;
    overflow:hidden;
    opacity:0;
    animation:flyIn .6s cubic-bezier(.16,1,.3,1) forwards;
    transition:transform .35s cubic-bezier(.25,1,.5,1), box-shadow .35s ease, border-color .35s ease;
  }
  .institution-card:hover{
    transform:translateY(-6px);
    border-color:transparent;
    box-shadow:0 18px 34px rgba(20,33,61,0.14), 0 0 0 1px var(--netflix-glow);
    z-index:2;
  }

  .logo-header{
    height:112px;
    background:#f7f9fc;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:16px;
    border-bottom:1px solid #f0f2f7;
  }
  .institution-logo-img{
    max-height:100%;
    max-width:78%;
    object-fit:contain;
    transition:transform .35s ease;
  }
  .institution-card:hover .institution-logo-img{transform:scale(1.06);}

  .card-body{
    padding:16px;
    display:flex;
    flex-direction:column;
    flex:1;
  }
  .institution-name{
    font-size:1rem;
    font-weight:700;
    color:var(--primary-text);
    line-height:1.3;
    margin:0 0 6px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .description{
    font-size:0.82rem;
    color:var(--secondary-text);
    line-height:1.45;
    height:2.9em;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
    margin:0 0 12px;
  }
  .card-footer{
    margin-top:auto;
  }
  .meta-info{
    font-size:0.75rem;
    font-weight:700;
    color:var(--accent-color);
    background-color:#eef3ff;
    padding:4px 9px;
    border-radius:5px;
    width:fit-content;
    margin-bottom:12px;
  }
  .explore-btn{
    width:100%;
    padding:9px;
    border:1px solid var(--primary-text);
    background-color:transparent;
    color:var(--primary-text);
    font-weight:700;
    font-size:0.83rem;
    border-radius:7px;
    cursor:pointer;
    transition:all .25s ease;
  }
  .institution-card:hover .explore-btn{
    background-color:var(--profile_blue);
    border-color:var(--profile_blue);
    color:#fff;
  }

  .empty-state{
    padding:48px 16px;
    color:var(--secondary-text);
    font-size:0.9rem;
    text-align:center;
    width:100%;
  }

  /* ---- floating push controls ---- */
  .carousel-nav{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:42px;
    height:42px;
    border-radius:50%;
    background:#ffffff;
    border:none;
    box-shadow:0 6px 18px rgba(20,33,61,0.16);
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    z-index:6;
    opacity:1;
    transition:opacity .2s ease, transform .2s ease, box-shadow .2s ease;
  }
  .carousel-nav:hover{
    box-shadow:0 10px 24px rgba(20,33,61,0.22);
    transform:translateY(-50%) scale(1.07);
  }
  .carousel-nav svg{width:18px;height:18px;stroke:var(--primary-text);}
  .carousel-nav.push-in{left:-14px;}
  .carousel-nav.push-out{right:-14px;}
  .carousel-nav[disabled]{
    opacity:0;
    pointer-events:none;
    transform:translateY(-50%) scale(.9);
  }

  @media (max-width:640px){
    .institution_header{flex-direction:column;}
    .view-all-btn{align-self:flex-start;}
    .carousel-nav.push-in{left:-8px;}
    .carousel-nav.push-out{right:-8px;}
  }
  @media (prefers-reduced-motion: reduce){
    .institution-card{animation:none; opacity:1;}
    .institution-card, .institution-logo-img, .explore-btn, .carousel-nav{transition:none;}
  }

</body>
</html>