/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--blue-700);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--blue-500);
  color: var(--white);
}
.btn-secondary {
  background: var(--green-700);
  color: var(--white);
}
.btn-secondary:hover {
  background: var(--green-500);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--blue-700);
  border-color: var(--blue-700);
}
.btn-outline:hover {
  background: var(--blue-100);
  color: var(--blue-700);
}
.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}
.btn-block {
  width: 100%;
  justify-content: center;
}
.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--blue-700);
}
.card-icon svg {
  width: 26px;
  height: 26px;
}
.card-icon.green {
  background: var(--green-100);
  color: var(--green-700);
}

/* Colorful gradient badges for the homepage Six Pillars */
.pillar-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  color: var(--white);
  box-shadow: 0 8px 18px -6px rgba(15, 44, 76, 0.35);
}
.pillar-icon svg {
  width: 30px;
  height: 30px;
}
.pillar-1 { background: linear-gradient(145deg, var(--blue-700), var(--blue-500)); }
.pillar-2 { background: linear-gradient(145deg, #0f766e, #2dd4bf); }
.pillar-3 { background: linear-gradient(145deg, var(--green-700), var(--green-500)); }
.pillar-4 { background: linear-gradient(145deg, #5b3fa0, #8b6cd6); }
.pillar-5 { background: linear-gradient(145deg, #b8860b, var(--gold-accent)); }
.pillar-6 { background: linear-gradient(145deg, #c2410c, #ea7c4a); }

.grid {
  display: grid;
  gap: 24px;
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--blue-100);
  color: var(--blue-700);
}
.badge.green {
  background: var(--green-100);
  color: var(--green-700);
}
.badge.gold {
  background: #fbf1dd;
  color: #8a6414;
}
.badge.status-paid {
  background: var(--green-100);
  color: var(--green-700);
}
.badge.status-unpaid {
  background: #fbeaea;
  color: #b3261e;
}
.badge.status-partial {
  background: #fbf1dd;
  color: #8a6414;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--blue-900), var(--blue-700));
  color: var(--white);
  padding: 84px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero-video {
  min-height: 560px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}
.hero-content {
  max-width: 640px;
}
.hero h1 {
  color: var(--white);
}
.hero p.lede {
  color: var(--blue-100);
  font-size: 1.1rem;
  max-width: 520px;
}
.hero-panel-box {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(29, 78, 137, 0.8);
  backdrop-filter: blur(3px);
  padding: 36px 44px;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  max-width: 560px;
}
@media (max-width: 700px) {
  .hero-panel-box {
    position: static;
    transform: none;
    max-width: none;
    width: 100%;
    border-radius: 0;
  }
}
.hero-video .eyebrow {
  color: var(--green-100);
}
.hero-video h1 {
  color: var(--white);
}
.hero-video p.lede {
  color: var(--blue-100);
  font-size: 1.15rem;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--green-700);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2,
.cta-band p {
  color: var(--white);
}
.cta-band-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 700px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.field.full {
  grid-column: 1 / -1;
}
.field label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--blue-900);
}
.field .hint {
  font-size: 0.78rem;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--blue-500);
  border-color: var(--blue-500);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #b3261e;
}
.field-error {
  color: #b3261e;
  font-size: 0.8rem;
}
textarea {
  resize: vertical;
  min-height: 110px;
}

.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.92rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.alert-success {
  background: var(--green-100);
  color: var(--green-700);
  border: 1px solid #b7dfc7;
}
.alert-error {
  background: #fbeaea;
  color: #b3261e;
  border: 1px solid #f1bfbf;
}

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}
table.data-table {
  width: 100%;
  min-width: 560px;
}
table.data-table th,
table.data-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
table.data-table th {
  background: var(--blue-100);
  color: var(--blue-900);
  font-weight: 700;
}
table.data-table tbody tr:last-child td {
  border-bottom: none;
}
table.data-table tbody tr:hover {
  background: var(--paper);
}

/* ---------- Tabs ---------- */
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.tab-link {
  padding: 12px 18px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.tab-link:hover {
  color: var(--blue-700);
  text-decoration: none;
}
.tab-link.active {
  color: var(--blue-700);
  border-color: var(--blue-700);
}

/* ---------- Gallery placeholder tiles ---------- */
.gallery-tile {
  border-radius: var(--radius-lg);
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--white);
  text-align: center;
  padding: 20px;
}
.gallery-tile.theme-blue {
  background: linear-gradient(155deg, var(--blue-700), var(--blue-900));
}
.gallery-tile.theme-green {
  background: linear-gradient(155deg, var(--green-500), var(--green-700));
}
.gallery-tile svg {
  width: 34px;
  height: 34px;
}
.gallery-tile .cap {
  font-weight: 600;
}
.gallery-tile-photo {
  position: relative;
  background-size: cover;
  background-position: center;
  border: none;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
}
.gallery-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 44, 76, 0.15), rgba(15, 44, 76, 0.75));
}
.gallery-tile-photo .cap,
.gallery-tile-photo .placeholder-note {
  position: relative;
  z-index: 1;
}
.gallery-tile-photo:hover {
  transform: translateY(-2px);
  transition: transform 0.2s ease;
}

/* ---------- Gallery lightbox ---------- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 44, 76, 0.92);
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox-overlay[hidden] {
  display: none;
}
.lightbox-content {
  max-width: 900px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: var(--radius-md);
  object-fit: contain;
}
.lightbox-caption {
  color: var(--white);
  font-size: 0.9rem;
  text-align: center;
}
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
}
.lightbox-nav {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: var(--white);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}
@media (max-width: 700px) {
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
}
.placeholder-note {
  font-size: 0.72rem;
  opacity: 0.85;
}

.campus-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 190px;
}
.campus-photo img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
}

/* ---------- Avatar ---------- */
.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--white);
  background: var(--blue-700);
  overflow: hidden;
  flex-shrink: 0;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Testimonial ---------- */
