.college-section {
  width: 100%;
  min-height: 100vh;
  padding: 42px 24px 56px;
}

.section-header {
  text-align: center;
  margin-bottom: 26px;
}

.title-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.title-icon {
  font-size: 28px;
  line-height: 1;
}

.section-header h2 {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0;
  color: #1f5597;
}

.title-line {
  width: 46px;
  height: 5px;
  margin: 14px auto 12px;
  border-radius: 999px;
  background: #3b7dcb;
  position: relative;
}

.title-line::after {
  content: "";
  position: absolute;
  right: -12px;
  top: 1px;
  width: 6px;
  height: 3px;
  border-radius: 999px;
  background: #3b7dcb;
}

.section-header p {
  margin: 0;
  font-size: 13px;
  color: #8a9ab3;
}

.college-grid {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px 24px;
}

.college-card {
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 18px rgba(35, 80, 140, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.college-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(35, 80, 140, 0.2);
}

.college-card .card-image {
  width: 100%;
  aspect-ratio: 60 / 26;
  overflow: hidden;
}

.college-card .card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.45s ease;
}

.college-card:hover .card-image img {
  transform: scale(1.06);
}

.card-body {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px 17px;
}

.card-info {
  min-width: 0;
  flex: 1;
}

.card-info h3 {
  margin: 0 0 3px;
  font-size: 26px;
  line-height: 1.25;
  color: #2964a2;
  font-weight: 800;
}

.card-info span {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  color: #7f8da3;
  line-height: 1.2;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-footer p {
  margin: 0;
  font-size: 12px;
  color: #38618f;
  white-space: nowrap;
}

.card-footer p::before {
  content: "☎";
  margin-right: 4px;
  color: #2368b8;
}

.card-footer a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 23px;
  padding: 0 13px;
  border: 1px solid #b8cbe5;
  border-radius: 999px;
  color: #2b67a8;
  font-size: 11px;
  line-height: 1;
  text-decoration: none;
  background: #fff;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.card-footer a:hover {
  color: #fff;
  background: #2b73c5;
  border-color: #2b73c5;
}


@media (max-width: 1400px) {
    .card-footer {
        display: block;
        align-items: unset;
        justify-content: unset;
    }

    .card-footer a {
        display: flex;
        width: fit-content; 
        margin-top:12px;
    }
}


@media (max-width: 980px) {
  .college-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .college-section {
    padding: 32px 14px 40px;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .college-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .college-card img {
    height: 150px;
  }

    
    .card-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .card-footer p {
        margin: 0;
        font-size: 12px;
        color: #38618f;
        white-space: nowrap;
    }

    .card-footer p::before {
        margin-right: 4px;
        color: #2368b8;
    }

    .card-footer a {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 23px;
        padding: 0 13px;
        border: 1px solid #b8cbe5;
        border-radius: 999px;
        color: #2b67a8;
        font-size: 11px;
        line-height: 1;
        text-decoration: none;
        background: #fff;
        transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    }
}



@media (max-width: 389px) {
    .card-footer {
        display: block;
        align-items: unset;
        justify-content: unset;
        gap: unset;
    }

    .card-footer p {
        margin: 0;
        font-size: 12px;
        color: #38618f;
        white-space: nowrap;
    }

    .card-footer p::before {
        margin-right: 4px;
        color: #2368b8;
    }

    .card-footer a {
        display: flex;
        width: fit-content; 
        margin-top:12px;
    }
}
