/* ── Hamburger icon fix ──────────────────────────────────────────────────────
   Nicepage's u-custom-color / u-custom-text-color resolve to white (designed
   for dark-header themes), making the icon invisible on a light nav bar.
   Override with an explicit brand colour and propagate to the SVG. */
.u-menu-1 .menu-collapse > a {
  color: #e13690 !important; /* brand pink – visible on white nav bar */
}

/* The SVG <use> sprite picks up fill via currentColor; the raw <rect>
   elements inside u-svg-content need an explicit fill as a hard fallback. */
.u-menu-1 .menu-collapse .u-svg-link {
  fill: currentColor;
}

.u-menu-1 .menu-collapse .u-svg-content rect {
  fill: #e13690;
}

/* ── Section 1 ────────────────────────────────────────────────────────────── */
.u-section-1 {
  background-image: none;
  min-height: 626px;
}

.u-section-1 .u-layout-wrap-1 {
  pointer-events: auto;
  margin-top: 1px;
  margin-bottom: 0;
}

.u-section-1 .u-layout-cell-1 {
  min-height: 208px;
  pointer-events: auto;
  background-image: linear-gradient(to right, #e13690, #f97e83);
}

.u-section-1 .u-container-layout-1 {
  padding: 0;
}

.u-section-1 .u-image-1 {
  width: auto;
  height: 208px; /* matches u-layout-cell-1 min-height */
  max-width: 100%;
  margin: 0 auto 0 13px;
  display: block;
}

.u-section-1 .u-text-1 {
  width: 408px;
  max-width: 100%;
  margin: -180px auto 0;
}

.u-section-1 .u-text-2 {
  box-shadow: 0 0 0 rgba(0,0,0,0);
  font-weight: 700;
  /* Explicit white so the college name is always visible on the pink gradient,
     overriding whatever u-text-palette-5-light-1 resolves to in nicepage.css */
  color: #ffffff !important;
  text-shadow: 0px 0px 8px rgba(128,128,128,1);
  margin: 0 41px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.u-section-1 .u-text-3 {
  margin: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.u-section-1 .u-gallery-1 {
  height: 375px;
  margin-top: 41px;
  margin-bottom: 1px;
}

.u-section-1 .u-carousel-indicators-1 {
  position: absolute;
  bottom: 10px;
}

.u-section-1 .u-carousel-item-1,
.u-section-1 .u-carousel-item-2,
.u-section-1 .u-carousel-item-3,
.u-section-1 .u-carousel-item-4,
.u-section-1 .u-carousel-item-5,
.u-section-1 .u-carousel-item-6 {
  margin-right: 0;
}

.u-section-1 .u-over-slide-1,
.u-section-1 .u-over-slide-2,
.u-section-1 .u-over-slide-3,
.u-section-1 .u-over-slide-4,
.u-section-1 .u-over-slide-5,
.u-section-1 .u-over-slide-6 {
  background-image: linear-gradient(0deg, rgba(0,0,0,0.2), rgba(0,0,0,0.2));
  padding: 20px;
}

.u-section-1 .u-carousel-control-1 {
  position: absolute;
  left: 10px;
  width: 40px;
  height: 40px;
  padding: 4px;
}

.u-section-1 .u-carousel-control-2 {
  position: absolute;
  right: 10px;
  width: 40px;
  height: 40px;
  padding: 4px;
}

@media (max-width: 1199px) {
   .u-section-1 {
    min-height: auto;
  }

  .u-section-1 .u-layout-cell-1 {
    min-height: 172px;
  }

  .u-section-1 .u-image-1 {
    height: 172px; /* scale with the cell */
    margin-top: 0;
  }

  .u-section-1 .u-container-layout-1 {
    padding-top: 88px;
  }

  .u-section-1 .u-text-1 {
    margin-top: -124px;
  }

  .u-section-1 .u-text-2 {
    transition-duration: 0.5s;
    /* Reduced scaling so text doesn't overflow */
    transform: translateX(0px) translateY(0px) scale(1) rotate(0deg);
    margin-left: 0;
    margin-right: 0;
  }

  .u-section-1 .u-gallery-1 {
    height: 300px;
  }
}

@media (max-width: 991px) {
  .u-section-2 .u-sheet-1 {
    flex-direction: column;
    align-items: stretch;
  }

  .u-section-2 .u-group-1 {
    flex: none;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    order: 1; /* Forces Main Gallery to appear above the Sidebar on mobile */
  }

  .u-section-2 .u-group-2 {
    flex: none;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    order: 2; /* Drops the Sidebar below the content on mobile */
  }
}

@media (max-width: 767px) {
  .u-section-1 .u-container-layout-1 {
    padding-left: 15px;
    padding-right: 15px;
  }

  .u-section-1 .u-gallery-1 {
    height: 220px;
  }
}

@media (max-width: 575px) {
  .u-section-1 .u-text-1 {
    width: 100%;
  }

  .u-section-1 .u-gallery-1 {
    height: 180px;
    margin-top: 20px;
  }
} 

.u-section-2 {
  background-image: linear-gradient(#fce9f3, #f97e83);
}

.u-section-2 .u-sheet-1 {
  min-height: auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  padding: 40px 15px;
  gap: 20px;
}

.u-section-2 .u-text-1 {
  width: 100%;
  flex-shrink: 0;
  margin: 9px 0 20px;
  order: 0; /* heading always spans top */
}

.u-section-2 .u-group-1 {
  flex: 1 1 0;
  min-width: 0;
  height: auto;
  background-image: linear-gradient(#fce9f3, #f97e83);
  margin: 0;
  order: 2; /* content on the right */
}

.u-section-2 .u-container-layout-1 {
  padding: 20px;
}

.u-section-2 .u-text-2 {
  font-weight: 400;
  margin: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.u-section-2 .u-list-1 {
  display: none;
}

.u-section-2 .u-repeater-1 {
  grid-gap: 0px 0px;
}

.u-section-2 .u-group-2 {
  flex: 0 0 270px;
  width: 270px;
  height: auto;
  background-image: linear-gradient(#fce9f3, #f97e83);
  margin: 0;
  order: 1; /* sidebar on the left */
}
/* Make the sidebar sticky on desktop */
@media (min-width: 992px) {
  .u-section-2 .u-group-2 {
    position: -webkit-sticky; /* For Safari support */
    position: sticky;
    top: 20px; /* Distance from the top of the screen */
    align-self: flex-start; /* Prevents the sidebar from stretching to the full height of the section */
    z-index: 10;
  }
}
.u-section-2 .u-container-layout-2 {
  padding: 30px;
}

.u-section-2 .u-custom-html-1 {
  margin-bottom: 0;
  margin-top: 0;
}

@media (max-width: 1199px) {
  .u-section-2 .u-repeater-1 {
    grid-template-columns: 100%;
  }
}

@media (max-width: 991px) {
  .u-section-2 .u-sheet-1 {
    flex-direction: column;
    align-items: stretch;
  }

  .u-section-2 .u-group-1 {
    flex: none;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
  }

  .u-section-2 .u-group-2 {
    flex: none;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .u-section-2 .u-group-1 {
    max-width: 540px;
  }

  .u-section-2 .u-group-2 {
    max-width: 540px;
  }

  .u-section-2 .u-container-layout-2 {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 575px) {
  .u-section-2 .u-group-1 {
    max-width: 100%;
  }

  .u-section-2 .u-group-2 {
    max-width: 100%;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   Photo Gallery Upload Widget  (pg-* namespace)
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Wrapper ─────────────────────────────────────────────────────────────── */
.pg-gallery-wrap {
  width: 100%;
  font-family: 'Montserrat', 'Open Sans', sans-serif;
}

/* ── Header bar ──────────────────────────────────────────────────────────── */
.pg-gallery-header {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(90deg, #e13690, #f97e83);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 10px 16px;
  border-radius: 10px 10px 0 0;
  margin-bottom: 0;
}

.pg-header-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  stroke: #fff;
}

/* ── Info bar ────────────────────────────────────────────────────────────── */
.pg-info-bar {
  background: rgba(225, 54, 144, 0.08);
  border: 1px dashed #e13690;
  border-top: none;
  color: #b02070;
  font-size: 0.75rem;
  text-align: center;
  padding: 7px 12px;
  border-radius: 0 0 0 0;
  margin-bottom: 14px;
}

/* ── Photo grid ──────────────────────────────────────────────────────────── */
.pg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 0 4px;
}

/* ── Individual slot ─────────────────────────────────────────────────────── */
.pg-slot {
  position: relative;
  border: 2px dashed #e13690;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.pg-slot:hover {
  border-color: #b02070;
  box-shadow: 0 4px 18px rgba(225, 54, 144, 0.18);
  transform: translateY(-2px);
}

.pg-slot.pg-has-image {
  border-style: solid;
  border-color: #e13690;
}

/* ── Hidden file input ───────────────────────────────────────────────────── */
.pg-file-input {
  display: none;
}

/* ── Empty state placeholder ─────────────────────────────────────────────── */
.pg-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
  padding: 12px;
  box-sizing: border-box;
}

.pg-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.75;
  transition: opacity 0.2s, transform 0.2s;
}

.pg-slot:hover .pg-placeholder svg {
  opacity: 1;
  transform: scale(1.08);
}

.pg-ph-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #e13690;
  letter-spacing: 0.4px;
}

.pg-ph-sub {
  font-size: 0.68rem;
  color: #b08090;
  margin-top: -2px;
}

/* ── Preview image (hidden until upload) ─────────────────────────────────── */
.pg-preview-img {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: calc(100% - 34px); /* leave room for caption */
  object-fit: cover;
}

/* ── Remove button overlay ───────────────────────────────────────────────── */
.pg-slot-actions {
  display: none;
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 10;
}

.pg-btn-remove {
  background: rgba(225, 54, 144, 0.88);
  border: none;
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.15s;
}

.pg-btn-remove:hover {
  background: #b02070;
}

/* ── Caption input ───────────────────────────────────────────────────────── */
.pg-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  border: none;
  border-top: 1px solid rgba(225, 54, 144, 0.25);
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.7rem;
  color: #555;
  padding: 0 8px;
  font-family: inherit;
  outline: none;
  z-index: 5;
  box-sizing: border-box;
}

.pg-caption:focus {
  background: #fff7fb;
  border-top-color: #e13690;
}

.pg-caption::placeholder {
  color: #c8a0b8;
  font-style: italic;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.pg-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 0 4px 4px;
  flex-wrap: wrap;
  gap: 8px;
}

.pg-btn-add {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(90deg, #e13690, #f97e83);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 7px 18px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  letter-spacing: 0.3px;
}

.pg-btn-add:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.pg-count {
  font-size: 0.73rem;
  color: #b02070;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ── Responsive tweaks ───────────────────────────────────────────────────── */
@media (max-width: 1199px) {
  .pg-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .pg-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .pg-grid {
    grid-template-columns: 1fr;
  }
}