.testimonial {
  border-left: 4px solid var(--green-500);
  padding-left: 20px;
}
.testimonial p {
  font-style: italic;
}
.testimonial .who {
  font-weight: 600;
  color: var(--blue-900);
  font-style: normal;
}
.testimonial-blue { background: var(--blue-100); border-left-color: var(--blue-700); }
.testimonial-green { background: var(--green-100); border-left-color: var(--green-700); }
.testimonial-gold { background: #FBF1DD; border-left-color: var(--gold-accent); }

.ceo-message {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px;
  background: var(--blue-100);
  border-left-color: var(--blue-700);
}
.ceo-message p {
  font-style: normal;
  font-size: 1rem;
}
.coordinator-message {
  text-align: center;
  border-left: none;
  background: var(--blue-900);
}
.coordinator-photo {
  width: 190px;
  height: 190px;
  min-width: 190px;
  max-width: 190px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-md);
}
.coordinator-message p {
  font-style: italic;
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 16px;
  color: var(--blue-100);
}
.coordinator-message .who {
  color: var(--white);
}
.coordinator-message .who span {
  color: var(--blue-100) !important;
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}
.timeline-item {
  position: relative;
  margin-bottom: 28px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green-500);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--green-500);
}

/* ---------- Print button ---------- */
.print-only {
  display: none;
}

/* ---------- Admissions popup ---------- */
.admissions-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 44, 76, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}
.admissions-popup-overlay[hidden] {
  display: none;
}
.admissions-popup-box {
  position: relative;
  max-width: 420px;
  width: 100%;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--white);
  animation: popupOpen 1.1s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: center center;
}
@keyframes popupOpen {
  from {
    transform: scale(0.1);
  }
  to {
    transform: scale(1);
  }
}
.admissions-popup-box img {
  width: 100%;
  max-height: 90vh;
  object-fit: contain;
  display: block;
}
.admissions-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  color: var(--blue-900);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  z-index: 1;
}
.admissions-popup-close:hover {
  background: var(--blue-100);
}
