/* ================================================================
   College Showcase Plugin — Facilities + Programs Overview
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --cs-green:       #3d7a2d;
  --cs-green-light: #eef5ea;
  --cs-green-mid:   #5a9e47;
  --cs-transition:  0.32s cubic-bezier(.4,0,.2,1);
}

/* ══════════════════════════════════════════════════════
   FACILITIES SECTION
   Shortcode: [college_facilities]
   ══════════════════════════════════════════════════════ */

.fac-section {
  display: grid;
  grid-template-columns: 1fr 400px;
  grid-template-rows: 1fr;
  height: 520px;
  max-width: 1200px;
  margin: 48px auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 56px rgba(0,0,0,.14);
  position: relative;
  font-family: 'Inter', system-ui, sans-serif;
}

.fac-media {
  grid-column: 1 / -1;
  grid-row: 1;
  position: relative;
  overflow: hidden;
  background: #1a3010;
  height: 520px;
}

.fac-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: opacity 0.38s ease, transform 0.55s ease;
}

.fac-media::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to right,  rgba(0,0,0,.65) 0%, rgba(0,0,0,.28) 55%, rgba(0,0,0,.08) 100%),
    linear-gradient(to top,    rgba(0,0,0,.55) 0%, transparent 40%);
  z-index: 1; pointer-events: none;
}

.fac-overlay {
  position: absolute; top: 0; left: 0;
  padding: 40px 36px; z-index: 3; color: #fff; max-width: 460px;
}

.fac-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: #7ed957; margin-bottom: 14px;
}
.fac-eyebrow svg { width: 16px; height: 16px; }

.fac-overlay h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800;
  line-height: 1.25; margin: 0 0 12px; color: #fff;
}
.fac-overlay p { font-size: .88rem; line-height: 1.6; color: rgba(255,255,255,.8); margin: 0; }

/* Caption card */
.fac-caption {
  position: absolute; bottom: 28px; left: 28px; z-index: 3;
  background: rgba(255,255,255,.28);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 14px; padding: 16px 20px;
  display: flex; align-items: flex-start; gap: 14px;
  max-width: 360px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  transition: all var(--cs-transition);
}
.fac-caption-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--cs-green); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; color: #fff;
}
.fac-caption-icon svg { width: 20px; height: 20px; }
.fac-caption h4 { font-size: .88rem; font-weight: 700; color: #fff; margin: 0 0 4px; }
.fac-caption p  { font-size: .78rem; line-height: 1.5; color: rgba(255,255,255,.85); margin: 0; }

/* Buttons panel */
.fac-panel {
  grid-column: 2; grid-row: 1;
  position: relative; z-index: 3;
  display: flex; flex-direction: column;
  align-self: center;
  background: transparent;
}

.fac-list { list-style: none; margin: 0; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }

.fac-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; cursor: pointer;
  border-left: 3px solid transparent;
  border-radius: 12px;
  background: rgba(255,255,255,.30);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255,255,255,.45);
  box-shadow: 0 4px 16px rgba(0,0,0,.10);
  transition: background var(--cs-transition), border-color var(--cs-transition),
              box-shadow var(--cs-transition), transform var(--cs-transition);
}
.fac-item:hover {
  background: rgba(255,255,255,.50);
  border-color: rgba(255,255,255,.65);
  border-left-color: var(--cs-green-mid);
  box-shadow: 0 6px 24px rgba(0,0,0,.14);
  transform: translateX(3px);
}
.fac-item.active {
  background: rgba(12,12,12,.80);
  border-color: rgba(255,255,255,.12);
  border-left-color: var(--cs-green);
  box-shadow: 0 6px 24px rgba(0,0,0,.28);
}

