/* =========================================================
   TCAES PG COLLEGE FINDER — COMPLETE UPDATED CSS
   ========================================================= */
:root {
  --navy: #0b2a5b;
  --navy-dark: #081a38;
  --maroon: #b32024;
  --green: #16a34a;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: #f8fafc;
  overflow-x: hidden;
}

button,
select,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.college-finder {

  padding: 0 20px 60px;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  overflow-x: hidden;
}

.finder-shell {
  max-width: 1280px;
  margin: 0 auto;
}

/* =========================================================
   BREADCRUMB PILL (CLEARS OVERHANGING LOGO & STANDS OUT)
   ========================================================= */
.ci-breadcrumb-wrap {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;

  /* background: linear-gradient(125deg, #071733 0%, #0b2a5b 55%, #5e1324 100%); */
  /* padding: 26px 5vw 4px; */
  padding: 0 5vw 0;
  max-height: 0;
  border-bottom: none;
}

.ci-breadcrumb.container {
  max-width: 100%;
  margin: 0;
  padding: 7px 16px;
  display: flex;
  justify-content: center;
}

.ci-breadcrumb {
  font-size: 13px;
  color: #ffffff;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  width: fit-content;

  background: rgba(6, 15, 34, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 7px 18px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);

  position: relative;
  top: 40px;
  z-index: 1;
}

.ci-breadcrumb a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  padding-left: 8px;
}

.ci-breadcrumb a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.ci-breadcrumb span {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

.ci-breadcrumb b {
  color: #ffff;
  background: var(--maroon);
  /* background: linear-gradient(135deg, #b32024 0%, #8a1f2d 100%); */
  /* border: 1px solid rgba(255, 180, 184, 0.4); */
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* =========================================================
   1. FULL-SCREEN HERO SECTION WITH MATCHING GRADIENT
   ========================================================= */
.section-heading.pg-hero-split {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  border-radius: 0;

  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;

  background:
    radial-gradient(circle at 88% 18%, rgba(179, 32, 36, 0.48) 0%, transparent 52%),
    linear-gradient(125deg, #071733 0%, #0b2a5b 48%, #5e1324 84%, #9e1c22 100%);

  /* background: radial-gradient(circle at 88% 18%, rgba(179, 32, 36, 0.48) 0%, transparent 52%), linear-gradient(125deg, #071733e3 0%, #0b2a5be6 48%, #5e1324e3 84%, #9e1c22 100%); */

  padding: 24px 5vw 44px;
  margin-bottom: 40px;
  box-shadow: 0 14px 36px rgba(11, 42, 91, 0.16);
}

.pg-hero-copy .eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  color: #ffdde0;
  border: 1px solid rgba(255, 180, 184, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.pg-hero-copy h1 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: clamp(28px, 3.3vw, 44px);
  line-height: 1.2;
  font-weight: 700;
}

.pg-hero-copy p {
  margin: 0 0 22px;
  color: #e2e8f0;
  font-size: 15.5px;
  line-height: 1.7;
  max-width: 720px;
}

.pg-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pg-hero-badges span {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 8px;
}

/* Right Form Box */
.pg-hero-form-box {
  background: #ffffff;
  color: var(--text);
  padding: 24px 22px;
  border-radius: 14px;
  border-top: 4px solid var(--maroon);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
}

.pg-form-header {
  margin-bottom: 16px;
}

.pg-form-tag {
  display: inline-block;
  background: #fff0f1;
  color: var(--maroon);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.pg-form-header h3 {
  margin: 0;
  color: var(--navy);
  font-size: 19px;
  font-weight: 700;
}

.pg-hero-form {
  display: grid;
  gap: 12px;
}

.pg-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pg-form-row-full {
  grid-template-columns: 1fr;
}

.pg-hero-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #334155;
  text-transform: uppercase;
}

.pg-hero-form input,
.pg-hero-form select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 13px;
  transition: 0.2s;
}

.pg-hero-form input:focus,
.pg-hero-form select:focus {
  outline: none;
  border-color: var(--navy);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(11, 42, 91, 0.1);
}

.pg-form-submit {
  width: 100%;
  height: 46px;
  margin-top: 4px;
  border: none;
  border-radius: 9px;
  background: linear-gradient(135deg, #b32024 0%, #0b2a5b 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pg-form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(179, 32, 36, 0.35);
}

/* =========================================================
   2. FILTER SECTION HEADER & SEARCH BAR
   ========================================================= */
.tcaes-finder-header {
  margin-bottom: 18px;
}

.tcaes-finder-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--maroon);
  background: #ffe4e6;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.tcaes-finder-header h2 {
  margin: 0 0 6px;
  font-size: clamp(22px, 2.6vw, 32px);
  color: var(--navy);
  font-weight: 700;
}

.tcaes-finder-header p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.desktop-filter-panel {
  background: #ffffff;
  border: 1px solid #dce3ed;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.tcaes-filter-bar {
  display: grid;
  grid-template-columns: 1fr 260px auto;
  gap: 12px;
  align-items: center;
}

.tcaes-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.tcaes-search-icon {
  position: absolute;
  left: 15px;
  color: #64748b;
  font-size: 15px;
  pointer-events: none;
}

.tcaes-search-wrap input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 42px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text);
  background: #f8fafc;
  transition: 0.2s;
}

