/* profiles-common.css */

/* ========== SECTION WRAPPER ========== */
.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  /* ========== SECTION TITLE ========== */
  .section-title {
    font-size: 2.4em;
    text-align: center;
    color: #1a3c50;
    margin-bottom: 30px;
    position: relative;
    font-weight: 600;
    letter-spacing: 0.5px;
  }
  
  .section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #66cfff, #1f7abf);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    opacity: 0.8;
  }
  
  /* ========== SEARCH BAR ========== */
  .profile-search-bar {
    width: 100%;
    max-width: 600px;
    margin-bottom: 40px;
  }
  
  .profile-search-bar input {
    width: 100%;
    padding: 12px 16px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: inset 0 1px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
  }
  
  .profile-search-bar input:focus {
    outline: none;
    border-color: #66cfff;
    box-shadow: 0 0 8px rgba(102, 207, 255, 0.3);
  }
  
  /* ========== CARD CONTAINER ========== */
  .profile-container.two-column {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 40px;
    justify-content: center;
    width: 100%;
  }
  
  /* ========== BASE CARD STYLE ========== */
  .profile-card {
    transition: transform 0.3s ease;
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  }

  .profile-card {
    position: relative;
  }
  
  /* Checkbox floats top-right of the card */
  .profile-card input.profile-checkbox {
    position: absolute;
    top: 10px;
    right: 14px;
    transform: scale(1.2);
    z-index: 5;
    cursor: pointer;
  }
  
  .profile-card:hover {
    transform: scale(1.03);
  }
  
  /* ========== HOVER TEXT (UNIFIED) ========== */
  .hover-text {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 30, 50, 0.95);
    color: #eef3ff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85em;
    max-width: 240px;
    margin-top: 10px;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    white-space: normal;
    pointer-events: none;
    text-align: center;
    font-style: italic;
  }
  

  /* ========== HOVER LOGIC ========== */
  .photo-wrapper:hover .hover-text,
  .research-link:hover .hover-text {
    display: block;
  }
  
  /* ========== MEDIA QUERIES ========== */
  @media (max-width: 768px) {
    .profile-container.two-column {
      grid-template-columns: 1fr;
      gap: 24px;
    }
  
    .profile-section {
      padding: 40px 16px;
    }
  }
  

  .custom-dropdown {
    padding: 10px 16px;
    margin-bottom: 12px;
    margin-right: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background-color: #f9fcff;
    color: #1a3c50;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
  }
  
  .custom-dropdown:focus {
    outline: none;
    border-color: #66cfff;
    box-shadow: 0 0 8px rgba(102, 207, 255, 0.3);
  }
  
  /* ========= Match input field with dropdown ========= */
  .profile-search-input {
    padding: 10px 16px;
    width: calc(100% - 12px);
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1em;
    font-family: inherit;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
  }
  
  .profile-search-input:focus {
    outline: none;
    border-color: #66cfff;
    box-shadow: 0 0 8px rgba(102, 207, 255, 0.3);
  }

  .export-controls {
    text-align: center;
    margin-bottom: 20px;
    font-size: 0.95em;
  }
  
  .export-controls input[type="checkbox"] {
    margin-right: 8px;
  }
  
  /* ========= Dropdown Export Button ========= */
  .export-dropdown {
    position: relative;
    display: inline-block;
    margin-left: 20px;
  }
  
  /* New: keep dropdown visible as long as we're over button OR options */
  .export-dropdown:hover .export-options {
    display: block;
  }
  
  .export-button {
    padding: 8px 16px;
    background: #d0f0ff;
    color: #003344;
    border: 1px solid #66cfff;
    border-radius: 6px;
    cursor: pointer;
    width: 140px;
  }
  
  .export-options {
    display: none;
    position: absolute;
    top: 100%; /* better than 110% to reduce gap */
    left: 0;
    background-color: #f3fbff;
    border: 1px solid #66cfff;
    box-shadow: 0 4px 8px rgba(0, 60, 90, 0.1);
    z-index: 10;
    border-radius: 6px;
    overflow: hidden;
    min-width: 150px;
    transition: all 0.2s ease;
  }
  
  .export-options button {
    padding: 10px 16px;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font-size: 0.95em;
    color: #1a3c50;
    cursor: pointer;
  }
  
  .export-options button:hover {
    background-color: #e1f6ff;
  }
  
  
  /* ========= Checkbox inside profile cards ========= */
 /* .profile-card input.profile-checkbox {
    float: right;
    transform: scale(1.2);
    margin: 8px;
  }