.page {
  display: grid;
  grid-template-columns: 500px 1fr;
  gap: 24px;
  padding: 40px;
}
.institution-search-page{
  margin-top: 80px;
}

/* SIDEBAR */
.sidebar {
  background: #fff;
  border-radius: 10px;
}

.sidebar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 16px;
}
.sidebar-top p {
color: #1F2937;
font-size: 16px;
font-weight: 600;
}

.filter {
  display: inline-flex;              
  align-items: center;              
  justify-content: center;
  padding: 8px 18px;
  gap: 8px;
  background: #ffffff;
  color: #5A41FF;
  border-radius: 15px;
  border: 1px solid #ffffff;

  box-shadow: 0px 2px 4px -1px #0000000F,
    0px 4px 6px -1px #0000001A;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.filter img {
  width: 20px;                      
  height: 20px;
  display: block;                    
}
/* FILTER WRAPPER */
.filter-wrapper {
  position: relative;
}

/* DROPDOWN */
.filter-dropdown {
  position: absolute;
  top: 44px;
  right: 0;
  width: 120px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  display: none;
  z-index: 100;
}

/* SHOW STATE */
.filter-dropdown.show {
  display: block;
}

/* OPTIONS */
.filter-dropdown label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #374151;
  margin-bottom: 8px;
  cursor: pointer;
}

/* ACTION BUTTONS */
.filter-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
}

.filter-actions button {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  border: none;
}


/* CARD LAYOUT */
.list-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 17px 22px;
  border-radius: 4px;
  border: 1px solid #E0E6ED;
  margin-bottom: 10px;
}
.list-card.active {
  border-color: #1F2D3E;
}

.list-card span {
    margin-bottom: 5px;
}

/* TITLE + ICON ROW */
.card-header {
  display: flex;
  align-items: flex-start;        
  justify-content: space-between; 
  gap: 6px;
}

/* TITLE */
.card-header h4 {
  font-size: 16px;
  color: #1F2937;
  font-weight: 600;
  line-height: 1.4;
  margin: auto;
  flex: 1;                       
}

/* RIGHT ICON */
.card-icon {
  width: 36px;                    
  height: 36px;
  flex-shrink: 0;
  cursor: pointer;
}

/* COUNTRY */
.country {
  font-size: 12px;
  color: #1F2937;
  font-weight: 400;
}

/* BROWSE LINK */
.browse-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #1F2937;
  text-decoration: none;
  margin-top: 5px;
}

.browse-link img {
  width: 20px;
  height: 20px;
  display: block;
}
.browse-link span{
  margin-top: 4px;
  font-weight: 600;
}

/* PAGINATION */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}

.pagination button {
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 4px 10px;
  border-radius: 4px;
}

.pagination .active {
  border: 1px solid #5A41FF;
  background: #5A41FF;
  color: #fff;
}

/* ================= RIGHT CONTENT ================= */
.content {
  overflow: visible !important;
}

.hero {
  width: 100% !important;
  height: 260px !important;
  display: block !important;
  overflow: hidden !important;
  border-radius: 14px;
}

.hero img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}


/* ================= CARD ================= */
.content-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 56px 24px 24px;
  margin-top: -48px;
}

/* ================= HEADER ================= */
.header-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 16px;
   position: relative;
}
.header-row::after {
  content: "";
  position: absolute;
  left: -24px;              
  right: -24px;             
  bottom: 0;
  height: 1px;
  background: #e5e7eb;
}

/* LOGO */
.logo-box {
  width: 100px;
  height: 100px;
  background: #f8fafc;
  border-radius: 5px;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -42px; /* FLOAT ON BANNER */
  flex-shrink: 0;
}

.logo-box img {
  width: 86px;
  height: 86px;
}

/* TITLE */
.title-info h2 {
  font-size: 20px;
  color: #1F2937;
  font-weight: 600;
  margin: 0;
}

.title-info p {
  font-size: 14px;
  color: #4B5563;
  font-weight: 400;
  margin-top: 4px;
}

/* ================= TABS ================= */
.tabs {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.tab {
  font-size: 16px;
  padding-bottom: 10px;
  color: #1F2937;
  font-weight: 400;
  cursor: pointer;
}

.tab.active {
  color: #1F2937;
  border-bottom: 2px solid #2563eb;
}

/* ================= ABOUT ================= */
.about {
  margin-top: 24px;
}

.about h3 {
  font-size: 20px;
  color: #1F2937;
  font-weight: 600;
  margin-bottom: 10px;
}

.about p {
  font-size: 16px;
  line-height: 1.6;
  color: #374151;
  font-weight: 400;
}

.about a {
  display: inline-block;
  margin-top: 12px;
  font-size: 16px;
  font-weight: 600;
  color: #1F2D3E;
  text-decoration: none;
}
.about ul li{
  padding: 2px;
}
/* TAB CONTENT */
.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}


/* ================= MOBILE ================= */
@media (max-width: 900px) {
  .page {
    grid-template-columns: 1fr; /* Stack vertically */
    padding: 32px;
  }

  /* Move MAIN CONTENT to top */
  .content {
    order: 1;
  }

  /* Move SIDEBAR below */
  .sidebar {
    order: 2;
  }

  .sidebar-top {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 20;
    padding-bottom: 12px;
  }
}

/* @media (max-width: 1024px) {
  .page {
    grid-template-columns: 1fr;
    padding: 32px;
  }

  .sidebar {
    order: 1;
  }

  .content {
    order: 2;
  }

  .sidebar-top {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 20;
    padding-bottom: 12px;
  }
} */

@media (max-width: 768px) {

  /* PAGE */
  .page {
    padding: 16px;
    gap: 16px;
  }

  /* SIDEBAR */
  .sidebar {
    border-radius: 12px;
  }

  .sidebar-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .filter-wrapper {
    width: 100%;
  }

  .filter {
    width: 100%;
    justify-content: center;
  }

  .filter-dropdown {
    width: 50%;
    right: auto;
    left: 0;
  }

  /* LIST CARDS */
  .list-card {
    padding: 14px;
  }

  .card-header h4 {
    font-size: 14px;
  }

  .browse-link {
    font-size: 13px;
  }

  /* CONTENT */
  .hero {
    height: 180px;
  }

  .content-card {
    padding: 48px 16px 16px;
    margin-top: -32px;
  }

  /* LOGO */
  .logo-box {
    width: 64px;
    height: 64px;
    margin-top: -40px;
  }

  .logo-box img {
    width: 40px;
    height: 40px;
  }

  /* TITLE */
  .title-info h2 {
    font-size: 16px;
  }

  .title-info p {
    font-size: 13px;
  }

  /* TABS */
  .tabs {
    gap: 16px;
    overflow-x: auto;
  }

  .tab {
    font-size: 14px;
    white-space: nowrap;
  }

  /* TEXT */
  .about h3 {
    font-size: 18px;
  }

  .about p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .page {
    padding: 12px;
  }

  .hero {
    height: 160px;
  }

  .content-card {
    padding: 40px 14px 14px;
  }

  .logo-box {
    width: 56px;
    height: 56px;
  }

  .logo-box img {
    width: 32px;
    height: 32px;
  }
}
.about .more-text {
  display: none;
  margin-top: 10px;
}
.read-more {
  display: inline-block !important;
  margin-top: 10px;
  color: #0066cc;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
}

