/*
 * gc-carousel.css — Gossner College
 * ─────────────────────────────────────────────────────────────
 * Styles for the vanilla JS carousel (gc-carousel.js).
 * Add this file to your layout AFTER gc-modern.css.
 *
 * Also includes backwards-compat overrides for .owl-carousel
 * so existing HTML needs zero changes.
 * ─────────────────────────────────────────────────────────────
 */

/* ══════════════════════════════════════════════════
   CAROUSEL SHELL
   The outer element keeps position:relative so
   prev/next arrows position correctly.
══════════════════════════════════════════════════ */
.gc-carousel-init,
.owl-carousel.gc-carousel-init {
  position: relative;
  width: 100%;
  overflow: visible !important; /* allow arrows to sit outside */
  user-select: none;
  outline: none;
}

/* ══════════════════════════════════════════════════
   VIEWPORT — clips the sliding track
══════════════════════════════════════════════════ */
.gc-car-viewport {
  overflow: hidden;
  width: 100%;
  border-radius: 6px;
}

/* ══════════════════════════════════════════════════
   TRACK — the sliding row of items
══════════════════════════════════════════════════ */
.gc-car-track {
  display: flex;
  align-items: stretch;
  will-change: transform;
  cursor: grab;
}
.gc-car-track:active {
  cursor: grabbing;
}

/* ══════════════════════════════════════════════════
   ITEMS
══════════════════════════════════════════════════ */
.gc-car-item {
  flex-shrink: 0;
  box-sizing: border-box;
}
/* Prevent images inside items from being dragged */
.gc-car-item img,
.gc-car-item a {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: auto;
}
.gc-car-track:active .gc-car-item a,
.gc-car-track:active .gc-car-item img {
  pointer-events: none; /* prevent link fire during drag */
}

/* ══════════════════════════════════════════════════
   PREV / NEXT ARROWS
══════════════════════════════════════════════════ */
.gc-car-prev,
.gc-car-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  background: rgba(0, 77, 0, 0.82);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    opacity 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  padding: 0;
  line-height: 1;
}
.gc-car-prev:hover,
.gc-car-next:hover {
  background: #004d00;
  border-color: #c8a951;
  box-shadow: 0 4px 18px rgba(0,0,0,0.30);
  transform: translateY(-50%) scale(1.08);
}
.gc-car-prev:focus-visible,
.gc-car-next:focus-visible {
  outline: 3px solid #c8a951;
  outline-offset: 2px;
}
.gc-car-prev { left: -18px; }
.gc-car-next { right: -18px; }

/* On small screens bring arrows inside */
@media (max-width: 640px) {
  .gc-car-prev { left: 6px; }
  .gc-car-next { right: 6px; }
  .gc-car-prev,
  .gc-car-next {
    width: 32px;
    height: 32px;
    background: rgba(0,77,0,0.75);
  }
}

/* ══════════════════════════════════════════════════
   DOT INDICATORS
══════════════════════════════════════════════════ */
.gc-car-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.gc-car-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d0d0cc;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, width 0.25s ease;
}
.gc-car-dot.active {
  background: #004d00;
  transform: scale(1.25);
  width: 22px;               /* pill shape on active */
  border-radius: 10px;
}
.gc-car-dot:focus-visible {
  outline: 2px solid #c8a951;
  outline-offset: 2px;
}

/* ══════════════════════════════════════════════════
   ACTIVITY CARD ITEMS
   (the .gc-activity-card inside .item children)
══════════════════════════════════════════════════ */
.gc-car-item .gc-activity-card {
  margin: 4px 0 8px;         /* small breathing room */
  height: calc(100% - 12px);
}
.gc-car-item .gc-activity-card img {
  height: 175px;
  width: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
  border-radius: 6px 6px 0 0;
}
.gc-car-item .gc-activity-card:hover img {
  transform: scale(1.05);
}
.gc-car-item .gc-activity-card-body {
  padding: 10px 12px 14px;
  border-top: 2px solid #c8a951;
}
.gc-car-item .gc-activity-card-body h6 {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.45;
}

