@import url('https://fonts.googleapis.com/css2?family=Allison&family=Bebas+Neue&family=Dancing+Script:wght@400..700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Lora:ital,wght@0,400..700;1,400..700&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Noto+Serif:ital,wght@0,100..900;1,100..900&family=Passion+One:wght@400;700;900&family=Petit+Formal+Script&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Rubik:ital,wght@0,300..900;1,300..900&family=Tiny5&display=swap');


.gnc-college-programs {
    --gnc-green: #0b4228;
    --gnc-green-light: #1F5E2C;
    --gnc-green-dark: #08331e;
    --gnc-gold: #d3a63a;
    --gnc-cream: #f9f6f1;
    --gnc-text-dark: #202020;
    --gnc-text-gray: #6b6b66;
    --gnc-border: #e6e1d8;
    font-family: 'Noto Serif', serif;
    background-color: var(--gnc-cream);
}

/* ---------- Hero ---------- */
.cp-hero {
  position: relative;
  background-color: var(--gnc-cream);
  background-image: url('/assets/images/Section Header.png');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  border-bottom: 1px solid var(--gnc-border);
}

.cp-hero-inner {
  padding: 40px 15px 44px;
  max-width: 1200px;
  margin: 0 auto;
}

.cp-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gnc-gold);
  margin-bottom: 18px;
}

.cp-breadcrumb i {
    font-size: 10px;
    color: #d3a63a;
    opacity: 0.8;
}

.cp-hero h1 {
  font-family: 'Noto Serif', serif;
  font-weight: 700;
  color: var(--gnc-green-light);
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 10px;
}

.cp-hero p,
.cp-hero > .cms-rich {
  font-family: 'Inter', sans-serif;
  color: var(--gnc-text-gray);
  font-size: 15px;
  margin: 0;
}

/* ---------- Features bar ---------- */
.cp-features {
  font-family: 'Inter', sans-serif;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  transform: translateY(-28px);
}

.cp-features-box {
  background: var(--gnc-cream);
  border: 1px solid var(--gnc-border);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(11, 66, 40, 0.06);
  padding: 22px 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.cp-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 22px;
  border-right: 1px solid var(--gnc-border);
}

.cp-feature:last-child {
  border-right: none;
}

.cp-feature-icon {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gnc-green);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cp-feature-icon img {
  width: 40px;
  height: 40px;
}
.cp-feature-icon > i { color: #fff; font-size: 30px; line-height: 1; }
.cp-feature-icon > .material-symbols-outlined { color: #fff; font-size: 34px; line-height: 1; }
.cp-feature-icon:focus-visible { outline: 3px solid #d3a63a; outline-offset: 3px; }

.cp-feature-text h3 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--gnc-text-dark);
  margin: 0 0 3px;
}

.cp-feature-text p,
.cp-feature-text > .cms-rich {
  font-size: 12.5px;
  line-height: 1.35;
  color: black;
  margin: 0;
}

/* ---------- Colleges grid ---------- */
.cp-colleges {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 15px 70px;
}

.cp-college-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 60px;
}

.cp-college {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
}

.cp-college-logo {
  flex: none;
  width: 170px;
  height: 170px;
  object-fit: contain;
}

.cp-college-info h3 {
  font-family: 'Noto Serif', serif;
  font-size: 17px;
  font-weight: 700;
  color: black;
  margin: 0 0 8px;
}

.cp-college-info .cp-underline {
  display: block;
  width: 42px;
  height: 3px;
  background: var(--gnc-gold);
  margin: -4px 0 10px;
}

.cp-college-info p {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  line-height: 1.6;
  color: black;
  margin: 0 0 10px;
  max-width: 46ch;
}

.cp-view-link {
  font-family: 'Inter', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gnc-gold);
  text-decoration: none;
}

.cp-view-link i {
  transition: transform 0.2s ease;
}

.cp-view-link:hover {
  color: var(--gnc-green);
}

.cp-view-link:hover i {
  transform: translateX(3px);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .cp-hero {
    background-image: linear-gradient(180deg, rgba(249, 246, 241, 0.4) 0%, var(--gnc-cream) 85%),
      url('/assets/images/Section Header.png');
    background-position: center;
  }

  .cp-features-box {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 20px;
  }

  .cp-feature {
    border-right: none;
  }

  .cp-feature:nth-child(odd) {
    border-right: 1px solid var(--gnc-border);
  }

  .cp-college-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cp-college-logo {
    width: 130px;
    height: 130px;
  }
}

@media (max-width: 575px) {
  .cp-features-box {
    grid-template-columns: 1fr;
  }

  .cp-feature {
    border-right: none !important;
    border-bottom: 1px solid var(--gnc-border);
    padding: 16px 6px;
  }

  .cp-feature:last-child {
    border-bottom: none;
  }

  .cp-college {
    flex-direction: column;
  }

  .cp-college-logo {
    width: 110px;
    height: 110px;
  }
}

/* =====================================================================
   Colleges grid — Figma card design (.cd-*)
   Whole card is a single <a>; "View Programs" is the visual CTA.
   (The older .cp-college* rules above are no longer used by this page.)
   ===================================================================== */