.fac-icon {
  width: 44px; height: 44px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: var(--cs-green-light); color: var(--cs-green);
  border: 1px solid rgba(61,122,45,.15);
  transition: background var(--cs-transition), color var(--cs-transition);
}
.fac-item.active .fac-icon { background: var(--cs-green); color: #fff; border-color: var(--cs-green); }
.fac-item:hover:not(.active) .fac-icon { background: rgba(61,122,45,.2); }
.fac-icon svg { width: 21px; height: 21px; }

.fac-label {
  flex: 1; font-size: .86rem; font-weight: 600;
  color: #111; line-height: 1.35; transition: color var(--cs-transition);
}
.fac-item.active .fac-label { color: #fff; }

.fac-arrow {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,.18);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: #6b7280; transition: all var(--cs-transition);
}
.fac-item.active .fac-arrow { background: var(--cs-green); border-color: var(--cs-green); color: #fff; }
.fac-item:hover:not(.active) .fac-arrow { border-color: var(--cs-green); color: var(--cs-green); }
.fac-arrow svg { width: 12px; height: 12px; }

@media (max-width: 820px) {
  .fac-section { grid-template-columns: 1fr; height: auto; }
  .fac-media { height: 300px; }
  .fac-panel { grid-column: 1; grid-row: 2; background: #f4f6f2; padding: 8px 0; }
  .fac-item { border-radius: 10px; backdrop-filter: none; background: rgba(255,255,255,.9); border-color: #e5e7eb; }
  .fac-label { color: #111; }
}


/* ══════════════════════════════════════════════════════
   PROGRAMS OVERVIEW SECTION
   Shortcode: [college_programs]
   ══════════════════════════════════════════════════════ */

.po-section {
  font-family: 'Inter', system-ui, sans-serif;
  background: #f7f9f4;
  padding: 6px 32px;
  max-width: 100%;
  margin: 48px auto;
}

.po-divider {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; margin-bottom: 48px;
}
.po-divider::before, .po-divider::after {
  content: ''; width: 48px; height: 1.5px;
  background: #3d7a2d; opacity: .45;
}
.po-divider svg { flex-shrink: 0; }

.po-grid {
  display: grid;
  grid-template-columns: 1fr 200px 1fr;
  align-items: center;
  position: relative;
}

.po-left, .po-right { display: flex; flex-direction: column; gap: 22px; }
.po-left { padding-right: 44px; }
.po-right { padding-left: 44px; }

/* Center circle */
.po-center { display: flex; align-items: center; justify-content: center; position: relative; z-index: 3; }
.po-circle {
  width: 190px; height: 190px; border-radius: 50%;
  background: linear-gradient(145deg, #1e4a1e, #0d2b0d);
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; padding: 26px;
  box-shadow: 0 0 0 12px rgba(61,122,45,.10), 0 0 0 24px rgba(61,122,45,.05), 0 16px 48px rgba(0,0,0,.18);
}
.po-circle-leaf { width: 26px; height: 26px; color: #7ed957; margin-bottom: 8px; }
.po-circle h3 { font-size: .9rem; font-weight: 600; color: rgba(255,255,255,.82); margin: 0 0 2px; }
.po-circle span { font-size: 1.1rem; font-weight: 800; color: #7ed957; }
.po-circle p { font-size: .64rem; color: rgba(255,255,255,.45); margin: 8px 0 0; line-height: 1.55; }

/* Cards */
.po-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px 16px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  border: 1px solid #e4ede0;
  position: relative; cursor: pointer;
  text-decoration: none;
  transition: box-shadow .3s, transform .3s;
}
.po-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.11); transform: translateY(-2px); }

/* Connecting lines — left */
.po-left .po-card::after {
  content: ''; position: absolute;
  right: -45px; top: 50%; width: 44px; height: 0;
  border-top: 2px dashed currentColor; opacity: .45;
}
.po-left .po-card::before {
  content: ''; position: absolute;
  right: -50px; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor; z-index: 1; opacity: .7;
}
/* Connecting lines — right */
.po-right .po-card::after {
  content: ''; position: absolute;
  left: -45px; top: 50%; width: 44px; height: 0;
  border-top: 2px dashed currentColor; opacity: .45;
}
.po-right .po-card::before {
  content: ''; position: absolute;
  left: -50px; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor; z-index: 1; opacity: .7;
}

/* Icons */
.po-icon {
  width: 60px; height: 60px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
}
.po-right .po-icon {
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  border-radius: 0;
}
.po-icon svg { width: 26px; height: 26px; color: #fff; }

/* Card text */
.po-body { flex: 1; min-width: 0; }
.po-title { font-size: .88rem; font-weight: 700; margin: 0 0 5px; line-height: 1.3; }
.po-desc  { font-size: .75rem; color: #6b7280; line-height: 1.55; margin: 0; }

.po-arrow {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid currentColor;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; opacity: .55;
  transition: opacity .25s, background .25s, color .25s;
}
.po-card:hover .po-arrow { opacity: 1; background: currentColor; }
.po-card:hover .po-arrow svg { color: #fff; }
.po-arrow svg { width: 12px; height: 12px; }

@media (max-width: 860px) {
  .po-grid { grid-template-columns: 1fr; gap: 20px; }
  .po-left, .po-right { padding: 0; }
  .po-left .po-card::before, .po-left .po-card::after,
  .po-right .po-card::before, .po-right .po-card::after { display: none; }
  .po-center { margin: 16px auto; }
}