/* ══════════════════════════════════════════════════
   TESTIMONIAL CAROUSEL variant
══════════════════════════════════════════════════ */
.gc-carousel-testimonial .gc-car-prev,
.gc-carousel-testimonial .gc-car-next,
.testimonial-carousel-info.gc-carousel-init .gc-car-prev,
.testimonial-carousel-info.gc-carousel-init .gc-car-next {
  top: auto;
  bottom: -48px;
  transform: none;
  position: relative;
  left: auto; right: auto;
  display: inline-flex;
  margin: 0 6px;
}
.gc-carousel-testimonial .gc-car-viewport,
.testimonial-carousel-info.gc-carousel-init .gc-car-viewport {
  border-radius: 10px;
}

/* Testimonial card styles */
.gc-car-item .gc-testi-card {
  height: 100%;
  border-radius: 10px;
  padding: 22px;
  background: #004d00;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-bottom: 3px solid #c8a951;
  box-sizing: border-box;
}

/* ══════════════════════════════════════════════════
   LOGO / RECRUITER CAROUSEL variant
══════════════════════════════════════════════════ */
.gc-carousel-logos .gc-car-item,
.gc-carousel-logos .gc-car-item img {
  display: flex;
  align-items: center;
  justify-content: center;
}
.gc-carousel-logos .gc-car-item img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: grayscale(30%) opacity(0.75);
  transition: filter 0.2s ease, transform 0.2s ease;
}
.gc-carousel-logos .gc-car-item img:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.08);
}

/* ══════════════════════════════════════════════════
   HERO CAROUSEL variant
   (used if you convert the hero slider to gc-carousel)
══════════════════════════════════════════════════ */
.gc-carousel-hero .gc-car-viewport {
  border-radius: 0;
  height: 520px;
}
.gc-carousel-hero .gc-car-track {
  height: 100%;
}
.gc-carousel-hero .gc-car-item {
  height: 100%;
}
.gc-carousel-hero .gc-car-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gc-carousel-hero .gc-car-prev { left: 16px; }
.gc-carousel-hero .gc-car-next { right: 16px; }
.gc-carousel-hero .gc-car-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  z-index: 5;
}
.gc-carousel-hero .gc-car-dot { background: rgba(255,255,255,0.45); }
.gc-carousel-hero .gc-car-dot.active { background: #c8a951; }

@media (max-width: 991px) { .gc-carousel-hero .gc-car-viewport { height: 380px; } }
@media (max-width: 575px) { .gc-carousel-hero .gc-car-viewport { height: 240px; } }

/* ══════════════════════════════════════════════════
   OWL CAROUSEL BACKWARDS COMPAT
   These reset the old .owl-carousel shell styles so
   gc-carousel.js layout works correctly.
══════════════════════════════════════════════════ */
.owl-carousel.gc-carousel-init {
  display: block !important;
}
/* Kill old owl ghost styles if owl CSS is somehow still loaded */
.owl-carousel.gc-carousel-init .owl-stage-outer,
.owl-carousel.gc-carousel-init .owl-stage,
.owl-carousel.gc-carousel-init .owl-item {
  all: unset;
}

/* ══════════════════════════════════════════════════
   ACTIVITIES SECTION LAYOUT FIX
   Gives the carousel container enough padding for
   the outside arrows to not clip.
══════════════════════════════════════════════════ */
.gc-activities-section .gc-carousel-init,
.gc-activities-section .owl-carousel.gc-carousel-init {
  padding: 0 22px;
}
@media (max-width: 640px) {
  .gc-activities-section .gc-carousel-init,
  .gc-activities-section .owl-carousel.gc-carousel-init {
    padding: 0 6px;
  }
}

/* ══════════════════════════════════════════════════
   REDUCED MOTION
══════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .gc-car-track {
    transition: none !important;
  }
  .gc-car-prev,
  .gc-car-next {
    transition: none !important;
  }
}