.cd-colleges {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 15px 70px;
}

.cd-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.cd-card {
  --accent: #14609A;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(40, 30, 10, 0.08), 0 4px 14px rgba(40, 30, 10, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.cd-card--cased   { --accent: #135E95; }
.cd-card--coe     { --accent: #FD541B; }
.cd-card--coa     { --accent: #FED018; }
.cd-card--cba     { --accent: #FED018; }
.cd-card--camp    { --accent: #307056; }
.cd-card--nursing { --accent: #FFBDA7; }

.cd-card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 28px 24px;
  text-align: center;
}

.cd-logo-wrap {
  flex: none;
  width: 190px;
  height: 190px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cd-logo-empty[data-ve-basic-logo-id] {
  display: grid;
  place-items: center;
  color: #307056;
  cursor: pointer;
}

.cd-logo-empty {
  background: #f1ede6;
}

.cd-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.cd-title {
  font-family: 'Noto Serif', serif;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.3;
  color: #1b1b1b;
  margin: 0;
}

.cd-underline {
  display: block;
  width: 44px;
  height: 3px;
  border-radius: 2px;
  background: var(--gnc-gold);
  margin: 12px auto 18px;
}

.cd-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #222;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  margin: 0;
}

.cd-btn {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 48px;
  padding: 0 16px;
  background: var(--accent);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: filter 0.2s ease, gap 0.25s ease;
}

.cd-btn i {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-width 0.25s ease, opacity 0.25s ease;
}

/* Hover / focus feedback */
@media (hover: hover) {
  .cd-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 12px rgba(40, 30, 10, 0.10), 0 18px 36px rgba(40, 30, 10, 0.12);
  }
  .cd-card:hover .cd-btn { filter: brightness(0.92); gap: 8px; }
  .cd-card:hover .cd-btn i { max-width: 1.2em; opacity: 1; }
}

.cd-card:active { transform: translateY(-2px); }

.cd-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  transform: translateY(-4px);
}
.cd-card:focus-visible .cd-btn { gap: 8px; }
.cd-card:focus-visible .cd-btn i { max-width: 1.2em; opacity: 1; }

/* Cards: responsive */
@media (max-width: 991px) {
  .cd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .cd-logo-wrap { width: 160px; height: 160px; }
}

@media (max-width: 768px) {
  .cp-hero-inner {
    padding: 32px 18px 38px;
    text-align: center;
  }

  .cp-breadcrumb {
    justify-content: safe center;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .cp-hero h1,
  .cp-hero p,
  .cp-hero > .cms-rich,
  .cp-hero .cms-rich p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .cp-feature {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    padding: 14px 12px;
  }

  .cp-feature-text,
  .cp-feature-text h3,
  .cp-feature-text p,
  .cp-feature-text > .cms-rich,
  .cp-feature-text .cms-rich p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .cp-college {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .cp-college-info,
  .cp-college-info h3,
  .cp-college-info p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .cp-college-info .cp-underline {
    margin-left: auto;
    margin-right: auto;
  }

  .cd-card-body {
    padding: 24px 20px 20px;
    text-align: center;
    align-items: center;
  }

  .cd-title {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .cd-desc,
  .cd-desc p {
    text-align: center;
    hyphens: none;
    -webkit-hyphens: none;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 575px) {
  .cd-colleges { padding: 6px 16px 48px; }
  .cd-grid { grid-template-columns: 1fr; gap: 16px; max-width: 460px; margin: 0 auto; }
  .cd-card-body { padding: 24px 20px 20px; }
  .cd-logo-wrap { width: 150px; height: 150px; margin-bottom: 18px; }
  .cd-desc { font-size: 0.9rem; }
  .cd-btn { min-height: 52px; gap: 8px; }
  .cd-btn i { max-width: 1.2em; opacity: 1; }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes cp-fade-up {
  from { opacity: 0; translate: 0 24px; }
  to   { opacity: 1; translate: 0 0; }
}

@keyframes cp-scale-in {
  from { opacity: 0; scale: 0.92; translate: 0 16px; }
  to   { opacity: 1; scale: 1; translate: 0 0; }
}

@keyframes cp-icon-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -4px; }
}

/* Initial hidden state for animated elements */
.js-anim [data-reveal]:not(.is-visible) {
  opacity: 0;
}

/* Base fade-up applied when element becomes visible */
.js-anim [data-reveal].is-visible {
  animation: cp-fade-up 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  animation-delay: var(--d, 0ms);
}

/* Specialized pop-in scale for department cards */
.js-anim [data-reveal="scale"].is-visible {
  animation-name: cp-scale-in;
}

/* Floating animation removed */

/* Accessibility compliance */
@media (prefers-reduced-motion: reduce) {
  .js-anim [data-reveal].is-visible {
    animation: none !important;
  }
  .js-anim [data-reveal]:not(.is-visible) {
    opacity: 1;
  }
  .cd-card, .cd-btn, .cd-btn i { transition: none; }
  .cd-card:hover, .cd-card:focus-visible { transform: none; }
}