.tcaes-search-wrap input:focus {
  outline: none;
  border-color: var(--navy);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(11, 42, 91, 0.08);
}

.tcaes-state-wrap select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  background: #f8fafc;
  cursor: pointer;
  transition: 0.2s;
}

.tcaes-state-wrap select:focus {
  outline: none;
  border-color: var(--navy);
  background: #ffffff;
}

.tcaes-reset-btn {
  height: 48px;
  padding: 0 24px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
  transition: 0.2s;
}

.tcaes-reset-btn:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
}

.tcaes-results-meta {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #e2e8f0;
  font-size: 14px;
  color: #475569;
}

.tcaes-results-meta strong {
  color: var(--maroon);
  font-size: 16px;
}

/* =========================================================
   3. COMPACT COLLEGE CARD DESIGN
   ========================================================= */
.college-grid-pg {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tcaes-college-card {
  background: #ffffff;
  border-radius: 13px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.05);
}

.tcaes-college-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(11, 42, 91, 0.14);
  border-color: #94a3b8;
}

/* Compact Image Banner */
.tcaes-card-media {
  position: relative;
  width: 100%;
  height: 150px;
  background: #0f172a;
  overflow: hidden;
}

.tcaes-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.tcaes-college-card:hover .tcaes-card-media img {
  transform: scale(1.06);
}

.tcaes-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 30%, rgba(15, 23, 42, 0.82) 100%);
}

.tcaes-type-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 5px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.tcaes-type-badge.is-private {
  background: var(--navy);
  color: #ffffff;
}

.tcaes-type-badge.is-deemed {
  background: var(--maroon);
  color: #ffffff;
}

.tcaes-location-badge {
  position: absolute;
  bottom: 9px;
  left: 12px;
  right: 12px;
  z-index: 2;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Compact Card Body */
.tcaes-card-body {
  padding: 13px 14px 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tcaes-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.tcaes-card-tags span {
  background: #f1f5f9;
  color: #475569;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

.tcaes-card-tags span.tcaes-tag-highlight.is-private {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.tcaes-card-tags span.tcaes-tag-highlight.is-deemed {
  background: #fff1f2;
  color: #be123c;
  border-color: #fecdd3;
}

.tcaes-card-title {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.34;
  font-weight: 700;
  color: var(--navy);
  border-left: 3px solid var(--maroon);
  padding-left: 8px;
}

/* Compact Action Buttons */
.tcaes-card-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.tcaes-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 36px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s;
}

.tcaes-btn-details {
  background: #eef2ff;
  color: var(--navy);
  border: 1px solid #c7d2fe;
}

.tcaes-btn-details:hover {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

.tcaes-btn-wa {
  background: var(--maroon);
  color: #ffffff;
}

.tcaes-btn-wa:hover {
  background: #8a1f2d;
  color: #ffffff;
}

/* Empty State & Disclaimer */
.empty-state {
  margin: 24px 0;
  padding: 32px 20px;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  text-align: center;
  background: #ffffff;
}

.empty-state strong {
  display: block;
  font-size: 17px;
  color: var(--navy);
  margin-bottom: 6px;
}

.empty-state span {
  display: block;
  color: var(--muted);
  margin-bottom: 14px;
  font-size: 13.5px;
}

.empty-state button {
  border: 0;
  background: var(--navy);
  color: #ffffff;
  border-radius: 8px;
  padding: 9px 18px;
  font-weight: 600;
}

.disclaimer-box {
  margin-top: 26px;
  padding: 15px 17px;
  border-left: 4px solid var(--maroon);
  background: #fff1f2;
  color: #4c0519;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.6;
}

/* =========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================= */
@media (max-width: 1024px) {
  .section-heading.pg-hero-split {
    grid-template-columns: 1fr;
    padding: 32px 4vw;
  }

  .college-grid-pg {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pg-hero-copy {
    margin-top: 40px;
  }
  .pg-hero-copy .eyebrow{
    margin-block: 14px;
  }
}

@media (max-width: 768px) {
  .ci-breadcrumb-wrap {
    /* padding-block: 6px 12px; */
    top: 15px;
  }
.pg-hero-copy .eyebrow{
  margin-block:25px 14px ;
}
  .ci-breadcrumb {
    top: 20px;
  }

  .college-finder {
    padding: 0 12px 50px;
  }

  .section-heading.pg-hero-split {
    padding: 36px 16px;
  }

  .tcaes-filter-bar {
    grid-template-columns: 1fr;
  }

  .college-grid-pg {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .pg-form-row {
    grid-template-columns: 1fr;
  }
}