/* universities-styles.css - MIT page inspired styles for universities folder */

body {
  background-color: #fff;
  color: #000;
  line-height: 1.6;
  font-family: 'Montserrat', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a {
  text-decoration: none;
  color: inherit;
}
header {
  position: sticky;
  top: 0;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
  padding: 15px 3%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 24px;
  font-weight: 700;
  margin-left: 10px;
}
.logo .all { color: #e63946; }
.logo .abroad { color: #000000; }
nav.main-nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}
nav.main-nav ul li a {
  font-weight: 500;
  transition: color 0.3s;
}
nav.main-nav ul li a:hover {
  color: #e63946;
}
.dropdown { position: relative; }
.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  z-index: 1;
  border-radius: 5px;
  padding: 10px 0;
}
.dropdown:hover .dropdown-content { display: block; }
.dropdown-content a {
  color: black;
  padding: 10px 15px;
  display: block;
}
.dropdown-content a:hover {
  background-color: #f5f5f5;
  color: #e63946;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.search-box {
  position: relative;
}
.search-box input {
  padding: 9px 15px 9px 38px;
  border: 1.5px solid #ddd;
  border-radius: 24px;
  width: 190px;
  font-size: 15px;
  color: #222;
  outline-offset: 2px;
  transition: border-color 0.3s ease;
}
.search-box input:focus { border-color: #e63946; }
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  font-size: 16px;
  pointer-events: auto;
}
.login-btn {
  background-color: #e63946;
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 500;
  white-space: nowrap;
}
.login-btn:hover { background-color: #c1121f; }
.main-content {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
  flex: 1 0 auto;
  box-sizing: border-box;
  width: 100%;
}
.page-title {
  font-size: 36px;
  margin-bottom: 40px;
  text-align: center;
  color: #e63946;
  font-weight: 700;
}
section.guide-section {
  margin-bottom: 50px;
}
section.guide-section h2 {
  font-size: 28px;
  color: #e63946;
  margin-bottom: 15px;
  border-bottom: 3px solid #e63946;
  padding-bottom: 6px;
  font-weight: 700;
}
section.guide-section p {
  font-size: 16px;
  color: #333;
  line-height: 1.5;
  max-width: 850px;
}
section.guide-section ul {
  margin: 15px 0;
  padding-left: 20px;
}
section.guide-section li {
  margin-bottom: 10px;
}
.highlight-box {
  background-color: #f8f9fa;
  border-left: 4px solid #e63946;
  padding: 15px;
  margin: 20px 0;
}
.highlight-box h3 {
  margin-bottom: 10px;
  color: #e63946;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}
.data-table th, .data-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}
.data-table th {
  background: #E63946;
  color: #fff;
  font-weight: 600;
}
dl { margin-top: 16px; }
dt { font-weight: 600; }
dd { margin-left: 20px; margin-bottom: 12px; }
.subfooter-wrapper {
  width: 100vw;
  min-width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: #2a2a2a;
  box-sizing: border-box;
}
.subfooter {
  background-color: #2a2a2a;
  color: #fff;
  padding: 50px 20px 0px;
}
.subfooter-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #444;
}
.subfooter-column {
  flex: 1;
  min-width: 200px;
}
.subfooter-column h4 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}
.subfooter-column h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: #E63946;
}
.subfooter-column ul {
  list-style: none;
}
.subfooter-column ul li {
  margin-bottom: 12px;
}
.subfooter-column ul li a {
  color: #bbb;
  transition: color 0.3s;
}
.subfooter-column ul li a:hover {
  color: #fff;
}
.subfooter-bottom {
  max-width: 1200px;
  margin: 20px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 20px;
  margin-bottom: 0;
  padding-bottom: 0;
}
.subfooter-bottom p {
  color: #999;
  font-size: 14px;
}
.social-links {
  display: flex;
  gap: 15px;
}
.social-links a {
  color: #fff;
  background: #444;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.social-links a:hover {
  background: #E63946;
}
@media (max-width: 768px) {
  header {
    padding: 8px 4%;
  }
  .logo {
    font-size: 18px;
  }
  .nav-right {
    gap: 10px;
  }
  .search-box input {
    width: 140px;
  }
  .main-nav {
    display: none;
  }
  .hamburger-container {
    display: block;
  }
  .menu-panel {
    top: 54px;
  }
  .user-btn {
    width: 40px;
    height: 40px;
  }
  .main-content {
    margin: 30px 15px;
    padding: 0 10px;
    width: 100%;
  }
  .about-column {
    min-width: 100%;
  }
  .subfooter-content {
    flex-direction: column;
    gap: 10px;
    padding-bottom: 20px;
  }
  .subfooter-column {
    min-width: 100%;
  }
  .subfooter {
    padding: 20px 5px 0px;
  }
  .subfooter-wrapper {
    width: 100vw;
    min-width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 0;
  }
  .subfooter-bottom {
    font-size: 12px;
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 360px) {
  header {
    padding: 6px 3%;
  }
  .search-box input {
    display: none;
  }
  .search-icon {
    left: 8px;
  }
  .user-btn {
    width: 36px;
    height: 36px;
    margin-left: 6px;
  }
  .logo {
    font-size: 16px;
  }
}

/* Additional university page components */
.uni-details {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  padding: 32px 32px 24px 32px;
  display: block;
}
.uni-details .rank-badge {
  display: inline-block;
  background: linear-gradient(135deg,#E63946,#D62828);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 12px;
}
.uni-metrics {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 8px 18px;
  margin-top: 6px;
}
.uni-metrics .metric {
  font-size: 15px;
  color: #222;
}
.uni-metrics .metric b { color: #111; }
.uni-extra-content {
  max-width: 820px;
  margin: 28px auto 40px auto;
  background: #fbfbfb;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 28px 28px 24px 28px;
}
.uni-extra-content h2 { font-size: 22px; color: #E63946; margin-bottom:12px; }
.uni-hero {
  display:flex;
  gap:18px;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
}
.uni-hero img {
  width: 180px;
  height: 120px;
  object-fit:cover;
  border-radius:8px;
  box-shadow:0 6px 18px rgba(0,0,0,0.08);
}
.cta-row {
  display:flex;
  gap:12px;
  margin-top:18px;
}
.btn-primary {
  background:#E63946;color:#fff;padding:10px 18px;border-radius:8px;text-decoration:none;font-weight:600;
}
.btn-outline { border:1px solid #E63946;color:#E63946;padding:9px 16px;border-radius:8px;text-decoration:none;font-weight:600;background:transparent }

@media (max-width: 720px) {
  .uni-metrics { grid-template-columns: 1fr; }
  .uni-hero img { width: 100%; height: auto; max-width: 360px; }
  .cta-row { flex-direction:column; }
}

/* Small helper utilities for university pages */
.muted { color: #444; margin: 0; }
.sr-only { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

