
* {
    box-sizing: border-box;
  }
  
  .linkcssbody {
    margin: 0;
    height: 100vh;
    background: #f4f6f8;
  }
  
  /* Overlay */
  .linkoverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10;
  }
  
  /* Modal */
  .linkmodal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 720px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 20;
  
  }
  
  /* Header */
  .linkmodal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
      background: #efefef;
  padding: 6px 20px;
  border-top-left-radius: 8px;
    border-top-right-radius: 8px;
  }
  
  .linkmodal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
  }
  
  .linkclose-btn {
    background: none;
    border: none;
    font-size: 42px;
    cursor: pointer;
    color: #6b7280;
  }
  
  .linkclose-btn:hover {
    color: #111827;
  }
  
  /* Grid */
  .links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px 16px;
  }
  
  /* Cards */
  .link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f5f8ff;
    border-radius: 10px;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
  }
  
  .link-card:hover {
    background: #eaf0ff;
  }
  
  /* Text */
  .linktitle {
    font-size: 14px;
    /* font-weight: 600;
    color: #1f3bb3; */
  }
  
  .linksubtitle {
    font-size: 12px;
    color: #0e1015;
    margin-top: 2px;
  }
  
  /* Arrow */
  .linkarrow {
    font-size: 20px;
    color: #1f3bb3;
    margin-left: 8px;
  }
  .linkgridwhole{
  padding: 20px 24px 24px;
  }
  .link-wrapper {
    text-decoration: none;
    color: inherit;
    display: block;
  }
  
  .link-card {
    text-decoration: none !important;   /* removes underline */
    color: inherit !important;          /* removes blue color */
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  /* Remove underline & default link color completely */
  .link-card,
  .link-card:link,
  .link-card:visited,
  .link-card:hover,
  .link-card:active,
  .link-card:focus {
    text-decoration: none !important;
    color: inherit !important;
  }
  
  /* Optional: remove focus outline (only if you have another focus style) */
  .link-card:focus {
    outline: none;
  }
@media (max-width: 1024px) {
  .linkmodal {
    width: 90%;
    max-height: 85vh;
  }

  .links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  body {
    height: auto;
  }

  .linkmodal {
    width: 95%;
    max-height: 80vh;
    border-radius: 10px;
  }

  .linkmodal-header {
    padding: 10px 16px;
  }

  .linkmodal-header h2,
  .linkmodal-header div {
    font-size: 16px;
  }

  .linkclose-btn {
    font-size: 34px;
  }

  .linkgridwhole {
    width: 100%;
    padding: 16px;
    overflow-y: auto;
    max-height: calc(75vh - 60px);
  }

  .links-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .link-card {
    padding: 14px;
  }

  .linktitle {
    font-size: 15px;
  }

  .linksubtitle {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .linkmodal {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .linkgridwhole {
    width: 98%;
    margin: auto;
    max-height: calc(78vh - 56px);
  }
}
