
    :root{
      --primary-blue: #0b66b2;
      --accent-orange: #ff7a2d;
      --muted-text: #555;
      --card-border: rgba(0,0,0,0.06);
      --card-bg: #fff;
      --hover-bg: #0b66b2; /* blue hover background */
      --hover-text: #fff;
      --max-width: 1200px;
      --radius: 10px;
      --gap: 24px;
      --transition: 220ms ease;
    }

    *{box-sizing:border-box}
   
   

    .wrap{width:100%;max-width:var(--max-width)}

    .section-head{text-align:center;margin-bottom:18px;}
    .section-head h2{margin:0 0 10px;color:var(--primary-blue);font-weight:600;font-size:32px;}
    .decor{display:inline-block;height:6px;width:72px;position:relative;margin-top:6px;}
    .decor::before{content:'...';position:absolute;left:0;top:-8px;color:var(--accent-orange);font-weight:700;letter-spacing:6px;opacity:0.95;}

    .grid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--gap);align-items:stretch;}

    .card{
      background:var(--card-bg);
      border-radius:6px;
      border:1px solid var(--card-border);
      padding:28px 18px;
      text-align:center;
      position:relative;
      overflow:hidden;
      transition:background var(--transition), transform var(--transition), box-shadow var(--transition), color var(--transition);
      cursor:pointer;
    }

    .avatar{
      width:150px;height:200px;margin:0 auto 14px;border-radius:50%;overflow:hidden;display:inline-block;border:6px solid #fff;box-shadow:0 6px 20px rgba(12,30,60,0.06);position:relative;z-index:3;background:#fff;
    }
    .avatar img{width:100%;height:100%;object-fit:cover;display:block;}

    /* Blue background effect excluding photo area */
    .card::before{
      content:'';
      position:absolute;
      inset:0;
      background:transparent;
      transition:background var(--transition);
      z-index:1;
    }

    .card:hover::before{
      background:var(--hover-bg);
    }

    /* Exclude oval photo area from hover background */
    .card:hover .avatar{
      background:#fff;
      z-index:3;
      position:relative;
    }

    .name,
    .role{
      position:relative;
      z-index:2;
      transition:color var(--transition);
      text-decoration:none;
    }

    .name{margin:6px 0;display:block;color:var(--primary-blue);font-weight:600;font-size:18px;}
    /* removed underline on hover */
    .name:hover, .name:focus{text-decoration:none;}

    .role{color:var(--muted-text);font-size:14px;}

    .card:hover .name, .card:hover .role{color:var(--hover-text);}

    .card::after{content:'';position:absolute;left:0;right:0;bottom:0;height:6px;background:linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.02) 50%, transparent 100%);pointer-events:none;z-index:2;}

    /* Modal styles */
    .modal-backdrop{display:none;position:fixed;inset:0;
	background:rgba(0,0,0,0.45);z-index:1000;align-items:center;justify-content:center;padding:20px;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	}
    .modal-backdrop.open{display:flex}
    .modal{background:#fff;border-radius:10px;max-width:760px;width:100%;box-shadow:0 30px 80px rgba(0,0,0,0.3);overflow:hidden;max-height:90vh;display:flex;flex-direction:column;}
    .modal-header{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid rgba(0,0,0,0.06)}
    .modal-title{font-size:18px;color:var(--primary-blue);margin:0}
    .modal-close
	{
		position: absolute;
    top: 10px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 6;
    background: transparent;
		}
    .modal-body{padding:18px 20px;overflow:auto}

    .details{display:grid;grid-template-columns:1fr 2fr;gap:10px 20px;align-items:start}
    .details dt{font-weight:600;color:var(--muted-text)}
    .details dd{margin:0;color:#111}

    @media (max-width:600px){.details{grid-template-columns:1fr;}.modal{max-width:520px}}

    @media (max-width:1000px){.grid{grid-template-columns:repeat(2,1fr)}}
    @media (max-width:640px)
	{
		body
		{padding:20px 12px}
	.section-head h2{font-size:26px}
	.grid{grid-template-columns:1fr;gap:18px}
	.card{padding:20px}
	.avatar{width:96px;height:96px}
	.card:hover{transform:none;box-shadow:none}}

    .card:focus{outline:3px solid rgba(11,102,178,0.18);outline-offset:2px}
    .modal-close:focus{outline:3px solid rgba(11,102,178,0.18);outline-offset:2px}
	
	
/*New for Pop up for Mobile view*/
	@media screen and (max-width: 700px) {

  /* make the backdrop align modal near top on mobile so it feels natural and more content is visible */
  .modal-backdrop {
    align-items: flex-start;     /* place modal from top instead of perfectly centered */
    padding: 18px 12px 28px;     /* extra top padding for comfortable spacing on mobile */
  }

  /* modal sizing: almost full-width and tall but not fullscreen to keep header visible */
  .modal {
    width: 96%;
    max-width: 420px;            /* you said we can increase screen size as suits mobile — 420px is friendly */
    max-height: 92vh;            /* allow plenty of vertical space while leaving room for status bars */
    border-radius: 10px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.28);
    display: flex;
    flex-direction: column;
  }

  /* header stacked and slightly larger for readability */
  .modal-header {
    padding: 14px 16px;
    flex-direction: row;         /* keep title + close on same row for familiar layout */
    align-items: center;
    gap: 8px;
  }

  .modal-title {
    font-size: 18px;
    line-height: 1;
    margin: 0;
    flex: 1;
    text-align: center;
  }

  /* place close button exactly top-right and keep it tappable */
  .modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 6;
    background: transparent;
  }

  /* modal body: ensure it scrolls inside the modal and is comfortable to read */
  .modal-body {
    padding: 12px 14px 18px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 15px;
  }

  /* Convert two-column details grid to single column and increase spacing */
  .details {
    display: grid;
    grid-template-columns: 1fr; /* single column — label above value */
    gap: 8px 0;
    align-items: start;
  }

  .details dt {
    font-weight: 700;
    color: var(--muted-text, #666);
    font-size: 15px;
    padding-top: 6px;
  }

  .details dd {
    margin: 6px 0 10px;
    color: #111;
    font-size: 15px;
    line-height: 1.45;
    word-break: break-word;     /* avoid overflow for long words/links */
  }

  /* bigger avatar and center it above details */
  .avatar-circle,
  .modal-body .avatar {
    display: block;
    margin: 8px auto 10px;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0,0,0,0.10);
  }

  /* if you use a table-like layout for ORCID/QR, keep it centered and responsive */
  .info-qr img,
  .modal-body img {
    max-width: 160px;
    width: 40%;
    height: auto;
    display: block;
    margin: 10px auto;
  }

  /* ensure long paragraphs wrap and don't cause horizontal scroll */
  .modal-body, .details dd, .details dt {
    overflow-wrap: break-word;
    -ms-word-break: break-word;
    word-break: break-word;
  }

  /* if there is a vertical scrollbar, give a little right padding so content doesn't hide under it */
  .modal-body::-webkit-scrollbar { width: 8px; }
  .modal-body::-webkit-scrollbar-thumb { border-radius: 6px; background: rgba(0,0,0,0.12); }

}