
/* ================= ROW ================= */
.campus-row {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-bottom: 30px;
  padding: 30px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  transition: 0.3s;
  overflow: hidden; /* 🔥 FIX overflow */
}

.campus-row:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.1);
}

.campus-row.reverse {
  flex-direction: row-reverse;
}

.campus-row.full {
  flex-direction: column;
  max-width: 1200px; /* 🔥 keep centered */
  margin-left: auto;
  margin-right: auto;
}

/* ================= TEXT ================= */
.campus-text {
  flex: 1;
  min-width: 0;
  width: 100%;
  overflow: hidden; /* 🔥 prevent breaking */
}

.campus-text h2 {
  color: var(--primary-blue);
  font-weight: 800;
  margin-bottom: 15px;
  font-size: 26px;
  position: relative;
}

/* underline */
.campus-text h2::after {
  content: "";
  width: 50px;
  height: 3px;
  background: var(--accent-red);
  display: block;
  margin-top: 6px;
  border-radius: 2px;
}

.campus-text p {
  color: #444;
  line-height: 1.8;
  margin-bottom: 12px;
  text-align: justify;
  font-size: 15px;
}

.campus-text ul {
  padding-left: 20px;
}

.campus-text ul li {
  margin-bottom: 8px;
}

/* ================= IMAGE ================= */
.campus-img {
  flex: 1;
  min-width: 0;
}

.campus-img img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  transition: 0.3s;
}

.campus-img img:hover {
  transform: scale(1.03);
}

/* ================= CAROUSEL ================= */
.campus-img-group {
  flex: 1;
  width: 100%;
  min-width: 0;
  overflow: hidden; /* 🔥 IMPORTANT FIX */
}

/* fix owl overflow */
.campus-img-group .owl-stage-outer {
  overflow: hidden;
  width: 100%;
}

.campus-img-group .owl-stage {
  display: flex;
}

/* item spacing */
.campus-img-group .item {
  padding: 10px;
}

/* image */
.campus-carousel .item img,
.campus-img-group .item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 14px;
  transition: 0.3s;
}

/* hover */
.campus-img-group .item img:hover {
  transform: scale(1.05);
}

/* ================= CENTER CAROUSEL ================= */
.center-carousel {
  margin: 30px auto;
  width: 100%;
  max-width: 100%; /* 🔥 FIX full width bug */
  padding: 15px;
  background: linear-gradient(135deg, #ffffff, #f9f9ff);
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.08);
  overflow: hidden; /* 🔥 MOST IMPORTANT */
}

.center-carousel .item img {
  height: 260px;
}

/* zoom center */
.owl-item.center .item img {
  transform: scale(1.08);
  z-index: 2;
}

/* ================= OWL NAV ================= */
.owl-nav {
  text-align: center;
  margin-top: 12px;
}

.owl-nav button {
  background: var(--primary-blue) !important;
  color: #fff !important;
  padding: 8px 14px !important;
  margin: 5px;
  border-radius: 6px;
  border: none;
  transition: 0.3s;
}

.owl-nav button:hover {
  background: var(--accent-red) !important;
}

/* ================= MOBILE ================= */
@media (max-width: 992px) {
  .campus-row {
    flex-direction: column;
    padding: 20px;
  }

  .campus-row.reverse {
    flex-direction: column;
  }
}

@media (max-width: 768px) {

  .campus-row {
    gap: 20px;
    padding: 15px;
  }

  .campus-img-group .item img {
    height: 200px;
  }

  .center-carousel {
    max-width: 100%;
  }

  .center-carousel .item img {
    height: 200px;
  }

  .campus-text p {
    text-align: left;
  }
}