

.main-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto;
}

/* Card Styles */
.card {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid #e9e9e9;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: #e0e0e0;
}

.card-header {
  display: flex;
  /* justify-content: space-evenly; */
  align-items: flex;
  margin-bottom: 22px;
  position: relative;
}

.header-content {
  flex: 1;
}

.card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  margin-bottom: 2px;
}

.card-description-box {
  /* background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); */
  /* border: 1px solid #e5e5e5; */
  border-radius: 8px;
  /* padding: 12px 11px; */
  margin-top: 8px;
}


.card-description {
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
  font-weight: 500;
}

/* Illustration Styles */
.illustration {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.icon-background {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #f1f3f4 0%, #e8eaed 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.orange-bg {
  background: linear-gradient(135deg, #ff9a56 0%, #ff7900 100%) !important;
}

.blue-bg {
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%) !important;
}

.yellow-bg {
  background: linear-gradient(135deg, #ffd93d 0%, #f39c12 100%) !important;
}

.purple-bg {
  background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%) !important;
}

.green-bg {
  background: linear-gradient(135deg, #55efc4 0%, #00b894 100%) !important;
}

/* Icon positioning within illustrations */
.icon-background > div:first-child {
  font-size: 28px;
  z-index: 3;
}

.icon-background > div:nth-child(2) {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 16px;
  z-index: 2;
}

.icon-background > div:nth-child(3) {
  position: absolute;
  bottom: 8px;
  left: 12px;
  font-size: 14px;
  z-index: 2;
}

/* Chart elements for ranking */
.chart-elements {
  position: absolute;
  bottom: 5px;
  right: 5px;
  display: flex;
  gap: 2px;
}

.chart-bar {
  width: 3px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 1px;
}

.chart-bar:nth-child(1) { height: 8px; }
.chart-bar:nth-child(2) { height: 12px; }
.chart-bar:nth-child(3) { height: 6px; }

/* Location dots for find colleges */
.location-dots {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 3px;
}

.dot {
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
}

/* Compare arrows */
.compare-arrows {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: flex;
  gap: 2px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.8);
}

/* Checkmarks for exams */
.checkmarks {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.8);
}

/* Prediction chart */
.prediction-chart {
  position: absolute;
  bottom: 8px;
  left: 8px;
  width: 20px;
  height: 12px;
}

.chart-line {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.6);
  position: relative;
  top: 50%;
}

.chart-dot {
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  position: absolute;
  top: 4px;
  right: 3px;
}

/* Course elements */
.course-elements {
  position: absolute;
  top: 6px;
  left: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
}

/* Statistics Sections */
.ranking-stats,
.course-stats {
  margin-bottom: 24px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.stat-row:last-child {
  margin-bottom: 0;
}

.stat-item,
.course-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  padding: 0 8px;
}

.stat-item:first-child,
.course-stat:first-child {
  padding-left: 0;
}

.stat-item:last-child,
.course-stat:last-child {
  padding-right: 0;
}

.stat-label,
.course-type {
  font-size: 13px;
  color: #666666;
  font-weight: 500;
}

.stat-value,
.course-count {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
}

/* College Links */
.college-links {
  margin-bottom: 24px;
}

.college-link {
  display: block;
  color: #3b82f6;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  transition: all 0.3s ease;
  padding: 4px 0;
}

.college-link:hover {
  color: #2563eb;
  text-decoration: underline;
  transform: translateX(4px);
}

.college-link:last-child {
  margin-bottom: 0;
}

/* Compare Items */
.compare-items {
  margin-bottom: 24px;
}

.compare-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px;
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 12px;
}

.compare-item:last-child {
  margin-bottom: 0;
}

.college-logo {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid #e5e5e5;
}

.college-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.college-name {
  font-weight: 600;
  color: #1a1a1a;
  font-size: 12px;
  line-height: 1.3;
}

.college-type {
  color: #ff7900;
  font-size: 10px;
  font-weight: 500;
}

.vs-symbol {
  background: #666666;
  color: #ffffff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Tags */
.exam-tags,
.predictor-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.exam-tag,
.predictor-tag {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: #495057;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid #e5e5e5;
  transition: all 0.3s ease;
}

.exam-tag:hover,
.predictor-tag:hover {
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
  transform: translateY(-1px);
}

/* Card Links */
.card-link {
  color: #666666;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-link:hover {
  color: #ff7900;
  transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 1023px) {
  .college-finder-container {
    padding: 32px 20px;
  }
  
  .main-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .card {
    padding: 20px;
  }
  
  .card h3 {
    font-size: 22px;
  }
  
  .illustration {
    width: 70px;
    height: 70px;
  }
  
  .icon-background > div:first-child {
    font-size: 24px;
  }
}

@media (max-width: 767px) {
  .college-finder-container {
    padding: 24px 16px;
  }
  
  .main-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .card {
    padding: 16px;
  }
  
  .card h3 {
    font-size: 20px;
  }
  
  .filter-tabs {
    margin-bottom: 24px;
    gap: 6px;
  }
  
  .tab-btn {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .illustration {
    width: 60px;
    height: 60px;
  }
  
  .icon-background > div:first-child {
    font-size: 20px;
  }
  
  .stat-row {
    flex-direction: column;
    gap: 8px;
  }
  
  .stat-item,
  .course-stat {
    padding: 0;
  }
  
  .compare-item {
    font-size: 11px;
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .filter-tabs {
    gap: 4px;
  }
  
  .tab-btn {
    padding: 6px 10px;
    font-size: 11px;
  }
  
  .card-header {
    flex-direction: column;
    gap: 16px;
  }
  
  .illustration {
    align-self: flex-end;
    width: 50px;
    height: 50px;
  }
  
  .icon-background > div:first-child {
    font-size: 18px;
  }
}


@media (max-width: 480px) {
    .illustration {
        align-self: flex-end;
        width: 50px;
        height: 50px;
        display: none;
    }
}