
.tafe-wrap{
  max-width:1180px;margin:32px auto;padding:0 14px;font-family:inherit;color:#1b2430
}
.tafe-head{
  padding:26px 28px;border:1px solid #e7ebf0;border-radius:22px;background:linear-gradient(180deg,#fff,#fafbfc);
  box-shadow:0 14px 35px rgba(17,24,39,.06);margin-bottom:18px
}
.tafe-eyebrow{
  display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;
  background:#f2f4f7;border:1px solid #e4e7ec;border-radius:999px;padding:7px 10px;margin-bottom:12px;color:#475467
}
.tafe-head h2{font-size:34px;line-height:1.15;margin:0 0 10px;font-weight:800;letter-spacing:-.02em}
.tafe-head p{font-size:16px;line-height:1.7;margin:0;color:#667085}
.tafe-searchbar{position:relative;margin-top:16px}
.tafe-searchbar input{
  width:100%;font-size:17px;padding:16px 18px 16px 48px;border:1px solid #d0d5dd;border-radius:16px;background:#fff;outline:none;
  box-shadow:0 8px 22px rgba(17,24,39,.04);transition:.2s
}
.tafe-wrap[data-lang="ar"] .tafe-searchbar input{padding:16px 48px 16px 18px}
.tafe-searchbar input:focus{border-color:#98a2b3;box-shadow:0 0 0 4px rgba(152,162,179,.14)}
.tafe-search-icon{position:absolute;left:17px;top:50%;transform:translateY(-50%);font-size:24px;color:#98a2b3;pointer-events:none}
.tafe-wrap[data-lang="ar"] .tafe-search-icon{left:auto;right:17px}
.tafe-results{margin-top:22px}
.tafe-program{
  border:1px solid #e4e7ec;border-radius:20px;background:#fff;padding:20px;margin:0 0 22px;
  box-shadow:0 12px 30px rgba(17,24,39,.05)
}
.tafe-program-title{display:flex;gap:16px;align-items:flex-start;justify-content:space-between;border-bottom:1px solid #eef1f4;padding-bottom:15px;margin-bottom:16px}
.tafe-program-title h3{font-size:22px;line-height:1.35;margin:0;font-weight:800}
.tafe-en-name{font-size:14px;color:#667085;margin-top:5px}
.tafe-count{white-space:nowrap;font-size:13px;font-weight:700;background:#f8f9fb;border:1px solid #eaecf0;padding:7px 10px;border-radius:999px;color:#475467}
.tafe-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.tafe-card{
  border:1px solid #e4e7ec;border-radius:16px;padding:17px;background:#fff;display:flex;gap:14px;justify-content:space-between;align-items:center;
  transition:.18s;min-height:136px
}
.tafe-card:hover{transform:translateY(-2px);box-shadow:0 12px 24px rgba(17,24,39,.07);border-color:#d0d5dd}
.tafe-card-main{min-width:0}
.tafe-university-badge{display:inline-flex;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:#667085;background:#f9fafb;border:1px solid #eaecf0;border-radius:999px;padding:5px 8px;margin-bottom:8px}
.tafe-card h4{font-size:18px;line-height:1.45;margin:0;font-weight:750;word-break:break-word}
.tafe-tuition{margin-top:13px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.tafe-tuition-label{font-size:13px;color:#667085}
.tafe-tuition strong{font-size:15px;padding:6px 9px;border-radius:9px;background:#f7f8fa;border:1px solid #eceff3}
.tafe-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.tafe-btn{border-radius:10px;padding:9px 13px;font-size:14px;font-weight:700;transition:.2s}
.tafe-btn-secondary{border:1px solid #d0d5dd;background:#fff;color:#344054}
.tafe-btn-primary{border:1px solid #101828;background:#101828;color:#fff}
.tafe-btn:disabled{opacity:.46;cursor:not-allowed}
.tafe-loading,.tafe-empty{padding:18px 20px;border-radius:14px;background:#f8f9fb;border:1px solid #eceff3;color:#667085}
.tafe-wrap[data-lang="ar"]{direction:rtl}
.tafe-wrap[data-lang="ar"] .tafe-en-name{direction:ltr;text-align:right}
.tafe-wrap[data-lang="ar"] .tafe-actions{justify-content:flex-start}
@media(max-width:800px){
  .tafe-head{padding:20px}
  .tafe-head h2{font-size:28px}
  .tafe-grid{grid-template-columns:1fr}
  .tafe-card{align-items:flex-start;flex-direction:column}
  .tafe-actions{width:100%;justify-content:flex-start}
  .tafe-btn{flex:1}
}

.tafe-direct-universities{border-color:#d7dde5}
.tafe-university-card{min-height:180px}
.tafe-mini-programs{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.tafe-mini-programs span{font-size:12px;line-height:1.3;padding:6px 8px;border-radius:999px;background:#f5f7fa;border:1px solid #e5e9ef;color:#4b5565}
.tafe-mini-programs .tafe-more{font-weight:700}

.tafe-university-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start}
.tafe-university-card .tafe-program-panel{grid-column:1/-1;width:100%}
.tafe-program-panel{display:none;margin-top:14px;border-top:1px solid #eceff3;padding-top:16px}
.tafe-program-panel.is-open{display:block}
.tafe-program-panel-inner{background:#fafbfc;border:1px solid #e5e9ef;border-radius:14px;padding:16px}
.tafe-program-panel-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:14px}
.tafe-panel-kicker{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#7a8494;font-weight:800;margin-bottom:4px}
.tafe-program-panel-head h5{font-size:20px;line-height:1.35;margin:0;color:#1f2937}
.tafe-panel-count{font-size:12px;font-weight:800;padding:7px 9px;border:1px solid #e1e6ec;background:#fff;border-radius:999px;white-space:nowrap}
.tafe-program-filter-wrap{margin-bottom:14px}
.tafe-program-filter{width:100%;padding:12px 14px;border:1px solid #d8dee7;border-radius:11px;background:#fff;font-size:14px;outline:none}
.tafe-program-filter:focus{border-color:#aab4c2;box-shadow:0 0 0 3px rgba(152,162,179,.12)}
.tafe-program-group{margin-top:14px}
.tafe-program-group h6{font-size:14px;line-height:1.4;margin:0 0 8px;padding:8px 10px;border-radius:9px;background:#eef2f6;color:#344054}
.tafe-program-row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:13px 4px;border-bottom:1px solid #e8ecf1}
.tafe-program-row:last-child{border-bottom:0}
.tafe-program-row-main{min-width:0}
.tafe-program-row-main strong{display:block;font-size:15px;line-height:1.45;color:#1f2937}
.tafe-row-meta{display:flex;gap:12px;flex-wrap:wrap;margin-top:7px;font-size:12px;color:#667085}
.tafe-row-actions{display:flex;gap:8px;flex-wrap:wrap}
.tafe-apply-link{text-decoration:none!important;display:inline-flex;align-items:center;justify-content:center}
.tafe-btn-primary:not([disabled]){opacity:1}
@media(max-width:800px){
  .tafe-university-card{grid-template-columns:1fr}
  .tafe-university-card .tafe-program-panel{grid-column:1}
  .tafe-program-row{align-items:flex-start;flex-direction:column}
  .tafe-row-actions{width:100%}
  .tafe-row-actions .tafe-btn{flex:1}
  .tafe-program-panel-head{flex-direction:column}
}

/* v0.1.10: consistent action alignment */
.tafe-program-row{
  grid-template-columns:minmax(0,1fr) 130px 228px;
}
.tafe-program-row-actions{
  width:228px;
  display:grid;
  grid-template-columns:104px 116px;
  gap:8px;
  align-items:center;
  justify-content:end;
}
.tafe-program-row-actions .tafe-btn,
.tafe-program-row-actions .tafe-apply-form,
.tafe-program-row-actions .tafe-apply-form .tafe-btn{
  width:100%;
  margin:0;
}
.tafe-apply-form{
  display:block;
  margin:0;
}
.tafe-program-row-actions .tafe-btn{
  min-height:42px;
  white-space:nowrap;
}
@media(max-width:900px){
  .tafe-program-row{grid-template-columns:minmax(0,1fr) 110px 210px}
  .tafe-program-row-actions{width:210px;grid-template-columns:96px 106px}
}
@media(max-width:700px){
  .tafe-program-row{grid-template-columns:1fr}
  .tafe-program-row-actions{width:100%;grid-template-columns:1fr 1fr}
}

/* v0.1.11 stability + alignment */
.tafe-row-actions,
.tafe-actions{
  display:grid !important;
  grid-template-columns:110px 126px;
  gap:10px;
  align-items:center;
  justify-content:end;
}
.tafe-row-actions .tafe-btn,
.tafe-row-actions .tafe-apply-form,
.tafe-row-actions .tafe-apply-form .tafe-btn,
.tafe-actions .tafe-btn,
.tafe-actions .tafe-apply-form,
.tafe-actions .tafe-apply-form .tafe-btn{
  width:100%;
  margin:0;
}
.tafe-apply-form{display:block;margin:0}
.tafe-row-actions .tafe-btn,
.tafe-actions .tafe-btn{min-height:42px;white-space:nowrap}
@media(max-width:700px){
  .tafe-row-actions,.tafe-actions{grid-template-columns:1fr 1fr;width:100%}
}

/* v0.1.12 compare + university type */
.tafe-type-line,.tafe-panel-type{
  display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-top:10px;font-size:13px;color:#667085
}
.tafe-type-line strong,.tafe-panel-type strong{color:#344054}
.tafe-btn-secondary.is-selected{
  background:#eef2f6;border-color:#98a2b3;color:#101828
}
.tafe-compare-tray{
  position:fixed;left:50%;bottom:22px;transform:translateX(-50%);z-index:9997;
  width:min(720px,calc(100vw - 30px));background:#101828;color:#fff;border-radius:16px;
  padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:14px;
  box-shadow:0 18px 45px rgba(16,24,40,.28)
}
.tafe-compare-tray[hidden]{display:none!important}
.tafe-compare-tray-main{display:flex;align-items:center;gap:9px}
#tafe-compare-count{display:inline-flex;min-width:28px;height:28px;align-items:center;justify-content:center;border-radius:999px;background:#fff;color:#101828;font-weight:800}
.tafe-compare-tray-actions{display:flex;gap:8px}
.tafe-compare-tray .tafe-btn-secondary{background:transparent;color:#fff;border-color:#667085}
.tafe-compare-tray .tafe-btn-primary{background:#fff;color:#101828;border-color:#fff}
.tafe-compare-modal{position:fixed;inset:0;z-index:9999}
.tafe-compare-modal[hidden]{display:none!important}
.tafe-compare-backdrop{position:absolute;inset:0;background:rgba(16,24,40,.5);backdrop-filter:blur(3px)}
.tafe-compare-dialog{
  position:relative;z-index:2;width:min(1100px,calc(100vw - 32px));max-height:84vh;overflow:auto;
  margin:7vh auto 0;background:#fff;border-radius:22px;padding:22px;box-shadow:0 24px 70px rgba(0,0,0,.24)
}
.tafe-compare-dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:18px}
.tafe-compare-dialog-head h3{font-size:26px;margin:3px 0 0}
.tafe-compare-close{border:0;background:#f2f4f7;border-radius:999px;width:38px;height:38px;font-size:26px;line-height:1;cursor:pointer}
.tafe-compare-table{min-width:720px;border:1px solid #e4e7ec;border-radius:14px;overflow:hidden}
.tafe-compare-row{display:grid;grid-template-columns:180px repeat(4,minmax(180px,1fr));border-bottom:1px solid #eaecf0}
.tafe-compare-row:last-child{border-bottom:0}
.tafe-compare-row>div{padding:14px;border-right:1px solid #eaecf0}
.tafe-compare-row>div:last-child{border-right:0}
.tafe-compare-header{background:#f8fafc;font-weight:800}
.tafe-compare-label{font-weight:700;background:#fbfcfd}
body.tafe-modal-open{overflow:hidden}
@media(max-width:700px){
 .tafe-compare-tray{bottom:10px}
 .tafe-compare-tray{align-items:stretch;flex-direction:column}
 .tafe-compare-tray-actions .tafe-btn{flex:1}
 .tafe-compare-dialog{padding:14px;margin-top:4vh}
}

/* v0.1.13 — richer visual system + floating section navigator */
.tafe-wrap{
  --tafe-ink:#172033;
  --tafe-muted:#667085;
  --tafe-border:#e7e9ef;
  --tafe-soft:#f7f8fb;
  --tafe-accent:#d9a728;
  --tafe-accent-soft:#fff8e7;
  --tafe-navy:#202a44;
  --tafe-blue-soft:#eef4ff;
  --tafe-lilac:#f4f0ff;
  background:
    radial-gradient(circle at 8% 0%, rgba(217,167,40,.08), transparent 26%),
    radial-gradient(circle at 92% 10%, rgba(64,97,170,.07), transparent 28%);
  border-radius:28px;
  padding-top:20px;
  padding-bottom:28px;
}
.tafe-head{
  position:relative;
  overflow:hidden;
  border-color:rgba(32,42,68,.08);
  background:
    linear-gradient(135deg,rgba(255,255,255,.98),rgba(248,250,255,.96));
}
.tafe-head:before{
  content:"";
  position:absolute;
  width:180px;height:180px;border-radius:50%;
  right:-70px;top:-75px;
  background:linear-gradient(135deg,rgba(217,167,40,.15),rgba(70,92,160,.08));
}
.tafe-eyebrow{
  background:var(--tafe-accent-soft);
  border-color:#f1dfae;
  color:#73580e;
}
.tafe-searchbar input{
  border:1px solid #dfe3ea;
  box-shadow:0 12px 28px rgba(32,42,68,.06);
}
.tafe-results-layout{
  display:grid;
  grid-template-columns:230px minmax(0,1fr);
  gap:18px;
  align-items:start;
}
.tafe-floating-index{
  position:sticky;
  top:92px;
  max-height:calc(100vh - 120px);
  z-index:10;
}
.tafe-floating-index[hidden]{display:none!important}
.tafe-index-card{
  background:rgba(255,255,255,.95);
  border:1px solid var(--tafe-border);
  border-radius:18px;
  padding:14px;
  box-shadow:0 12px 34px rgba(27,36,48,.07);
  backdrop-filter:blur(9px);
}
.tafe-index-kicker{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#8a6c17;
  font-weight:800;
  margin-bottom:4px;
}
.tafe-index-title{
  font-size:17px;
  font-weight:800;
  color:var(--tafe-ink);
  margin-bottom:11px;
}
.tafe-index-links{
  display:flex;
  flex-direction:column;
  gap:5px;
  max-height:calc(100vh - 220px);
  overflow:auto;
  padding-right:3px;
}
.tafe-index-link{
  text-align:left;
  border:0;
  background:transparent;
  color:#667085;
  padding:9px 10px;
  border-radius:10px;
  font-size:13px;
  line-height:1.35;
  cursor:pointer;
  transition:.18s ease;
  position:relative;
}
.tafe-wrap[data-lang="ar"] .tafe-index-link{text-align:right}
.tafe-index-link:hover{
  background:#f6f7fa;
  color:#2c3446;
}
.tafe-index-link.is-active{
  background:linear-gradient(90deg,var(--tafe-accent-soft),#fff);
  color:#5a4610;
  font-weight:800;
  box-shadow:inset 3px 0 0 var(--tafe-accent);
}
.tafe-wrap[data-lang="ar"] .tafe-index-link.is-active{
  box-shadow:inset -3px 0 0 var(--tafe-accent);
}
.tafe-results{
  min-width:0;
}
.tafe-result-section{
  scroll-margin-top:110px;
  border-color:#e8ebf1;
  background:
    linear-gradient(180deg,#fff 0%,#fff 70%,#fbfcff 100%);
  box-shadow:0 14px 34px rgba(32,42,68,.055);
}
.tafe-program-title{
  position:relative;
}
.tafe-program-title:before{
  content:"";
  position:absolute;
  left:0;
  bottom:-16px;
  width:58px;
  height:3px;
  border-radius:99px;
  background:linear-gradient(90deg,var(--tafe-accent),#f1d58a);
}
.tafe-wrap[data-lang="ar"] .tafe-program-title:before{left:auto;right:0}
.tafe-program-title h3{
  color:var(--tafe-navy);
  letter-spacing:-.015em;
}
.tafe-count{
  background:var(--tafe-blue-soft);
  border-color:#dfe8ff;
  color:#37517f;
}
.tafe-card{
  background:
    linear-gradient(145deg,#fff,#fbfcff);
  border-color:#e7eaf0;
}
.tafe-card:hover{
  border-color:#d8deea;
  box-shadow:0 16px 30px rgba(32,42,68,.08);
}
.tafe-university-badge{
  background:var(--tafe-lilac);
  border-color:#e7defb;
  color:#68558f;
}
.tafe-tuition strong{
  background:var(--tafe-accent-soft);
  border-color:#f0dfb5;
  color:#6b5310;
}
.tafe-type-line strong,.tafe-panel-type strong{
  background:#eef7f4;
  color:#316258;
  padding:3px 7px;
  border-radius:7px;
}
.tafe-btn-primary{
  background:linear-gradient(135deg,#222d49,#324263);
  border-color:#222d49;
  box-shadow:0 7px 16px rgba(34,45,73,.16);
}
.tafe-btn-secondary{
  background:#fff;
}
.tafe-btn-secondary.is-selected{
  background:var(--tafe-accent-soft);
  border-color:#e4c86f;
  color:#634d0c;
}
.tafe-program-row{
  border-color:#e8ebf0;
  transition:.17s ease;
}
.tafe-program-row:hover{
  border-color:#d9dee7;
  background:#fffdf8;
}
@media(max-width:980px){
  .tafe-results-layout{grid-template-columns:1fr}
  .tafe-floating-index{
    position:sticky;
    top:76px;
    max-height:none;
    z-index:20;
  }
  .tafe-index-card{padding:10px 12px}
  .tafe-index-title,.tafe-index-kicker{display:none}
  .tafe-index-links{
    flex-direction:row;
    overflow:auto;
    max-height:none;
    padding-bottom:2px;
  }
  .tafe-index-link{
    white-space:nowrap;
    flex:0 0 auto;
  }
  .tafe-index-link.is-active{
    box-shadow:inset 0 -3px 0 var(--tafe-accent);
  }
}
@media(max-width:700px){
  .tafe-wrap{border-radius:18px;padding-left:8px;padding-right:8px}
  .tafe-head{border-radius:18px}
}

/* v0.1.14 — mobile dual navigation */
.tafe-mobile-index-dropdown{
  display:none;
  margin-top:8px;
}
.tafe-index-toggle{
  width:100%;
  border:1px solid #e1e5eb;
  background:#fff;
  color:#344054;
  border-radius:12px;
  padding:11px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 5px 14px rgba(32,42,68,.04);
}
.tafe-index-chevron{
  font-size:18px;
  line-height:1;
  transition:transform .18s ease;
}
.tafe-index-toggle.is-open .tafe-index-chevron{
  transform:rotate(180deg);
}
.tafe-index-drawer{
  margin-top:7px;
  border:1px solid #e4e7ec;
  background:#fff;
  border-radius:13px;
  padding:7px;
  max-height:50vh;
  overflow:auto;
  box-shadow:0 12px 28px rgba(32,42,68,.08);
}
.tafe-index-drawer[hidden]{display:none!important}
.tafe-index-drawer-link{
  width:100%;
  text-align:left;
  border:0;
  background:transparent;
  color:#5f6878;
  padding:10px 11px;
  border-radius:9px;
  font-size:13px;
  line-height:1.35;
  cursor:pointer;
}
.tafe-wrap[data-lang="ar"] .tafe-index-drawer-link{text-align:right}
.tafe-index-drawer-link:hover{
  background:#f7f8fb;
  color:#202a44;
}
.tafe-index-drawer-link.is-active{
  background:var(--tafe-accent-soft);
  color:#5f4a0f;
  font-weight:800;
}
@media(max-width:980px){
  .tafe-index-links{
    display:flex;
    flex-direction:row;
    gap:6px;
    overflow-x:auto;
    overflow-y:hidden;
    scroll-behavior:smooth;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:thin;
    overscroll-behavior-x:contain;
    scroll-snap-type:x proximity;
    padding:2px 2px 5px;
  }
  .tafe-index-link{
    white-space:nowrap;
    flex:0 0 auto;
    scroll-snap-align:center;
  }
  .tafe-mobile-index-dropdown{
    display:block;
  }
}

/* v0.1.15 — clearer typography + single-line university/type text */
.tafe-wrap{
  font-family:Inter, "Segoe UI", Roboto, Arial, sans-serif;
  font-size:16px;
}
.tafe-head h2{
  font-size:36px;
  font-weight:800;
}
.tafe-head p{
  font-size:17px;
}
.tafe-card h4,
.tafe-program-row h5,
.tafe-program-title h3{
  font-weight:800;
  color:#172033;
}
.tafe-card h4{
  font-size:18px;
  line-height:1.35;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:100%;
}
.tafe-en-name{
  font-size:15px;
  line-height:1.4;
}
.tafe-type-line{
  flex-wrap:nowrap;
  white-space:nowrap;
  overflow:hidden;
  max-width:100%;
  gap:8px;
  font-size:14px;
}
.tafe-type-line span{
  flex:0 0 auto;
  font-size:13px;
  font-weight:600;
}
.tafe-type-line strong{
  display:block;
  min-width:0;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:14px;
  padding:4px 8px;
}
.tafe-tuition{
  font-size:15px;
}
.tafe-tuition-label{
  font-size:14px;
}
.tafe-tuition strong{
  font-size:16px;
  font-weight:800;
}
.tafe-university-badge{
  font-size:12px;
  font-weight:800;
}
.tafe-btn{
  font-size:15px;
  font-weight:800;
}
.tafe-program-row h5{
  font-size:16px;
}
.tafe-program-group{
  font-size:13px;
}
.tafe-program-price strong{
  font-size:15px;
}
@media(max-width:700px){
  .tafe-card h4{
    font-size:17px;
  }
  .tafe-type-line{
    font-size:13px;
  }
  .tafe-type-line strong{
    font-size:13px;
  }
}

/* v0.1.16 — layout, mobile actions, modal sizing, section slider */
.tafe-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:stretch;
}
.tafe-card{
  min-width:0;
  display:grid;
  grid-template-columns:minmax(0,1fr) 236px;
  gap:18px;
  align-items:center;
  padding:20px;
}
.tafe-card-main{
  min-width:0;
  overflow:hidden;
}
.tafe-card h4{
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
  max-width:none !important;
  line-height:1.35;
  font-size:19px;
  margin-bottom:6px;
}
.tafe-en-name{
  font-size:15px;
  line-height:1.45;
}
.tafe-type-line{
  display:grid !important;
  grid-template-columns:max-content minmax(0,1fr);
  align-items:center;
  gap:8px;
  margin-top:10px;
  max-width:100%;
  overflow:visible !important;
  white-space:normal !important;
}
.tafe-type-line span{
  white-space:nowrap;
}
.tafe-type-line strong{
  display:block;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
  line-height:1.45;
  padding:5px 9px;
  width:max-content;
  max-width:100%;
}
.tafe-actions{
  width:236px;
  min-width:236px;
  display:grid !important;
  grid-template-columns:106px 120px !important;
  gap:10px !important;
  justify-content:end;
  align-items:center;
}
.tafe-actions .tafe-btn,
.tafe-actions .tafe-apply-form,
.tafe-actions .tafe-apply-form .tafe-btn{
  width:100% !important;
  min-width:0;
}
.tafe-actions .tafe-btn{
  min-height:44px;
  padding:10px 12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.tafe-program-row{
  grid-template-columns:minmax(0,1fr) 120px 236px !important;
  gap:14px;
}
.tafe-program-row-actions{
  width:236px !important;
  grid-template-columns:106px 120px !important;
}
.tafe-index-slider-wrap{
  display:grid;
  grid-template-columns:34px minmax(0,1fr) 34px;
  gap:6px;
  align-items:center;
}
.tafe-index-arrow{
  border:1px solid #e4e7ec;
  background:#fff;
  color:#344054;
  width:34px;
  height:34px;
  border-radius:10px;
  font-size:24px;
  line-height:1;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 4px 12px rgba(32,42,68,.05);
}
.tafe-index-arrow:hover{
  background:var(--tafe-accent-soft);
  border-color:#e8d391;
}
.tafe-index-links{
  overflow-x:auto !important;
  overflow-y:hidden !important;
  display:flex !important;
  flex-direction:row !important;
  gap:6px;
  scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-x:contain;
  scrollbar-width:none;
}
.tafe-index-links::-webkit-scrollbar{display:none}
.tafe-index-link{
  flex:0 0 auto !important;
  white-space:nowrap !important;
  max-width:280px;
  overflow:hidden;
  text-overflow:ellipsis;
}
.tafe-compare-dialog{
  width:min(980px,calc(100vw - 28px)) !important;
  max-height:min(82vh,760px) !important;
  padding:18px !important;
  border-radius:18px !important;
}
#tafe-compare-table-wrap{
  overflow:auto;
  -webkit-overflow-scrolling:touch;
}
.tafe-compare-table{
  min-width:680px;
}
@media(max-width:980px){
  .tafe-grid{
    grid-template-columns:1fr !important;
  }
  .tafe-card{
    grid-template-columns:1fr !important;
    gap:14px;
    padding:18px;
  }
  .tafe-actions{
    width:100% !important;
    min-width:0 !important;
    grid-template-columns:1fr 1fr !important;
  }
  .tafe-program-row{
    grid-template-columns:1fr !important;
  }
  .tafe-program-row-actions{
    width:100% !important;
    grid-template-columns:1fr 1fr !important;
  }
}
@media(max-width:700px){
  .tafe-wrap{
    padding-left:6px;
    padding-right:6px;
  }
  .tafe-head{
    padding:20px 18px;
  }
  .tafe-head h2{
    font-size:31px;
    line-height:1.15;
  }
  .tafe-head p{
    font-size:16px;
  }
  .tafe-result-section{
    padding:15px;
  }
  .tafe-program-title h3{
    font-size:22px;
  }
  .tafe-card{
    padding:16px;
    border-radius:15px;
  }
  .tafe-card h4{
    font-size:18px !important;
  }
  .tafe-type-line{
    grid-template-columns:1fr;
    gap:5px;
    align-items:start;
  }
  .tafe-type-line span{
    font-size:13px;
  }
  .tafe-type-line strong{
    font-size:14px !important;
    width:auto;
    max-width:100%;
  }
  .tafe-actions{
    margin-top:4px;
    gap:10px !important;
  }
  .tafe-actions .tafe-btn,
  .tafe-program-row-actions .tafe-btn{
    min-height:46px;
    font-size:15px !important;
    border-radius:11px;
  }
  .tafe-index-card{
    border-radius:14px;
  }
  .tafe-index-slider-wrap{
    grid-template-columns:32px minmax(0,1fr) 32px;
  }
  .tafe-index-arrow{
    width:32px;height:32px;border-radius:9px;
  }
  .tafe-index-link{
    max-width:220px;
    font-size:13px;
    padding:8px 10px;
  }
  .tafe-compare-dialog{
    width:calc(100vw - 18px) !important;
    max-height:88vh !important;
    margin:4vh auto 0 !important;
    padding:12px !important;
    border-radius:16px !important;
  }
  .tafe-compare-dialog-head{
    margin-bottom:12px;
  }
  .tafe-compare-dialog-head h3{
    font-size:22px !important;
  }
  .tafe-compare-table{
    min-width:600px;
    font-size:14px;
  }
  .tafe-compare-row{
    grid-template-columns:150px repeat(4,minmax(155px,1fr)) !important;
  }
  .tafe-compare-row>div{
    padding:11px !important;
  }
  .tafe-compare-tray{
    width:calc(100vw - 18px) !important;
    border-radius:14px;
    bottom:8px;
  }
}

/* v0.1.17 — desktop card width / whitespace fix */
@media(min-width:981px){
  .tafe-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
  }

  .tafe-card{
    grid-template-columns:minmax(0,1fr) 236px !important;
    gap:20px !important;
    padding:20px 22px !important;
    align-items:center !important;
    min-height:170px;
  }

  .tafe-card-main{
    width:100%;
    min-width:0;
    padding-right:4px;
  }

  .tafe-card h4{
    font-size:20px !important;
    line-height:1.35 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    max-width:100% !important;
    margin:0 0 10px !important;
  }

  .tafe-type-line{
    display:flex !important;
    align-items:center !important;
    flex-wrap:nowrap !important;
    gap:10px !important;
    width:100%;
    margin-top:10px !important;
    overflow:hidden !important;
    white-space:nowrap !important;
  }

  .tafe-type-line span{
    flex:0 0 auto;
    font-size:14px !important;
    font-weight:700;
  }

  .tafe-type-line strong{
    flex:1 1 auto;
    min-width:0;
    width:auto !important;
    max-width:none !important;
    display:block !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    font-size:14px !important;
    line-height:1.4 !important;
    padding:5px 9px !important;
  }

  .tafe-tuition{
    margin-top:14px !important;
  }

  .tafe-actions{
    width:236px !important;
    min-width:236px !important;
    align-self:center;
    justify-self:end;
  }

  .tafe-program-row{
    grid-template-columns:minmax(0,1fr) 130px 236px !important;
  }

  .tafe-program-row-main{
    min-width:0;
  }

  .tafe-program-row h5{
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    max-width:100%;
  }
}

/* Wider desktops: allow even more room for institution text */
@media(min-width:1280px){
  .tafe-card{
    grid-template-columns:minmax(0,1fr) 250px !important;
  }
  .tafe-actions{
    width:250px !important;
    min-width:250px !important;
    grid-template-columns:112px 128px !important;
  }
}

/* Keep mobile/tablet behavior from v0.1.16 unchanged */
@media(max-width:980px){
  .tafe-card h4{
    white-space:normal !important;
    overflow:visible !important;
    text-overflow:clip !important;
  }
  .tafe-type-line{
    white-space:normal !important;
    overflow:visible !important;
  }
  .tafe-type-line strong{
    white-space:normal !important;
    overflow:visible !important;
    text-overflow:clip !important;
  }
}

/* v0.1.18 — desktop information layout refinement */
@media(min-width:981px){

  /* Give the information area more room; keep actions compact on the right */
  .tafe-card{
    grid-template-columns:minmax(0,1fr) 208px !important;
    gap:18px !important;
    padding:20px 22px !important;
    align-items:center !important;
    min-height:164px !important;
  }

  .tafe-card-main{
    width:100% !important;
    min-width:0 !important;
    overflow:visible !important;
    display:block !important;
  }

  /* University name should use the whole available information width */
  .tafe-card h4{
    width:100% !important;
    max-width:none !important;
    margin:0 0 12px !important;
    font-size:19px !important;
    line-height:1.35 !important;
    white-space:normal !important;
    overflow:visible !important;
    text-overflow:clip !important;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
  }

  /* University type stays beside its label and uses the full remaining line */
  .tafe-type-line{
    display:grid !important;
    grid-template-columns:max-content minmax(0,1fr) !important;
    align-items:center !important;
    gap:10px !important;
    width:100% !important;
    max-width:none !important;
    margin-top:8px !important;
    white-space:normal !important;
    overflow:visible !important;
  }

  .tafe-type-line span{
    white-space:nowrap !important;
    font-size:14px !important;
    font-weight:700 !important;
  }

  .tafe-type-line strong{
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    display:block !important;
    padding:5px 9px !important;
    font-size:14px !important;
    line-height:1.4 !important;
    white-space:normal !important;
    overflow:visible !important;
    text-overflow:clip !important;
  }

  /* Tuition and its value must always stay on the same row */
  .tafe-tuition{
    display:flex !important;
    align-items:center !important;
    flex-wrap:nowrap !important;
    gap:10px !important;
    width:100% !important;
    margin-top:13px !important;
  }

  .tafe-tuition-label{
    flex:0 0 auto !important;
    white-space:nowrap !important;
    font-size:14px !important;
  }

  .tafe-tuition strong{
    display:inline-flex !important;
    align-items:center !important;
    white-space:nowrap !important;
    margin:0 !important;
    font-size:16px !important;
    padding:6px 10px !important;
  }

  /* Compact fixed actions column */
  .tafe-actions{
    width:208px !important;
    min-width:208px !important;
    grid-template-columns:96px 102px !important;
    gap:10px !important;
    align-self:center !important;
    justify-self:end !important;
  }

  .tafe-actions .tafe-btn{
    min-height:44px !important;
    padding:9px 8px !important;
    font-size:14px !important;
  }

  .tafe-actions .tafe-apply-form{
    width:100% !important;
  }

  /* Program rows inside View Programs follow same visual logic */
  .tafe-program-row{
    grid-template-columns:minmax(0,1fr) 118px 208px !important;
    gap:14px !important;
  }

  .tafe-program-row-actions{
    width:208px !important;
    grid-template-columns:96px 102px !important;
  }
}

/* Larger desktops get a little extra information width */
@media(min-width:1280px){
  .tafe-card{
    grid-template-columns:minmax(0,1fr) 216px !important;
  }

  .tafe-actions{
    width:216px !important;
    min-width:216px !important;
    grid-template-columns:100px 106px !important;
  }

  .tafe-program-row{
    grid-template-columns:minmax(0,1fr) 124px 216px !important;
  }

  .tafe-program-row-actions{
    width:216px !important;
    grid-template-columns:100px 106px !important;
  }
}

/* Preserve the already-good mobile/tablet layout */
@media(max-width:980px){
  .tafe-card h4{
    display:block !important;
    -webkit-line-clamp:unset !important;
  }
}

/* v0.1.19 — real desktop card reflow
   Name + University Type use the full card width.
   Compare / Apply share only the bottom row with Tuition. */
@media(min-width:981px){

  .tafe-card{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    grid-template-areas:
      "main main"
      "actions actions" !important;
    gap:12px 16px !important;
    padding:20px 22px !important;
    align-items:start !important;
    min-height:0 !important;
  }

  .tafe-card-main{
    grid-area:main !important;
    width:100% !important;
    min-width:0 !important;
    overflow:visible !important;
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:0 !important;
  }

  .tafe-university-badge{
    width:max-content;
    margin-bottom:10px !important;
  }

  /* University name gets the entire card width */
  .tafe-card h4{
    width:100% !important;
    max-width:none !important;
    margin:0 0 10px !important;
    padding:0 !important;
    font-size:20px !important;
    line-height:1.35 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    display:block !important;
    -webkit-line-clamp:unset !important;
  }

  /* University type gets the entire card width too */
  .tafe-type-line{
    width:100% !important;
    max-width:none !important;
    display:flex !important;
    align-items:center !important;
    gap:10px !important;
    margin:0 0 12px !important;
    padding:0 !important;
    overflow:hidden !important;
    white-space:nowrap !important;
  }

  .tafe-type-line span{
    flex:0 0 auto !important;
    white-space:nowrap !important;
    font-size:14px !important;
    font-weight:700 !important;
    color:#667085 !important;
  }

  .tafe-type-line strong{
    flex:1 1 auto !important;
    min-width:0 !important;
    width:auto !important;
    max-width:none !important;
    display:block !important;
    padding:5px 9px !important;
    font-size:14px !important;
    line-height:1.4 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }

  /* Bottom row: tuition left, actions right */
  .tafe-card-main .tafe-tuition{
    margin:0 !important;
    width:auto !important;
    display:flex !important;
    align-items:center !important;
    gap:10px !important;
    flex-wrap:nowrap !important;
  }

  .tafe-actions{
    grid-area:actions !important;
    width:100% !important;
    min-width:0 !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 106px 120px !important;
    gap:10px !important;
    align-items:center !important;
    justify-content:stretch !important;
    margin-top:0 !important;
  }

  /* Move tuition visually into the first slot of the action row */
  .tafe-card{
    position:relative;
  }

  .tafe-card-main .tafe-tuition{
    position:absolute !important;
    left:22px !important;
    bottom:20px !important;
    max-width:calc(100% - 270px) !important;
    z-index:1;
  }

  .tafe-actions{
    padding-left:min(54%, 360px) !important;
  }

  .tafe-actions .tafe-btn,
  .tafe-actions .tafe-apply-form,
  .tafe-actions .tafe-apply-form .tafe-btn{
    width:100% !important;
    margin:0 !important;
  }

  .tafe-actions .tafe-btn{
    min-height:44px !important;
    padding:9px 10px !important;
    font-size:14px !important;
  }

  /* Add enough room for the bottom row */
  .tafe-card-main{
    padding-bottom:56px !important;
  }

  /* Program drawer cards should not inherit the absolute tuition trick */
  .tafe-university-card .tafe-program-drawer{
    grid-column:1/-1 !important;
  }

  .tafe-program-row{
    grid-template-columns:minmax(0,1fr) 125px 220px !important;
  }

  .tafe-program-row-actions{
    width:220px !important;
    grid-template-columns:100px 110px !important;
  }
}

/* Wider desktop: a little more breathing room */
@media(min-width:1280px){
  .tafe-actions{
    padding-left:min(60%, 430px) !important;
  }
}

/* Preserve mobile/tablet exactly as before */
@media(max-width:980px){
  .tafe-card{
    position:relative;
  }
  .tafe-card-main{
    padding-bottom:0 !important;
  }
  .tafe-card-main .tafe-tuition{
    position:static !important;
    max-width:none !important;
  }
  .tafe-actions{
    padding-left:0 !important;
  }
}

/* v0.1.20 — desktop card vertical information flow
   [University]
   [University Type]
   [Tuition]
   [Compare] [Apply Now]
*/
@media(min-width:981px){

  .tafe-card{
    display:block !important;
    padding:20px 22px !important;
    min-height:0 !important;
  }

  .tafe-card-main{
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    padding:0 !important;
    overflow:visible !important;
  }

  .tafe-university-badge{
    margin-bottom:10px !important;
  }

  .tafe-card h4{
    width:100% !important;
    margin:0 0 12px !important;
    font-size:20px !important;
    line-height:1.35 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }

  .tafe-type-line{
    width:100% !important;
    display:flex !important;
    align-items:center !important;
    gap:10px !important;
    margin:0 0 12px !important;
    padding:0 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
  }

  .tafe-type-line span{
    flex:0 0 auto !important;
    white-space:nowrap !important;
  }

  .tafe-type-line strong{
    flex:1 1 auto !important;
    min-width:0 !important;
    width:auto !important;
    max-width:none !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }

  .tafe-card-main .tafe-tuition{
    position:static !important;
    left:auto !important;
    bottom:auto !important;
    max-width:none !important;
    width:100% !important;
    display:flex !important;
    align-items:center !important;
    gap:10px !important;
    margin:0 0 14px !important;
  }

  .tafe-actions{
    position:static !important;
    width:100% !important;
    min-width:0 !important;
    padding:0 !important;
    margin:0 !important;
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:10px !important;
    justify-content:stretch !important;
    align-items:center !important;
  }

  .tafe-actions .tafe-btn,
  .tafe-actions .tafe-apply-form,
  .tafe-actions .tafe-apply-form .tafe-btn{
    width:100% !important;
    margin:0 !important;
  }

  .tafe-actions .tafe-btn{
    min-height:46px !important;
    font-size:15px !important;
    padding:10px 14px !important;
  }

  /* View Programs drawer keeps its own structured rows */
  .tafe-university-card .tafe-program-drawer{
    margin-top:14px !important;
  }

  .tafe-program-row{
    grid-template-columns:minmax(0,1fr) 125px 220px !important;
  }

  .tafe-program-row-actions{
    width:220px !important;
    grid-template-columns:100px 110px !important;
  }
}

/* Preserve mobile/tablet layout */
@media(max-width:980px){
  .tafe-card{
    display:grid !important;
  }
}

/* v0.1.21 — desktop side navigation as a vertical timeline */
@media(min-width:981px){

  .tafe-results-layout{
    grid-template-columns:250px minmax(0,1fr) !important;
    gap:22px !important;
  }

  .tafe-floating-index{
    position:sticky !important;
    top:92px !important;
    max-height:calc(100vh - 120px) !important;
    overflow:visible !important;
  }

  .tafe-index-card{
    position:relative;
    padding:18px 16px 18px 20px !important;
    border-radius:20px !important;
    background:rgba(255,255,255,.96) !important;
  }

  .tafe-index-kicker{
    margin-bottom:3px !important;
  }

  .tafe-index-title{
    font-size:19px !important;
    margin-bottom:16px !important;
  }

  /* Hide mobile slider arrows on desktop */
  .tafe-index-slider-wrap{
    display:block !important;
  }

  .tafe-index-arrow{
    display:none !important;
  }

  .tafe-index-links{
    position:relative;
    display:flex !important;
    flex-direction:column !important;
    gap:0 !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    max-height:calc(100vh - 245px) !important;
    padding:2px 4px 2px 20px !important;
    scroll-snap-type:none !important;
  }

  /* Vertical timeline rail */
  .tafe-index-links:before{
    content:"";
    position:absolute;
    left:8px;
    top:8px;
    bottom:8px;
    width:2px;
    border-radius:999px;
    background:linear-gradient(
      180deg,
      rgba(217,167,40,.48),
      rgba(217,167,40,.18) 55%,
      rgba(32,42,68,.10)
    );
  }

  .tafe-index-link{
    position:relative !important;
    width:100% !important;
    max-width:none !important;
    flex:none !important;
    white-space:normal !important;
    overflow:visible !important;
    text-overflow:clip !important;
    text-align:left !important;
    padding:10px 10px 10px 18px !important;
    border-radius:10px !important;
    line-height:1.35 !important;
    font-size:13px !important;
    color:#667085 !important;
    background:transparent !important;
    transition:.18s ease;
  }

  /* Timeline node */
  .tafe-index-link:before{
    content:"";
    position:absolute;
    left:-17px;
    top:50%;
    transform:translateY(-50%);
    width:9px;
    height:9px;
    border-radius:50%;
    background:#fff;
    border:2px solid #cfd5df;
    box-shadow:0 0 0 3px rgba(255,255,255,.92);
    transition:.18s ease;
  }

  .tafe-index-link:hover{
    color:#344054 !important;
    background:#f8f9fb !important;
  }

  .tafe-index-link.is-active{
    color:#5b4610 !important;
    background:linear-gradient(90deg,var(--tafe-accent-soft),rgba(255,255,255,.7)) !important;
    font-weight:800 !important;
    box-shadow:none !important;
  }

  .tafe-index-link.is-active:before{
    width:12px;
    height:12px;
    left:-18.5px;
    border-color:var(--tafe-accent);
    background:var(--tafe-accent);
    box-shadow:0 0 0 4px rgba(217,167,40,.16);
  }

  /* Desktop dropdown is not needed; mobile keeps it */
  .tafe-mobile-index-dropdown{
    display:none !important;
  }
}

/* Explicitly preserve the existing mobile/tablet navigation */
@media(max-width:980px){
  .tafe-mobile-index-dropdown{
    display:block;
  }
}

/* v0.1.22 — fix single-section width + complete university result layout */
@media(min-width:981px){
  .tafe-results-layout{
    grid-template-columns:1fr !important;
  }

  .tafe-results-layout.has-index{
    grid-template-columns:250px minmax(0,1fr) !important;
  }

  .tafe-results-layout:not(.has-index) .tafe-results{
    grid-column:1 / -1 !important;
    width:100% !important;
  }

  /* Direct university search cards use the full available result area. */
  .tafe-direct-universities .tafe-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    width:100% !important;
  }

  .tafe-direct-universities .tafe-card{
    width:100% !important;
    min-width:0 !important;
  }

  .tafe-direct-universities .tafe-program-title{
    width:100% !important;
  }
}

@media(min-width:1500px){
  .tafe-direct-universities .tafe-grid{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
}

/* v0.1.23 — always-on desktop timeline + stable result width */
@media(min-width:981px){

  /* Desktop always reserves the timeline column whenever any result section exists. */
  .tafe-results-layout,
  .tafe-results-layout.has-index{
    display:grid !important;
    grid-template-columns:250px minmax(0,1fr) !important;
    gap:22px !important;
    width:100% !important;
    align-items:start !important;
  }

  .tafe-floating-index{
    grid-column:1 !important;
    width:250px !important;
    min-width:250px !important;
  }

  .tafe-results{
    grid-column:2 !important;
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    display:block !important;
  }

  .tafe-result-section,
  .tafe-program,
  .tafe-direct-universities{
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    box-sizing:border-box !important;
  }

  /* Matching-university results: clean two-column cards inside the result area. */
  .tafe-direct-universities .tafe-grid{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:16px !important;
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
  }

  .tafe-direct-universities .tafe-card{
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    display:block !important;
    box-sizing:border-box !important;
    padding:18px 20px !important;
  }

  .tafe-direct-universities .tafe-card-main{
    width:100% !important;
    min-width:0 !important;
  }

  .tafe-direct-universities .tafe-card h4{
    width:100% !important;
    max-width:none !important;
    white-space:normal !important;
    overflow:visible !important;
    text-overflow:clip !important;
    line-height:1.35 !important;
    margin-bottom:10px !important;
  }

  .tafe-direct-universities .tafe-type-line{
    width:100% !important;
    max-width:none !important;
  }

  .tafe-direct-universities .tafe-tuition{
    width:100% !important;
    margin-bottom:12px !important;
  }

  .tafe-direct-universities .tafe-mini-programs{
    width:100% !important;
    max-width:none !important;
    display:flex !important;
    flex-wrap:wrap !important;
    gap:7px !important;
  }

  .tafe-direct-universities .tafe-actions{
    width:100% !important;
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:10px !important;
    padding:0 !important;
    margin-top:14px !important;
  }

  .tafe-direct-universities .tafe-actions .tafe-btn{
    width:100% !important;
  }

  .tafe-direct-universities .tafe-program-panel{
    width:100% !important;
  }
}

/* Keep mobile/tablet behavior unchanged. */
@media(max-width:980px){
  .tafe-results{
    width:100% !important;
  }
}

/* v0.1.24 — View Programs compatibility */
.tafe-program-drawer.tafe-program-panel.is-open{
  display:block;
}

/* v0.1.25 — desktop View Programs rows follow the same clean stacking logic as university cards */
@media(min-width:981px){

  .tafe-program-list{
    display:flex !important;
    flex-direction:column !important;
    gap:12px !important;
  }

  .tafe-program-row{
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    padding:16px 18px !important;
    border-radius:14px !important;
    background:#fff !important;
  }

  .tafe-program-row-main{
    width:100% !important;
    min-width:0 !important;
    margin-bottom:10px !important;
  }

  .tafe-program-row h5{
    width:100% !important;
    max-width:none !important;
    margin:0 0 6px !important;
    font-size:17px !important;
    line-height:1.4 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }

  .tafe-program-row .tafe-en-name{
    width:100% !important;
    max-width:none !important;
    margin-bottom:4px !important;
    font-size:14px !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }

  .tafe-program-group{
    width:100% !important;
    max-width:none !important;
    margin-top:4px !important;
    font-size:13px !important;
    line-height:1.4 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }

  .tafe-program-price{
    width:100% !important;
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    gap:10px !important;
    margin:0 0 12px !important;
  }

  .tafe-program-price span{
    flex:0 0 auto !important;
    white-space:nowrap !important;
    font-size:13px !important;
  }

  .tafe-program-price strong{
    display:inline-flex !important;
    align-items:center !important;
    white-space:nowrap !important;
    font-size:15px !important;
    padding:5px 9px !important;
  }

  .tafe-program-row-actions{
    width:100% !important;
    min-width:0 !important;
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:10px !important;
    margin:0 !important;
  }

  .tafe-program-row-actions .tafe-btn,
  .tafe-program-row-actions .tafe-apply-form,
  .tafe-program-row-actions .tafe-apply-form .tafe-btn{
    width:100% !important;
    margin:0 !important;
  }

  .tafe-program-row-actions .tafe-btn{
    min-height:44px !important;
    font-size:14px !important;
  }
}

/* Keep mobile/tablet layout unchanged */
@media(max-width:980px){
  .tafe-program-row{
    display:grid !important;
  }
}
