/* ======================
   BASE RESET
====================== */
/* ======================
   HEADER
====================== */
.header {
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 60px;
}

.logo-section {
    width: 100px;
    height: 40px;
    display: flex;
    align-items: center;
}

.header-logo {
    max-height: 60px;
    width: 100px;
    height: 40px;
    object-fit: contain;
}

.navbar {
    display: flex;
    gap: 50px;
    align-items: center;
}

.navbar a {
    text-decoration: none;
    color: #222;
    font-size: 16px;
    font-weight: 500;
}

/* PAGE CONTAINER */

.container {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #f4f6f9;
  padding: 20px;
}

/* ======================
   SEARCH
====================== */
.search-box {
  width: 100%;
  padding: 16px;
  font-size: 17px;
  border-radius: 10px;
  border: 1px solid #ccc;
  margin-bottom: 20px;
}

/* ======================
   COLLEGE GRID
====================== */
#collegeContainer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

/* COLLEGE CARD */
.college-card {
  background: #ffffff;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: 0.25s;
}
.college-logo{
  width: 60px;
  height: 45px;
  object-fit: contain;
  display: block;
  margin: 0 auto 10px auto;
  border-radius: 8px;
}

.college-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* ======================
   MODAL OVERLAY
====================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

/* MODAL BOX */
.modal-content {
  background: #fff;
  width: 90%;
  max-width: 600px;
  padding: 25px;
  border-radius: 14px;
  position: relative;
  animation: pop 0.2s ease-in-out;
}

/* animation */
@keyframes pop {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* CLOSE BUTTON */
.close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 24px;
  cursor: pointer;
}

/* ======================
   MODAL TEXT
====================== */
.modal-content h2 {
  color: #1d4ed8;
  margin-bottom: 6px;
}

.modal-content p {
  color: #555;
  margin-bottom: 4px;
}

/* ======================
   COURSES WRAPPER (IMPORTANT FIX)
====================== */
.course-box {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

/* COURSE CARD */
.course-item {
  background: #e0f2fe;
  color: #0f172a;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #bae6fd;
  white-space: nowrap;
}

/* hover */
.course-item:hover {
  background: #bae6fd;
}
.detail-card {
  max-width: 700px;
  margin: auto;
  background: white;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 3px 12px rgba(0,0,0,0.1);
}

.big-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 15px;
}

.detail-card h1 {
  color: #1d4ed8;
  margin-bottom: 8px;
}

.course-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}
